ejabberd - Comments for "connection rate in ejabberd." https://www.ejabberd.im/node/8915 en devil_inside][quote=devil_ins https://www.ejabberd.im/node/8915#comment-59311 <div class="quote-msg"> <div class="quote-author"><em>devil_inside][quote=devil_inside</em> wrote:</div> <div class="quote-msg"> <div class="quote-author"><em>devil_inside</em> wrote:</div> <div class="quote-msg"> <div class="quote-author"><em>devil_inside</em> wrote:</div> <p>we have ejabberd 2.1.11 + ldap(communigate) + ~2100 users + mod_shared_roster_ldap.<br /> problem:<br /> i see strange rate of connections with ejabberd.</p> <p>when at one moment of time some decades of users try to connect to ejabberd, it takes on approximately 15-18 users quickly and much slowly takes on another users with huge delay between acceptions of connetcions.<br /> users gets "connection timeout to server".<br /> in server log after some time i see "ldap connection timeout"<br /> when users try to connect, i don't see them tries in logs, but netstat shows their tcp connection to server.</p> <p>why?<br /> i did turn off all max_stanza_size and all shapers in config, but problem persist as in beginning.<br /> what setting in ejabberd server makes connection rate?</p></div> <p>delay to take connectioon of user takes approximately 10 minutes.<br /> all users can reconnect whithin ~2 hours.</p> <p>any settings doesn't take effect, i think, that this "feature" is hardcoded.<br /> with system keepalive i got small piece of stability, but it is not enough for us.</p> <p>does anyone meet such problem?<br /> has anyone "story of success" with this?</p></div> <p>i did a cluster with one node on two servers.<br /> 2x Dual-Core AMD Opteron(tm) Processor 2214 HE\8Gb<br /> 2x Dual-Core AMD Opteron(tm) Processor 2220\32Gb</p> <p>problem still persists.<br /> with onetime connection from few hundreed (at least, for appearance is enough 50) users, server takes connections with this raw:<br /> 10....8....6...4....2...1 users as short waves.<br /> 29 users can connect quickly.</p> <p>after that users connects most slowly, and 350 people can't connect for a few hours.<br /> i use iptables to accept connection from different user's subnets one by one. and after 2 hours they can connect all.</p> <p>i did read a lot of docs and googles.<br /> i met questions like "how can i make antiddos with ejabberd?" and that men did iptables with connlimit.<br /> we have reverse problem: how can we make ejabberd without limiting connection rates?<br /> docs, googles, faqs and lists can't answer on this question.</p> <p>has anyone any idea?</p></div> <p>i made for both servers two instances of ejabberd on each.<br /> one instance for one ip.<br /> cluster with four nodes.<br /> now three nodes is in action.<br /> it seems to be enough now.<br /> users can connect quickly in the today's morning.<br /> but:<br /> i still want to know, where is settings for connection rate in ejabberd and why it not exists in documentation?</p> <p>also:<br /> i did think and:<br /> users can't get roster quickly.<br /> clients brokes connection some times.<br /> after some reconnects with broken connection we have "connection timeout".<br /> may be, ejabberd blocks that users?<br /> i cut off from acl "deny bllock", but it has no effect.<br /> where is i have to look this options?</p> Mon, 17 Dec 2012 13:59:58 +0000 devil_inside comment 59311 at https://www.ejabberd.im devil_inside https://www.ejabberd.im/node/8915#comment-59308 <div class="quote-msg"> <div class="quote-author"><em>devil_inside</em> wrote:</div> <div class="quote-msg"> <div class="quote-author"><em>devil_inside</em> wrote:</div> <div class="quote-msg"> <div class="quote-author"><em>devil_inside</em> wrote:</div> <p>we have ejabberd 2.1.11 + ldap(communigate) + ~2100 users + mod_shared_roster_ldap.<br /> problem:<br /> i see strange rate of connections with ejabberd.</p> <p>when at one moment of time some decades of users try to connect to ejabberd, it takes on approximately 15-18 users quickly and much slowly takes on another users with huge delay between acceptions of connetcions.<br /> users gets "connection timeout to server".<br /> in server log after some time i see "ldap connection timeout"<br /> when users try to connect, i don't see them tries in logs, but netstat shows their tcp connection to server.</p> <p>why?<br /> i did turn off all max_stanza_size and all shapers in config, but problem persist as in beginning.<br /> what setting in ejabberd server makes connection rate?</p></div> <p>delay to take connectioon of user takes approximately 10 minutes.<br /> all users can reconnect whithin ~2 hours.</p> <p>any settings doesn't take effect, i think, that this "feature" is hardcoded.<br /> with system keepalive i got small piece of stability, but it is not enough for us.</p> <p>does anyone meet such problem?<br /> has anyone "story of success" with this?</p></div> <p>i did a cluster with one node on two servers.<br /> 2x Dual-Core AMD Opteron(tm) Processor 2214 HE\8Gb<br /> 2x Dual-Core AMD Opteron(tm) Processor 2220\32Gb</p> <p>problem still persists.<br /> with onetime connection from few hundreed (at least, for appearance is enough 50) users, server takes connections with this raw:<br /> 10....8....6...4....2...1 users as short waves.<br /> 29 users can connect quickly.</p> <p>after that users connects most slowly, and 350 people can't connect for a few hours.<br /> i use iptables to accept connection from different user's subnets one by one. and after 2 hours they can connect all.</p> <p>i did read a lot of docs and googles.<br /> i met questions like "how can i make antiddos with ejabberd?" and that men did iptables with connlimit.<br /> we have reverse problem: how can we make ejabberd without limiting connection rates?<br /> docs, googles, faqs and lists can't answer on this question.</p> <p>has anyone any idea?</p></div> <p>may be i ask wrong formed question.<br /> this is what i have:<br /> -=-=-=-<br /> ejabberd soft memlock unlimited<br /> ejabberd hard memlock unlimited<br /> ejabberd soft stack unlimited<br /> ejabberd hard stack unlimited<br /> ejabberd soft nofile 65535<br /> ejabberd hard nofile 65535<br /> ejabberd soft nproc unlimited<br /> ejabberd hard nproc unlimited</p> <p>ERL_MAX_FILES=65535<br /> ERL_PROCESSES=2500000</p> <p>Erlang R15B02 (erts-5.9.2) [source] [64-bit] [smp:4:4] [async-threads:0] [kernel-poll:true]</p> <p>ejabberd 2.1.11-5 rhel6 x64</p> <p>config:<br /> -=-=-=-=-<br /> override_global.<br /> override_local.<br /> override_acls.<br /> {loglevel, 4}.<br /> {hosts, ["localhost","domain.com"]}.<br /> {listen,<br /> [<br /> {5222, ejabberd_c2s, [<br /> {certfile, "/etc/ejabberd/ejabberd.pem"}, starttls,<br /> {access, c2s}<br /> ]},<br /> {5223, ejabberd_c2s, [<br /> {access, c2s},<br /> {certfile, "/etc/ejabberd/ejabberd.pem"}, tls<br /> ]},<br /> {5269, ejabberd_s2s_in, [<br /> ]},<br /> {5280, ejabberd_http, [<br /> {request_handlers,<br /> [<br /> {["web"], mod_http_fileserver},<br /> {["archive"], mod_archive_webview}<br /> ]},<br /> captcha,<br /> http_bind,<br /> http_poll,<br /> web_admin<br /> ]}<br /> ]}.<br /> {host_config, "domain.com", [<br /> {auth_method, [ldap]},<br /> {ldap_port, 389},<br /> {ldap_servers,["1.1.1.1"]},<br /> {ldap_rootdn,"uid=dmaster,o=domain"},<br /> {ldap_password, "lala"},<br /> {ldap_base, "o=domain"},<br /> {ldap_filter,"(&amp;(objectClass=CommuniGateAccount)(uid=*)(JabberGroup=Mez*))"},<br /> {ldap_uids, [{"uid"}]}<br /> ]}.<br /> {host_config, "localhost", [<br /> {auth_method, internal}<br /> ]}.<br /> {shaper, normal, {maxrate, 1000000}}.<br /> {shaper, fast, {maxrate, 3000000}}.<br /> {max_fsm_queue, 10000000}.<br /> {acl, admin, {user, "admin", "localhost"}}.<br /> {acl, local, {user_regexp, ""}}.<br /> {access, max_user_sessions, [{20000000, all}]}.<br /> {access, max_user_offline_messages, [{5000, admin}, {1000, all}]}.<br /> {access, local, [{allow, local}]}.<br /> {access, c2s,[{allow, all}]}.<br /> {access, c2s_shaper, [{none, admin},<br /> {none, all}]}.<br /> {access, s2s_shaper, [{none, all}]}.<br /> {access, announce, [{allow, admin}]}.<br /> {access, configure, [{allow, admin}]}.<br /> {access, muc_admin, [{allow, admin}]}.<br /> {access, muc_create, [{allow, local}]}.<br /> {access, muc, [{allow, all}]}.<br /> {access, pubsub_createnode, [{allow, local}]}.<br /> {access, register, [{allow, all}]}.<br /> {registration_timeout, infinity}.<br /> {language, "en"}.<br /> {modules,<br /> [<br /> {mod_adhoc, []},<br /> {mod_announce, [{access, announce}]}, % recommends mod_adhoc<br /> {mod_caps, []},<br /> {mod_configure,[]}, % requires mod_adhoc<br /> {mod_disco, []},<br /> {mod_archive, [{save_default, true}]},<br /> {mod_irc, []},<br /> {mod_http_bind, []},<br /> {mod_last, []},<br /> {mod_muc, [<br /> {access, muc},<br /> {access_create, muc_create},<br /> {access_persistent, muc_create},<br /> {access_admin, muc_admin}<br /> ]},<br /> {mod_offline, []},<br /> {mod_ping, []},<br /> {mod_privacy, []},<br /> {mod_private, []},<br /> {mod_pubsub, [<br /> {access_createnode, pubsub_createnode},<br /> {ignore_pep_from_offline, true}, % reduces resource comsumption, but XEP incompliant<br /> {last_item_cache, false},<br /> {plugins, ["flat", "hometree", "pep"]} % pep requires mod_caps<br /> ]},<br /> {mod_register, [<br /> {welcome_message, {"Welcome!",<br /> "Hi.\nWelcome to this XMPP server."}},<br /> {access, register}<br /> ]},<br /> {mod_roster, [<br /> {managers, ["icq.domain.com", "icq2.domain.com", "icq3.domain.com"]}<br /> ]},<br /> {mod_service_log,[]},<br /> {mod_stats, []},<br /> {mod_time, []},<br /> {mod_vcard_ldap, [<br /> {search, true},<br /> {matches, infinity},<br /> {ldap_vcard_map,<br /> [{"NICKNAME", "%u", ["nickname"]},<br /> {"GIVEN", "%s", ["givenname"]},<br /> {"MIDDLE", "%s", ["initials"]},<br /> {"FAMILY", "%s", ["sn"]},<br /> {"FN", "%s %s %s", ["sn", "givenName", "initials"]},<br /> {"TITLE", "%s", ["title"]},<br /> {"ORGUNIT", "%s", ["ou"]},<br /> {"TEL", "work: %s\ncell: %s\nip: %s", ["telephoneNumber", "mobile", "AccountIP"]},<br /> {"ORGNAME", "%s", ["o"]},<br /> {"EMAIL", "%s", ["mail"]},<br /> {"DESC", "ip:%s", ["AccountIP"]},<br /> {"REGION", "%s", ["st"]},<br /> {"CITY", "%s", ["l"]}<br /> ]},<br /> {ldap_search_fields,<br /> [{"User", "uid"},<br /> {"Name", "givenName"},<br /> {"Last Name", "sn"},<br /> {"Department", "ou"},<br /> {"Title", "title"},<br /> {"Phone", "telephoneNumber"},<br /> {"Email", "mail"}<br /> ]},<br /> {ldap_search_reported,<br /> [{"Full Name", "fn"},<br /> {"Phone", "tel"},<br /> {"Nickname", "nickname"}<br /> ]}<br /> ]},<br /> {mod_version, []},<br /> {mod_shared_roster_ldap,[<br /> {ldap_user_cache_validity,7200},<br /> {ldap_group_cache_validity,7200},<br /> {iqdisc, {queues, 6000}},<br /> {ldap_auth_check,off},<br /> {ldap_servers,["1.1.1.1"]},<br /> {ldap_port,389},<br /> {ldap_rootdn,"uid=dmaster,o=domain"},<br /> {ldap_base,"o=domain"},<br /> {ldap_groupattr,"JABBERGROUP"},<br /> {ldap_password,"lala"},<br /> {ldap_memberattr,"uid"},<br /> {ldap_rfilter,"(objectclass=CommuniGateAccount)"},<br /> {ldap_filter,"(&amp;(objectClass=CommuniGateAccount)(uid=*)(JabberGroup=Mez*))"},<br /> {ldap_useruid, "uid"},<br /> {ldap_userdesc,"cn"}<br /> ]}<br /> ]}.<br /> -=-=-=-=-=-</p> Fri, 14 Dec 2012 21:50:05 +0000 devil_inside comment 59308 at https://www.ejabberd.im devil_inside https://www.ejabberd.im/node/8915#comment-59307 <div class="quote-msg"> <div class="quote-author"><em>devil_inside</em> wrote:</div> <div class="quote-msg"> <div class="quote-author"><em>devil_inside</em> wrote:</div> <p>we have ejabberd 2.1.11 + ldap(communigate) + ~2100 users + mod_shared_roster_ldap.<br /> problem:<br /> i see strange rate of connections with ejabberd.</p> <p>when at one moment of time some decades of users try to connect to ejabberd, it takes on approximately 15-18 users quickly and much slowly takes on another users with huge delay between acceptions of connetcions.<br /> users gets "connection timeout to server".<br /> in server log after some time i see "ldap connection timeout"<br /> when users try to connect, i don't see them tries in logs, but netstat shows their tcp connection to server.</p> <p>why?<br /> i did turn off all max_stanza_size and all shapers in config, but problem persist as in beginning.<br /> what setting in ejabberd server makes connection rate?</p></div> <p>delay to take connectioon of user takes approximately 10 minutes.<br /> all users can reconnect whithin ~2 hours.</p> <p>any settings doesn't take effect, i think, that this "feature" is hardcoded.<br /> with system keepalive i got small piece of stability, but it is not enough for us.</p> <p>does anyone meet such problem?<br /> has anyone "story of success" with this?</p></div> <p>i did a cluster with one node on two servers.<br /> 2x Dual-Core AMD Opteron(tm) Processor 2214 HE\8Gb<br /> 2x Dual-Core AMD Opteron(tm) Processor 2220\32Gb</p> <p>problem still persists.<br /> with onetime connection from few hundreed (at least, for appearance is enough 50) users, server takes connections with this raw:<br /> 10....8....6...4....2...1 users as short waves.<br /> 29 users can connect quickly.</p> <p>after that users connects most slowly, and 350 people can't connect for a few hours.<br /> i use iptables to accept connection from different user's subnets one by one. and after 2 hours they can connect all.</p> <p>i did read a lot of docs and googles.<br /> i met questions like "how can i make antiddos with ejabberd?" and that men did iptables with connlimit.<br /> we have reverse problem: how can we make ejabberd without limiting connection rates?<br /> docs, googles, faqs and lists can't answer on this question.</p> <p>has anyone any idea?</p> Fri, 14 Dec 2012 13:09:17 +0000 devil_inside comment 59307 at https://www.ejabberd.im devil_inside https://www.ejabberd.im/node/8915#comment-59300 <div class="quote-msg"> <div class="quote-author"><em>devil_inside</em> wrote:</div> <div class="quote-msg"> <div class="quote-author"><em>devil_inside</em> wrote:</div> <p>we have ejabberd 2.1.11 + ldap(communigate) + ~2100 users + mod_shared_roster_ldap.<br /> problem:<br /> i see strange rate of connections with ejabberd.</p> <p>when at one moment of time some decades of users try to connect to ejabberd, it takes on approximately 15-18 users quickly and much slowly takes on another users with huge delay between acceptions of connetcions.<br /> users gets "connection timeout to server".<br /> in server log after some time i see "ldap connection timeout"<br /> when users try to connect, i don't see them tries in logs, but netstat shows their tcp connection to server.</p> <p>why?<br /> i did turn off all max_stanza_size and all shapers in config, but problem persist as in beginning.<br /> what setting in ejabberd server makes connection rate?</p></div> <p>self asked, self answering:<br /> we use client named vacuum.<br /> it hardcoded with connection timeout 30 seconds.<br /> when server has difficult load, 30 second is not enough to authenticate user.<br /> client drops connection and make new next 1 - 2 minutes.<br /> it give a parasite load and a lot broken connection, that server writes in logs, when it closed by timeout without needfulness to someone.<br /> other clients (psi at least), hasn't this problem and guaranteed connects and authenticates with server at that time.</p></div> <p>another question, thats called by prevous:<br /> in documentation i sow parameter iqdisk.<br /> this regules queues, as i understood.<br /> in description i did read, that this parameter - shared for modules.</p> <p>how can i use this or another analogic parameter in ldap authentication?</p> <p>i think, it will be usefull, and now request in ldap goes in one or in small quantity of connections.</p> Sat, 08 Dec 2012 21:51:51 +0000 devil_inside comment 59300 at https://www.ejabberd.im devil_inside wrote: we have https://www.ejabberd.im/node/8915#comment-59299 <div class="quote-msg"> <div class="quote-author"><em>devil_inside</em> wrote:</div> <p>we have ejabberd 2.1.11 + ldap(communigate) + ~2100 users + mod_shared_roster_ldap.<br /> problem:<br /> i see strange rate of connections with ejabberd.</p> <p>when at one moment of time some decades of users try to connect to ejabberd, it takes on approximately 15-18 users quickly and much slowly takes on another users with huge delay between acceptions of connetcions.<br /> users gets "connection timeout to server".<br /> in server log after some time i see "ldap connection timeout"<br /> when users try to connect, i don't see them tries in logs, but netstat shows their tcp connection to server.</p> <p>why?<br /> i did turn off all max_stanza_size and all shapers in config, but problem persist as in beginning.<br /> what setting in ejabberd server makes connection rate?</p></div> <p>self asked, self answering:<br /> we use client named vacuum.<br /> it hardcoded with connection timeout 30 seconds.<br /> when server has difficult load, 30 second is not enough to authenticate user.<br /> client drops connection and make new next 1 - 2 minutes.<br /> it give a parasite load and a lot broken connection, that server writes in logs, when it closed by timeout without needfulness to someone.<br /> other clients (psi at least), hasn't this problem and guaranteed connects and authenticates with server at that time.</p> Sat, 08 Dec 2012 21:33:14 +0000 devil_inside comment 59299 at https://www.ejabberd.im devil_inside wrote: we have https://www.ejabberd.im/node/8915#comment-59296 <div class="quote-msg"> <div class="quote-author"><em>devil_inside</em> wrote:</div> <p>we have ejabberd 2.1.11 + ldap(communigate) + ~2100 users + mod_shared_roster_ldap.<br /> problem:<br /> i see strange rate of connections with ejabberd.</p> <p>when at one moment of time some decades of users try to connect to ejabberd, it takes on approximately 15-18 users quickly and much slowly takes on another users with huge delay between acceptions of connetcions.<br /> users gets "connection timeout to server".<br /> in server log after some time i see "ldap connection timeout"<br /> when users try to connect, i don't see them tries in logs, but netstat shows their tcp connection to server.</p> <p>why?<br /> i did turn off all max_stanza_size and all shapers in config, but problem persist as in beginning.<br /> what setting in ejabberd server makes connection rate?</p></div> <p>delay to take connectioon of user takes approximately 10 minutes.<br /> all users can reconnect whithin ~2 hours.</p> <p>any settings doesn't take effect, i think, that this "feature" is hardcoded.<br /> with system keepalive i got small piece of stability, but it is not enough for us.</p> <p>does anyone meet such problem?<br /> has anyone "story of success" with this?</p> Fri, 07 Dec 2012 08:01:23 +0000 devil_inside comment 59296 at https://www.ejabberd.im