Varnish >= 2.1 ever increasing high CPU over time workaround

At Yedda, we use Varnish (a superb piece of software) for load balancing and caching.

We recently upgraded to 2.1.2 (the latest version at the time of writing this post) and started to notice that the CPU usage of the machine running Varnish kept on increasing from day to day. The only way to resolve it was to restart the service.

After discussing the issue on the Varnish IRC channel and with the help of Poul-Henning Kamp (phk), Varnish’s architect and developer and others at the #varnish IRC channel, we were suggested to use the old classic hashing by adding the “-h classic” argument.

So far, it seems to have resolved the issue.

According to phk, this may not actually a bug, but an issue with certain usage patterns and the new hashing algorithm, critbit, that was first introduced in 2.1.

Comments (1)

OAuth C# Basic Library

We have just released a basic C# library for OAuth (yay!), an open protocol to allow secure API authentication in a simple and standard method from desktop and web applications.

Yedda is part of the OAuth working group (among, with Twitter, Pownce, Ma.gnolia, Google, Jaiku, Flickr, SixApart and other notable individuals) and has contributed to the creation of the specification (we try to get involved and help whenever we can).

The basic C# library produces the OAuth signature which is needed in both server side and client. Additional details on the library, how to use it and its extendability mechanism can be found on this blog post on my blog.

For more information on OAuth check out the OAuth web site and blog. You can also read a great Beginner’s guide to OAuth by Eran Hammer-Lahav (If you are up to it, you can always take a look at the spec :-) ).

You might be interested in reading OAuth related posts by other members of the OAuth working group:

, , , , , , ,

Comments (3)

Twitter .NET / C# Library

We promised to share a little, so here we are… sharing!

This time, we are sharing with you a .NET / C# class that wraps most of the Twitter API in an easy to use way, providing you direct access to the various methods and output formats used on the Twitter API.

This release includes all of the APIs except Direct Message methods (expect to see that soon).

The code is released on a “AS IS” basis with no guarantee or license. Do whatever you want with it, just remember that we are not liable in any way.

Giving us some credit will be nice, though :-)

Twitt away, have fun and tell us some of the wonderful things you are doing with the library (hmm, wrapper)

Get the details, source code and a binary for .NET 2.0 here.

Comments (33)

Introducing the Yedda Development Blog

It is about time for us to have a public place where we can share our development stories, pearls of wisdom, rants and the occasional close kept secret out of the dungeon where we usually spend our time developing Yedda.

The team (well, maybe except Casper) will use this as a collective blog space, hoping to keep it updated and informative.

Comments