Deploying an Openfire chat cluster in Smart IT
Openfire is an open source real-time collaboration server based on the XMPP (Jabber) protocol used for instant messaging and group chat.
- Install the Openfire chat on all the nodes in the cluster.
- Deploy Openfire nodes in a cluster.
- (Optional)Install the Punjab service on the primary and secondary severs and run the Punjab service on both the servers.
Using Punjab is optional and is useful to manage XMPP connections.
Log on to the Openfire Admin console, go to Server > Server Information > Edit Properties, and change the Server name to the load balancer URL that points to 5222 port on openfire.
Step 5 and Step 6 are required for a single node as all nodes have a common database.
Restart the Openfire nodes.
From the Centralized Configuration modify the following statements:
chat.server.cm.host = <loadbalancer url pointing to 5222> chat.server.client.port = 5222 chat.server.admin.login = admin chat.server.admin.password = admin chat.server.admin.pool.size = 6 chat.server.groupChatService = conference chat.server.domain = <loadbalancer url pointing to 5222> chat.server.boshUrl = http://<loadbalancer url pointing to 7070>/http-bind/
Restart Smart IT servers.