Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How to separate two enviroment in two different cluster
Good Morning,I have the following doubt,I have two Liferay cluster environments mounted in the same address (10.200.23.x), one for the Production environment and one for the Development environment. Each environment has its own servers configured, that is, two servers for liferay, a database server and an elasticsearch server, according to the documentation. Everything works correctly, but I have seen that at the time of raising the cluster or stopping the cluster, liferay takes as nodes of the cluster the 4 nodes of liferay, that is, the two nodes of Production and the two nodes of development, as you can See in the screenshot attached below:You can see that it is integrating in the same cluster, the 4 nodes, which are the two production JRDLRC01 and JRCLRC00 and the two development JRDLRC10 and JRDLRC11. This is causing us failures when launching batch processes that do not update information in the corresponding environment, so my question is, how can I separate the environments into two completely different clusters?Thank you very much in advance!
Attachments:
My guess is that you're using the default UDP ping which is based on a UDP broadcast message. With all nodes on the same subnet, even though you see them as different environments, they don't understand and form a complete, single cluster.
You can either change to a different Ping method that isolates the two clusters from each other, or you can reconfigure the UDP pings so they use different ports and can't join a cluster together.
You can either change to a different Ping method that isolates the two clusters from each other, or you can reconfigure the UDP pings so they use different ports and can't join a cluster together.
You need the cluster to use unicast.
https://portal.liferay.dev/docs/7-1/deploy/-/knowledge_base/d/enabling-cluster-link
https://portal.liferay.dev/docs/7-1/deploy/-/knowledge_base/d/enabling-cluster-link
Thank you very much for the aclarations.I will try to change the configuration and mount the cluster in both environments using unicast over TCP using TCPing as a method of discovering cluster nodes.I understand that this configuration is also valid for the Liferay 7.2.1 version, which is what I have mounted on my servers.Best regards.
Hi againI have already managed to change the cluster configuration in the development environment, being able to encapsulate it within the same network of the other two nodes of the production environment. Following the documentation, now my question is the following, to make the same configuration in the production environment, I understand that what would have to change is the bind port that is used, in development I have put the 7800, I understand that for another separato environment It would be necessary to determine another port other than 7800 which is the one used in development. Is it correct or not?Best regards.
Attachments:
That is correct. It is often best to use different ports on your various environments, especially when you do not know the networking infrastructure enough to know whether messages in the environments are able to be passed between them. And even if you know the network infrastructure enough now, you might not be able to control what changes are made tomorrow.
Picking different ports per environ should guarantee that, regardless what happens, each cluster has isolation from the others.
You might check out Cluster Details: https://web.liferay.com/marketplace/-/mp/application/124517019
It's a portlet I created that shows the admin all of the connected nodes in the cluster. This way you can see just what nodes have joined together.
Picking different ports per environ should guarantee that, regardless what happens, each cluster has isolation from the others.
You might check out Cluster Details: https://web.liferay.com/marketplace/-/mp/application/124517019
It's a portlet I created that shows the admin all of the connected nodes in the cluster. This way you can see just what nodes have joined together.
Hi again,Thank you very much David for your response. And good porlet that you have created to have more information about the cluster that one has mounted in the environment. I really give a lot of help.When I make the change in the Production environment I will keep you informed to tell you that everything has gone well, and that I have two isolated clusters from two different environments within the same subnet.Best regards.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™