We have been running ejabberd server with http_bind using port 5280 for a year or so. We are using strophe.js to connect via BOSH to our server with awesome success. When we use direct port 5280 we see connections come in and be maintained until they logged off or were disconnected.
Couple of weeks ago we switched to going through an apache proxy so our clients don't have to open ports 5280. However, the first two days in production our server stopped responding after our server which normally runs at 20% processor went to 75% and just stopped responding. Additionally, we have roughly 3000 clients connecting.
We rolled back going through the apache proxy and our server is back to normal. So what can be causing this issue?
We are running version 2.1.10 and we do see 2.1.11 addressed many HTTP issues and we also see version 2.1.13 is the current. Reviewing the release notes I do not see any issue specifically addressing what we are seeing.
Very straight forward configuring the apache http proxy. However, what we have noticed is that anytime the users send data we are seeing new connections in our log. Below is actual log from our test server (ip removed for security):
INFO REPORT==== 2013-10-07 13:22:18 ===
I(<0.9702.0>:ejabberd_listener:281) : (#Port<0.46129>) Accepted connection {{XX,XXX,XX,208},41351} -> {{XX,XXX,XX,217},5280}
=INFO REPORT==== 2013-10-07 13:22:18 ===
I(<0.10.1>:ejabberd_http:143) : started: {gen_tcp,#Port<0.46129>}
=INFO REPORT==== 2013-10-07 13:22:18 ===
I(<0.32755.0>:mod_orion_user:203) : The Packet is: {xmlelement,"presence",
[{"id","83163"},
{"status","Unavailable/"},
{"location","570"},
{"type",
"change_availability_status"}],
[]}
=INFO REPORT==== 2013-10-07 13:22:38 ===
I(<0.9702.0>:ejabberd_listener:281) : (#Port<0.46144>) Accepted connection {{XX,XXX,XX,208},41352} -> {{XX,XXX,XX,217},5280}
=INFO REPORT==== 2013-10-07 13:22:38 ===
I(<0.13.1>:ejabberd_http:143) : started: {gen_tcp,#Port<0.46144>}
=INFO REPORT==== 2013-10-07 13:22:38 ===
I(<0.32755.0>:mod_orion_user:203) : The Packet is: {xmlelement,"presence",
[{"id","83163"},
{"status","Available/"},
{"location","570"},
{"type",
"change_availability_status"}],
[]}
As you see that within 11 seconds running through our apache Proxy (208) to our ejabberd server (217) created a new connection. Is this normal for http proxied BOSH?
If you need more info please let me know and I will provide it.
thanks
james