[ejabberd] Disabling mod_ping and instead using stream management and TCP keepalive

Mickaël Rémond mremond at process-one.net
Tue May 8 15:27:09 MSK 2018


Yes, tcp keep alive is also helpful. 

-- 
Mickaël Rémond

> Le 8 mai 2018 à 13:55, Gholamreza Sabery <gr.sabery at gmail.com> a écrit :
> 
> Thank you very much for your response Mickaël;
> 
> Does TCP Keep-Alive of any help in this(Client and Server side)? 
> 
> PS: What other things should I do to replace mod_ping?
> 
> Regards
> 
>> On Tue, May 8, 2018 at 3:15 PM, Mickaël Rémond <mremond at process-one.net> wrote:
>> Hello,
>> 
>> You should indeed avoid mod_ping, especially on large scale and stream management is one of the option that helps making this possible.
>> 
>> Best regards,
>> 
>> -- 
>> Mickaël Rémond
>> 
>>> Le 8 mai 2018 à 12:05, Gholamreza Sabery <gr.sabery at gmail.com> a écrit :
>>> 
>>> I was wondering what happens if we totally disable mod_ping and instead use XMPP Stream Management and TCP Keep-Alive to detect whether a client is still connected or not. Is it possible at all or it can cause unexpected issues in large-scale?
>>> 
>>> PS: I my logs I noticed that 70% of all messages that Ejabberd receives from clients are ping messages. Clients use this  messages to check to see whether their connection is still open or not. I thought the same could be achieved by a combination of TCP Keep-Alive (which keeps the connection open) and XMPP Stream Management which clients can use to see whether their messages is arrived or not.
>>> 
>>> 
>>> ServerFault link: https://serverfault.com/questions/911221/disabling-mod-ping-and-instead-using-stream-management-and-tcp-keepalive
>>> 
>>> Regards
>>> _______________________________________________
>>> ejabberd mailing list
>>> ejabberd at jabber.ru
>>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>> 
>> _______________________________________________
>> ejabberd mailing list
>> ejabberd at jabber.ru
>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>> 
> 
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20180508/8d41ccf6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3872 bytes
Desc: not available
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20180508/8d41ccf6/attachment-0001.bin>


More information about the ejabberd mailing list