Erlang/OTP Forums

Author Message

<  Advanced Erlang/OTP  ~  I am new to Erlang and how can i demonstrate that Erlang ser

francesco
Posted: Fri Jul 06, 2007 5:12 pm Reply with quote
User Joined: 07 Jul 2006 Posts: 249 Location: London
Before committing to a project, you need to make sure you have made the right design decisions and ensure mistakes are done in a small scale, and not in a production environment. The solution is design by prototyping. All successful Erlang projects are always started with a prototype, the results of which should be enough to provide a go no go solution for management. Most prototypes take 4 - 6 weeks and usually involve 1 - 2 developers. This excludes the Erlang learning curve.

The closest published example of what you want to do is the MMOG paper presented at the Erlang User Conference in 2006. The paper and presentation are here:

http://www.erlang-consulting.com/thesis/mmog_server_in_erlang.html
http://www.erlang-consulting.com/euc2005/mmog/mmog_in_erlang.htm

And to answer your questions, I would go for a Java client and Erlang server side. To load test your server, TSUNG is a good tool. It is the same tool used to stress test the MMOG servers in the above presentation. Also, what you want to demonstrate in a comparison to a java server are

    scalability (simultaneous concurrently active user)
    reliability (ease at handling user / system crashes)
    distribution (ease to add nodes / processiong power)
    system behaviour under heavy load


None of the above can compete with Java. I will leave suggestions on existing tests and examples to others to reply.

Regards,
Francesco
View user's profile Send private message Visit poster's website
carrie
Posted: Thu Jul 12, 2007 5:58 pm Reply with quote
Joined: 06 Jul 2007 Posts: 3
Sorry I didn't know my post was moved to here. I am looking into Tsung now. Hope I can use it to give a test first.

Many thanks. Come back later
View user's profile Send private message
michal
Posted: Thu Jul 12, 2007 7:26 pm Reply with quote
User Joined: 20 Jul 2006 Posts: 44 Location: London
Hi,
I think your post has been moved by accident.
To demonstrate how well an Erlang system can scale, I would suggest setting up the ejabberd server and stress test it with the tsung tool and its jabber plugin. Tsung can generate graphs with number of connected users, CPU utilization, response times, etc.

Michal

_________________
http://www.erlang-consulting.com
View user's profile Send private message
francesco
Posted: Fri Jul 13, 2007 9:20 am Reply with quote
User Joined: 07 Jul 2006 Posts: 249 Location: London
Hi Carrie,

I moved your post to the Erlang Forum as you put it in the Erlang Mailing list section, but are not subscribed there. That means that the post is not forwarded to the Erlang Questions mailing list, and is just posted on trapexit, and chances of some one picking it up are smaller. (See http://forum.trapexit.org/viewtopic.php?t=5940) But in doing so, I did the mistake in trying to delete it from the erlang mailing list section, as it also deleted it from the Erlang section. We are trying to figure out how to put it back without upsetting the thread.

I second Michal's idea. Run ejabberd and tsung. It will generate pretty graphs managers love while demonstrating the true capacity of Erlang based systems.

Francesco
View user's profile Send private message Visit poster's website
carrie
Posted: Fri Jul 13, 2007 11:38 am Reply with quote
Joined: 06 Jul 2007 Posts: 3
Great! Thanks Francesco and Michal!

I need to learn how to use the test tools... And another question, do I need to write an Erlang server and client to test?... sorry for the stupid question.

You guys are all in London? Me too!!
View user's profile Send private message
carrie
Posted: Fri Jul 13, 2007 12:21 pm Reply with quote
Joined: 06 Jul 2007 Posts: 3
Sorry. I get it. ejabbered is a server written in erlang, I can use tsung to simulate users to test the server.

Can this all be done in a single computer?

I don't know how to install tsung... my system is XP, which file should i download to install?

keep trying...
View user's profile Send private message
francesco
Posted: Fri Jul 13, 2007 2:12 pm Reply with quote
User Joined: 07 Jul 2006 Posts: 249 Location: London
Both tsung and ejabberd are written in Erlang. If you google them, you should find lots of tutorials and demos. You can run them on a single computer, but I would have a load machine and a server.

If you want to demonstrate real speed at setting up connections and traffic throughput, however, I would stay well away from XP and use Linux or some other UNIX derivative.

Good luck,
Francesco
View user's profile Send private message Visit poster's website

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum