ejabberd - Comments for "load balancer" https://www.ejabberd.im/forum/25164/load-balancer en Here is a scenario. Say we https://www.ejabberd.im/forum/25164/load-balancer#comment-66256 <p>Here is a scenario.</p> <p>Say we are using SRV records. So all people do is enter the domain name "example.com" in their pidgin client to connect. </p> <p>In terms of DNS, this SRV record has a A record pointing to the haproxy IP. </p> <p>So for this case what should our ssl cert be ?</p> <p>Will the ssl cert for the SRV record work ?</p> Wed, 21 Oct 2015 18:34:40 +0000 mshenoy comment 66256 at https://www.ejabberd.im I'm afraid it's impossible in https://www.ejabberd.im/forum/25164/load-balancer#comment-66255 <p>I'm afraid it's impossible in tcp balancing haproxy</p> Wed, 21 Oct 2015 11:58:16 +0000 e.repin comment 66255 at https://www.ejabberd.im I do clustering in ejabberd https://www.ejabberd.im/forum/25164/load-balancer#comment-66253 <p>I do clustering in ejabberd and use haproxy for loadbalncing. myclients are connected to haproxy and haproxy redirect them to my ejabberd servers. ejabberd server see haproxy's IP not orginal IP of clients. I want config haproxy</p> Wed, 21 Oct 2015 11:39:41 +0000 taranis comment 66253 at https://www.ejabberd.im I clustered my ejabberd https://www.ejabberd.im/forum/25164/load-balancer#comment-66252 <p>I clustered my ejabberd servers and use haproxy for loadbalancing. my clients are connected to loadbalancer with 443 port and loadbalncer is connected to my ejabberd servers with 5222 port. loadbalancer dont sent orginal client's ip to ejabberd server, it sends packets to ejabberd server with self ip. I need orginal client ip. how to config loadbalncer that sended orginal client ip to ejabberd server?</p> Wed, 21 Oct 2015 08:04:25 +0000 taranis comment 66252 at https://www.ejabberd.im I don't understand the https://www.ejabberd.im/forum/25164/load-balancer#comment-66230 <p>I don't understand the question</p> Mon, 19 Oct 2015 04:59:15 +0000 e.repin comment 66230 at https://www.ejabberd.im I don't understand the https://www.ejabberd.im/forum/25164/load-balancer#comment-66229 <p>I don't understand the question</p> Mon, 19 Oct 2015 04:57:24 +0000 e.repin comment 66229 at https://www.ejabberd.im will this cert be for the https://www.ejabberd.im/forum/25164/load-balancer#comment-66226 <p>will this cert be for the domain or the haproxy host or the ejabberd host ?</p> Fri, 16 Oct 2015 16:24:41 +0000 mshenoy comment 66226 at https://www.ejabberd.im hello how to see https://www.ejabberd.im/forum/25164/load-balancer#comment-66220 <p>hello<br /> how to see original/remote ip address using haproxy not load balancer ip?<br /> same option in http(forward-for) for tcp mode when use xmpp?</p> Sun, 11 Oct 2015 08:12:15 +0000 taranis comment 66220 at https://www.ejabberd.im you can accept ssl https://www.ejabberd.im/forum/25164/load-balancer#comment-66167 <p>you can accept ssl connections on haproxy:<br /> frontend access_clients_ssl<br /> bind (you_IP):(you_port) ssl crt /etc/haproxy/.pem<br /> default_backend cluster_clients<br /> backend cluster_clients<br /> log global<br /> balance leastconn<br /> option independant-streams<br /> server srv1 ipsrv1:5222 check fall 3 id 1 inter 5000 rise 3 slowstart 120000 weight 50<br /> server srv2 ipsrv2:5222 check fall 3 id 2 inter 5000 rise 3 slowstart 120000 weight 50<br /> .......................................................................................<br /> server srvN ipsrvN:5222 check fall 3 id N inter 5000 rise 3 slowstart 120000 weight 50 </p> <p>if you want to limit number connections per second, you can use maxconrate options in "global" sections (<noindex><a href="http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#maxconnrate" title="http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#maxconnrate" rel="nofollow" >http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#maxconnrate</a></noindex>), It is avoids mnesia overload, under massive authorization on ejabberd. If you understand Russian, I can tell more in detail and promptly.</p> Fri, 02 Oct 2015 06:12:49 +0000 e.repin comment 66167 at https://www.ejabberd.im you can accept ssl https://www.ejabberd.im/forum/25164/load-balancer#comment-66166 <p>you can accept ssl connections on haproxy:<br /> frontend access_clients_ssl<br /> bind (you_IP):(you_port) ssl crt /etc/haproxy/.pem<br /> default_backend cluster_clients<br /> backend cluster_clients<br /> log global<br /> balance leastconn<br /> option independant-streams<br /> server srv1 ipsrv1:5222 check fall 3 id 1 inter 5000 rise 3 slowstart 120000 weight 50<br /> server srv2 ipsrv2:5222 check fall 3 id 2 inter 5000 rise 3 slowstart 120000 weight 50<br /> .......................................................................................<br /> server srvN ipsrvN:5222 check fall 3 id N inter 5000 rise 3 slowstart 120000 weight 50 </p> <p>if you want to limit number connections per second, you can use maxconrate options in "global" sections (<noindex><a href="http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#maxconnrate" title="http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#maxconnrate" rel="nofollow" >http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#maxconnrate</a></noindex>), It is avoids mnesia overload, under massive authorization on ejabberd. If you understand Russian, I can tell more in detail and promptly.</p> Fri, 02 Oct 2015 06:11:39 +0000 e.repin comment 66166 at https://www.ejabberd.im Sorry to hijack the thread. https://www.ejabberd.im/forum/25164/load-balancer#comment-66163 <p>Sorry to hijack the thread. But are there any considerations or best practices to setup haproxy for ejabberd ?<br /> Just point the SRV record to the haproxy ?</p> Thu, 01 Oct 2015 18:06:39 +0000 mshenoy comment 66163 at https://www.ejabberd.im We use Haproxy more than 2 https://www.ejabberd.im/forum/25164/load-balancer#comment-66148 <p>We use Haproxy more than 2 years <noindex><a href="http://www.haproxy.org/" title="http://www.haproxy.org/" rel="nofollow" >http://www.haproxy.org/</a></noindex></p> Tue, 29 Sep 2015 12:49:28 +0000 e.repin comment 66148 at https://www.ejabberd.im