[rabbitmq-discuss] push server for android

Marek Majkowski majek04 at gmail.com
Tue Aug 16 12:10:05 BST 2011


Ludy,

On Tue, Aug 16, 2011 at 03:19, ludy <ludy at wawame.cn> wrote:
> i want to do a push server for android. e.g i have a cluster of two
> nodes,one named rabbit and another named hare. if too many clients
> connected to rabbit connect the cluster,the socket descriptors of node
> rabbit is full.

Interesting approach. I understand that you want to forward all the
connection to one broker and only when it's full, forward new
connections to another one.

I suspect it should be possible be by using haproxy in tcp mode.
(but beware, that will be a single point of failure)

> my questions are:
> 1.when node rabbit is full,how to redirect/connect to another node??

Take look at rabbitmq management plugin. It presents
file descriptors counts (available and used).

On Linux you have about 1000 file descriptors by default, on
mac 250, on windows I think it's unlimited.

> 2.erlang can support 60000+ tcps,if need loadbalance,can loadbalance
> support 60000+ tcps???

Well, you in order to get such high numbers you would have
to tune file descriptors limit and erlang process count.
Also, make sure the machine has enough memory.

Generally, it would be safer if you used some kind
of load balancing. DNS load balancing  might be the simplest option.

> 3.are there some other ways to implement push server for android??

I don't know!


Cheers,
  Marek


More information about the rabbitmq-discuss mailing list