[erlang-questions] Resource discovery & load balancing

21 views
Skip to first unread message

Andy Richards

unread,
Apr 26, 2012, 11:30:39 AM4/26/12
to Erlang Questions
Hi all,

I've read the chapter on resource discovery in Erlang & OTP In Action Logan et al and understand how I can dynamically bring an additional node into a cluster, however I can't find a good resource explaining good approaches to distributing load across such nodes?

I'm assuming I will need to do some sort of hashing or round robin across the nodes but was wondering how others in the community distribute load across nodes (using resource discovery) or if anyone was aware of a good resource related to this?

Many thanks,

Andy.

Sent from my iPad
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

CGS

unread,
Apr 26, 2012, 11:39:32 AM4/26/12
to Andy Richards, Erlang Questions
Hi Andy,

I used round robin to solve such a problem. It's easy to implement, it can be tuned according to your hardware capabilities and scaled easily according to the number of nodes to be used.

I hope this message will help.

CGS

Jayson Barley

unread,
Apr 26, 2012, 11:43:17 AM4/26/12
to CGS, Erlang Questions
Andy,

It all depends on what you are load balancing. I most often analyze data so I use a queue and have each of my nodes grab jobs off of the queue as they become available.  This works well for me.

Jayson

Andy Richards

unread,
Apr 27, 2012, 4:23:15 AM4/27/12
to Jayson Barley, Erlang Questions
Thanks both, that gives me a couple of ideas. Any other suggestions anyone?

Many thanks,

Andy.

Sent from my iPad
Reply all
Reply to author
Forward
0 new messages