{"id":2454,"date":"2022-08-30T15:25:00","date_gmt":"2022-08-30T15:25:00","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/12\/ejabberd-clustering-understanding-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:25:00","modified_gmt":"2022-08-30T15:25:00","slug":"ejabberd-clustering-understanding-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/ejabberd-clustering-understanding-collection-of-common-programming-errors\/","title":{"rendered":"Ejabberd Clustering understanding-Collection of common programming errors"},"content":{"rendered":"<p>&#8220;Load balancing&#8221; is not what you are describing in your question.<\/p>\n<p>In load balancing, a incoming connections are distributed in a balanced fashion over multiple nodes. This is so that no one server has too high a load (hence the name &#8220;load balancing&#8221;). It also provides fail-over capability if your load balancer is smart enough to detect and remove dead nodes.<\/p>\n<p>A smart load balancer can make it so that <em>new<\/em> connections always succeed as long as there is at least one working node in your cluster. However, in your question, you talk about clients &#8220;maintaining the connection&#8221;. That&#8217;s something quite different.<\/p>\n<p>To do that, you&#8217;d either need the connection to be stateless or you&#8217;d need each client to connect to all nodes. That&#8217;s not how XMPP works: it&#8217;s a stateful connection to a single server. You must rely on your clients to reconnect if they get disconnected.<\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-12 20:51:17. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>&#8220;Load balancing&#8221; is not what you are describing in your question. In load balancing, a incoming connections are distributed in a balanced fashion over multiple nodes. This is so that no one server has too high a load (hence the name &#8220;load balancing&#8221;). It also provides fail-over capability if your load balancer is smart enough [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2454","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2454"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2454\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}