Stressing servers with Tsung
Tsung is a testing tool used to stress servers and see how they perform under high load conditions. It’s designed to work both with the HTTP/HTTPS and the Jabber protocols, and it seems that stressing PostgreSQL servers will be another feature in a near future (still experimental). Tsung is able, for instance, to simulate hundreds of users from a single CPU working as clients of a client-server aplication, in order to stress the server with high load and see how it works under such those contidions.
A very interesting issue about Tsung is that it was written using the Erlang language, which was designed for being used on some kind of environments where real-time issues, concurrency, fault tolerance and distributed computing are required features. On this way, Tsung uses the Erlang lightweight processes to simulate each hipothetical user, and that’s why Tsung is able to “create” a so impressive amount of simultaneous users from a single CPU.
Another interesting feature is that, since Erlang was designed for distributed environments, Tsung is designed to take advantage of this when designing the “stressing architecture” for your server: you can have only a client stressing a server, of course, but you also have the chance of having a cluster of Erlang nodes working together for being able to stress even more the “defenceless” server. And that’s the reason I wrote this post: today I was benchmarking an application I started some time ago, and I was really impressed by the way Tsung manages this task… and the ease of getting it working just from downloading the sources from its web site.
Unfortunately, documentation about Tsung it’s not too much (but enough), so might be you spend some time trying to understand how you can configure it, and how to use it… but, when you already know that issues, it’s so easy to use it and so impressive to see the results… especially if you are stressing an application running over the yaws web server, which is also developed using Erlang and is able to work with lots of simultaneous requests, as you can see here.
In conclusion, if you are currently looking for a tool to test your server, I’d suggest you to take a look into the Tsung web site and give it a try… especially if you have several computers connected through a LAN, and you can use them as a “stressing cluster”. I think you’ll like it.
Enjoy it!
Playing with blender: 3D igalia logo
As result of some personal needs, I spent some time this morning looking for some kind of free CAD program. After searching on the internet and in the apt-get repositories, I found the following free CAD programs: QCad and Blender. QCad is a program similar to Autocad, and Blender is closer to 3D Studio. Since I have sometimes tried 3D Studio in the past, I think I were more familiar to Blender, so I chose it for giving it a try.
The fact is that, nowadays, I have not too much spare time for playing with this kind of issues (not at least in a month), but this morning I decided to take a rest of my usual work plan and I was trying to learn the basics of blender modelling with the help of this book (spanish – creative commons licensed).
And this is the result of my test: a 3D version of the igalia logo (yes, I know… so much original
)
I know it’s quite simple (and incorrect, since colors are not exactly those ones from the original logo), but I have not enough time for learning more about blender right now. Maybe in a future I’ll have it… but now it’s time to go back to my current work plan.
Anyway, the main objective this morning was not to get a high-level Blender knowledge and/or a high-quality 3D design, but just learning some basic concepts, and I think I had accomplished that mission. And regarding to model igalia logo… just because seemed to be an easy exercise to get myself familiar with the Blender interface at the same time I got an excuse for writting something on this blog
since my last post.
In conclusion, I’d like to tell that, if you like the 3D design world and have a few spare time, I’d encourage you to try blender: it’s good, it’s funny, it seems not to be so much complicated as you can expect after a first look, and it’s free (GPL-licensed).
Update [11/09/06]: Here you can download the source and the text font used for this logo:
Note: since my simple 3D logo is a too much basic example, you can take a look into a movie called Elephant Dreams if you are not sure about blender capabilities for making good quality 3D graphics or animations.