Jay Patel Hace 11 años Ricardo, thanks a lot for sharing the script to do indirect farming, I was looking for that kind of solution for long time for the clustered environment. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres Jay Patel Hace 11 años - Editado You're welcome Jay,This tutorial isn't finished yet, so I'll clarify the script installation soon. Let me know if you have any trouble with it.Regards# Edit: just finished! ;) Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres Jay Patel Hace 11 años - Editado You're welcome Jay,This tutorial isn't finished yet, so I'll clarify the script installation soon. Let me know if you have any trouble with it.Regards# Edit: just finished! ;) Por favor identifíquese para votar. Contestar como... Cancelar
Jay Patel Hace 11 años Awesome...don't have specific query. But I assume that approach you are following is to copy war from shared location to "deploy" directory of the app servers in clustered, right? Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres Jay Patel Hace 11 años Well, the idea is to have this script in all the nodes watching the ndeploy/deploy folder. Then, you set liferay to copy to this folder, so for the Liferay users, this script will be transparent. If you want to deploy a portlet, you'll deploy as normally to liferay's deploy folder (or upload via Control Panel), then liferay will copy to ndeploy/deploy folder which will copy to all nodes directly to the application server.This is the same for all Liferay nodes, so you won't have a unique shared location. Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres Jay Patel Hace 11 años Well, the idea is to have this script in all the nodes watching the ndeploy/deploy folder. Then, you set liferay to copy to this folder, so for the Liferay users, this script will be transparent. If you want to deploy a portlet, you'll deploy as normally to liferay's deploy folder (or upload via Control Panel), then liferay will copy to ndeploy/deploy folder which will copy to all nodes directly to the application server.This is the same for all Liferay nodes, so you won't have a unique shared location. Por favor identifíquese para votar. Contestar como... Cancelar
Mariusz Smykuła Hace 11 años >> The first will enable Liferay to replicate both database caches (ehcache)This article is about Enterprise Liferay version? Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres Mariusz Smykuła Hace 11 años Yes, it is Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres Mariusz Smykuła Hace 11 años Yes, it is Por favor identifíquese para votar. Contestar como... Cancelar
daniel carpio contreras Hace 11 años Hi Ricardo, it's a very helpful post!!About the propertie cluster.link.autodetect.address in portal-ext.properties, i see that checking that there is a connection with <some-address> and <some-port> with the command telnet <some-address> <some-port> (port 80 in this case)But when i'm starting up Liferay there is a message like "Did not receive a response to the deployment operation within the allowed timeout period" and Liferay finally stops starting up.What I'i'm doign wrong? There is something else that i must to configure?And... how can i check if liferay has been correctly configured as simple cluster?Thanks for your answer. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Are you sure that the port 80 is opened so that liferay can check it successfully? Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Yes, i make sure of this. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años It seems to be a JBoss error, not related to the Liferay cluster. It seems that JBoss couldn't deploy something, perhaps the own Liferay. Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Hi again. Sorry but I'm very new about configuring Liferay in cluster mode.My previous issue was a hardware problem (memory leak) instead a JBoss problem, I'm running Liferay bundled with JBoss in a virtual machine.Now i'm trying to do my best configuring Liferay bundled with Tomcat (liferay-portal-tomcat-6.1.1-ce-ga2) and have some questions:Do I have to put the same portal-ext.properties in both nodes?Should I run a clean copy of Liferay (first run)?Is there an order when starting up both Liferay?Well, at this time i did everything what i'm asking and find that the Liferay started up in second node needs to be configurated again (the welcome screen, define new user password, reminder of the password, etc.), what i think is wrong because it's in "cluster mode".I'm confused about this. Is there another way to do this? In other pages i found to do this modifying some xml files, install Liferay WAR, etc. (sometimes confusing too) but not for version of Liferay 6.1 and JBoss 7.1.Thanks again for your answer. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,"Do I have to put the same portal-ext.properties in both nodes?"Yes, you do"Should I run a clean copy of Liferay (first run)?"Sorry, I didn't get this question"Is there an order when starting up both Liferay?"No, but it's good to wait the node start to start others"Well, at this time i did everything what i'm asking and find that the Liferay started up in second node needs to be configurated again (the welcome screen, define new user password, reminder of the password, etc.), what i think is wrong because it's in "cluster mode"."No, it's because you set the nodes to different databases. All the nodes must be set to the same database."I'm confused about this. Is there another way to do this? In other pages i found to do this modifying some xml files, install Liferay WAR, etc. (sometimes confusing too) but not for version of Liferay 6.1 and JBoss 7.1."No, all the cluster configuration is done here in this blog.Thanks for the questions ;) Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Hi Ricardo, it's me again. I'm glad to tell you that I'm making some progress about setting up this liferay cluster.Just one more question, the path for the libray folder must be created on each node of the cluster? or.. it must be created on a shared folder, let's say a file server?... If the correct is the second option, how can I do that on a redhat file server?Thanks again, really. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años It must be on a shared folder. I think you just have to mount the shared folder of your redhat file server for each liferay node. Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Are you sure that the port 80 is opened so that liferay can check it successfully? Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Yes, i make sure of this. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años It seems to be a JBoss error, not related to the Liferay cluster. It seems that JBoss couldn't deploy something, perhaps the own Liferay. Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Hi again. Sorry but I'm very new about configuring Liferay in cluster mode.My previous issue was a hardware problem (memory leak) instead a JBoss problem, I'm running Liferay bundled with JBoss in a virtual machine.Now i'm trying to do my best configuring Liferay bundled with Tomcat (liferay-portal-tomcat-6.1.1-ce-ga2) and have some questions:Do I have to put the same portal-ext.properties in both nodes?Should I run a clean copy of Liferay (first run)?Is there an order when starting up both Liferay?Well, at this time i did everything what i'm asking and find that the Liferay started up in second node needs to be configurated again (the welcome screen, define new user password, reminder of the password, etc.), what i think is wrong because it's in "cluster mode".I'm confused about this. Is there another way to do this? In other pages i found to do this modifying some xml files, install Liferay WAR, etc. (sometimes confusing too) but not for version of Liferay 6.1 and JBoss 7.1.Thanks again for your answer. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,"Do I have to put the same portal-ext.properties in both nodes?"Yes, you do"Should I run a clean copy of Liferay (first run)?"Sorry, I didn't get this question"Is there an order when starting up both Liferay?"No, but it's good to wait the node start to start others"Well, at this time i did everything what i'm asking and find that the Liferay started up in second node needs to be configurated again (the welcome screen, define new user password, reminder of the password, etc.), what i think is wrong because it's in "cluster mode"."No, it's because you set the nodes to different databases. All the nodes must be set to the same database."I'm confused about this. Is there another way to do this? In other pages i found to do this modifying some xml files, install Liferay WAR, etc. (sometimes confusing too) but not for version of Liferay 6.1 and JBoss 7.1."No, all the cluster configuration is done here in this blog.Thanks for the questions ;) Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Hi Ricardo, it's me again. I'm glad to tell you that I'm making some progress about setting up this liferay cluster.Just one more question, the path for the libray folder must be created on each node of the cluster? or.. it must be created on a shared folder, let's say a file server?... If the correct is the second option, how can I do that on a redhat file server?Thanks again, really. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años It must be on a shared folder. I think you just have to mount the shared folder of your redhat file server for each liferay node. Por favor identifíquese para votar. Contestar como... Cancelar
daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Yes, i make sure of this. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años It seems to be a JBoss error, not related to the Liferay cluster. It seems that JBoss couldn't deploy something, perhaps the own Liferay. Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Hi again. Sorry but I'm very new about configuring Liferay in cluster mode.My previous issue was a hardware problem (memory leak) instead a JBoss problem, I'm running Liferay bundled with JBoss in a virtual machine.Now i'm trying to do my best configuring Liferay bundled with Tomcat (liferay-portal-tomcat-6.1.1-ce-ga2) and have some questions:Do I have to put the same portal-ext.properties in both nodes?Should I run a clean copy of Liferay (first run)?Is there an order when starting up both Liferay?Well, at this time i did everything what i'm asking and find that the Liferay started up in second node needs to be configurated again (the welcome screen, define new user password, reminder of the password, etc.), what i think is wrong because it's in "cluster mode".I'm confused about this. Is there another way to do this? In other pages i found to do this modifying some xml files, install Liferay WAR, etc. (sometimes confusing too) but not for version of Liferay 6.1 and JBoss 7.1.Thanks again for your answer. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,"Do I have to put the same portal-ext.properties in both nodes?"Yes, you do"Should I run a clean copy of Liferay (first run)?"Sorry, I didn't get this question"Is there an order when starting up both Liferay?"No, but it's good to wait the node start to start others"Well, at this time i did everything what i'm asking and find that the Liferay started up in second node needs to be configurated again (the welcome screen, define new user password, reminder of the password, etc.), what i think is wrong because it's in "cluster mode"."No, it's because you set the nodes to different databases. All the nodes must be set to the same database."I'm confused about this. Is there another way to do this? In other pages i found to do this modifying some xml files, install Liferay WAR, etc. (sometimes confusing too) but not for version of Liferay 6.1 and JBoss 7.1."No, all the cluster configuration is done here in this blog.Thanks for the questions ;) Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Hi Ricardo, it's me again. I'm glad to tell you that I'm making some progress about setting up this liferay cluster.Just one more question, the path for the libray folder must be created on each node of the cluster? or.. it must be created on a shared folder, let's say a file server?... If the correct is the second option, how can I do that on a redhat file server?Thanks again, really. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años It must be on a shared folder. I think you just have to mount the shared folder of your redhat file server for each liferay node. Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres daniel carpio contreras Hace 11 años It seems to be a JBoss error, not related to the Liferay cluster. It seems that JBoss couldn't deploy something, perhaps the own Liferay. Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Hi again. Sorry but I'm very new about configuring Liferay in cluster mode.My previous issue was a hardware problem (memory leak) instead a JBoss problem, I'm running Liferay bundled with JBoss in a virtual machine.Now i'm trying to do my best configuring Liferay bundled with Tomcat (liferay-portal-tomcat-6.1.1-ce-ga2) and have some questions:Do I have to put the same portal-ext.properties in both nodes?Should I run a clean copy of Liferay (first run)?Is there an order when starting up both Liferay?Well, at this time i did everything what i'm asking and find that the Liferay started up in second node needs to be configurated again (the welcome screen, define new user password, reminder of the password, etc.), what i think is wrong because it's in "cluster mode".I'm confused about this. Is there another way to do this? In other pages i found to do this modifying some xml files, install Liferay WAR, etc. (sometimes confusing too) but not for version of Liferay 6.1 and JBoss 7.1.Thanks again for your answer. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,"Do I have to put the same portal-ext.properties in both nodes?"Yes, you do"Should I run a clean copy of Liferay (first run)?"Sorry, I didn't get this question"Is there an order when starting up both Liferay?"No, but it's good to wait the node start to start others"Well, at this time i did everything what i'm asking and find that the Liferay started up in second node needs to be configurated again (the welcome screen, define new user password, reminder of the password, etc.), what i think is wrong because it's in "cluster mode"."No, it's because you set the nodes to different databases. All the nodes must be set to the same database."I'm confused about this. Is there another way to do this? In other pages i found to do this modifying some xml files, install Liferay WAR, etc. (sometimes confusing too) but not for version of Liferay 6.1 and JBoss 7.1."No, all the cluster configuration is done here in this blog.Thanks for the questions ;) Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Hi Ricardo, it's me again. I'm glad to tell you that I'm making some progress about setting up this liferay cluster.Just one more question, the path for the libray folder must be created on each node of the cluster? or.. it must be created on a shared folder, let's say a file server?... If the correct is the second option, how can I do that on a redhat file server?Thanks again, really. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años It must be on a shared folder. I think you just have to mount the shared folder of your redhat file server for each liferay node. Por favor identifíquese para votar. Contestar como... Cancelar
daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Hi again. Sorry but I'm very new about configuring Liferay in cluster mode.My previous issue was a hardware problem (memory leak) instead a JBoss problem, I'm running Liferay bundled with JBoss in a virtual machine.Now i'm trying to do my best configuring Liferay bundled with Tomcat (liferay-portal-tomcat-6.1.1-ce-ga2) and have some questions:Do I have to put the same portal-ext.properties in both nodes?Should I run a clean copy of Liferay (first run)?Is there an order when starting up both Liferay?Well, at this time i did everything what i'm asking and find that the Liferay started up in second node needs to be configurated again (the welcome screen, define new user password, reminder of the password, etc.), what i think is wrong because it's in "cluster mode".I'm confused about this. Is there another way to do this? In other pages i found to do this modifying some xml files, install Liferay WAR, etc. (sometimes confusing too) but not for version of Liferay 6.1 and JBoss 7.1.Thanks again for your answer. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,"Do I have to put the same portal-ext.properties in both nodes?"Yes, you do"Should I run a clean copy of Liferay (first run)?"Sorry, I didn't get this question"Is there an order when starting up both Liferay?"No, but it's good to wait the node start to start others"Well, at this time i did everything what i'm asking and find that the Liferay started up in second node needs to be configurated again (the welcome screen, define new user password, reminder of the password, etc.), what i think is wrong because it's in "cluster mode"."No, it's because you set the nodes to different databases. All the nodes must be set to the same database."I'm confused about this. Is there another way to do this? In other pages i found to do this modifying some xml files, install Liferay WAR, etc. (sometimes confusing too) but not for version of Liferay 6.1 and JBoss 7.1."No, all the cluster configuration is done here in this blog.Thanks for the questions ;) Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Hi Ricardo, it's me again. I'm glad to tell you that I'm making some progress about setting up this liferay cluster.Just one more question, the path for the libray folder must be created on each node of the cluster? or.. it must be created on a shared folder, let's say a file server?... If the correct is the second option, how can I do that on a redhat file server?Thanks again, really. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años It must be on a shared folder. I think you just have to mount the shared folder of your redhat file server for each liferay node. Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,"Do I have to put the same portal-ext.properties in both nodes?"Yes, you do"Should I run a clean copy of Liferay (first run)?"Sorry, I didn't get this question"Is there an order when starting up both Liferay?"No, but it's good to wait the node start to start others"Well, at this time i did everything what i'm asking and find that the Liferay started up in second node needs to be configurated again (the welcome screen, define new user password, reminder of the password, etc.), what i think is wrong because it's in "cluster mode"."No, it's because you set the nodes to different databases. All the nodes must be set to the same database."I'm confused about this. Is there another way to do this? In other pages i found to do this modifying some xml files, install Liferay WAR, etc. (sometimes confusing too) but not for version of Liferay 6.1 and JBoss 7.1."No, all the cluster configuration is done here in this blog.Thanks for the questions ;) Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Hi Ricardo, it's me again. I'm glad to tell you that I'm making some progress about setting up this liferay cluster.Just one more question, the path for the libray folder must be created on each node of the cluster? or.. it must be created on a shared folder, let's say a file server?... If the correct is the second option, how can I do that on a redhat file server?Thanks again, really. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años It must be on a shared folder. I think you just have to mount the shared folder of your redhat file server for each liferay node. Por favor identifíquese para votar. Contestar como... Cancelar
daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Hi Ricardo, it's me again. I'm glad to tell you that I'm making some progress about setting up this liferay cluster.Just one more question, the path for the libray folder must be created on each node of the cluster? or.. it must be created on a shared folder, let's say a file server?... If the correct is the second option, how can I do that on a redhat file server?Thanks again, really. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años It must be on a shared folder. I think you just have to mount the shared folder of your redhat file server for each liferay node. Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres daniel carpio contreras Hace 11 años It must be on a shared folder. I think you just have to mount the shared folder of your redhat file server for each liferay node. Por favor identifíquese para votar. Contestar como... Cancelar
Renaud Fallier Hace 11 años Hi Ricardo,Thanks for your tutoriel. With this tuto, it is very easy to configure a cluster.But I have a problem with the shared folder. Liferay use not the correct path. He delete the "/" in the path.Error :com.liferay.portlet.documentlibrary.NoSuchFileException: Z:document_library\10155\10181\6\1.0I work on Windows and with a liferay CE 6.1.1 GA 2.It's the properties used in portal-ext.propertiesdl.store.file.system.root.dir=Z:\document_library dl.store.impl=com.liferay.portlet.documentlibrary.store.FileSystemStoreDo you have meet this problem? Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres Renaud Fallier Hace 11 años I think you should change the "\" to "/" in order to work. I'm going to correct this right now in this tutorial Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres Renaud Fallier Hace 11 años I think you should change the "\" to "/" in order to work. I'm going to correct this right now in this tutorial Por favor identifíquese para votar. Contestar como... Cancelar
Renaud Fallier Hace 11 años Thanks Ricardo. It's work fine. Por favor identifíquese para votar. Contestar como... Cancelar
daniel carpio contreras Hace 11 años Hi Ricardo, it's me again. Finally my "simple" cluster is working with Liferay CE 6.1.1 bundled with JBoss, but i'm getting a fatal error when i try to do the same in 6.1.20 EE version, I know it has to be with the license and the question is what type of license I need for clustering? The message in log is like following:"Clustering has been detected. Developer licenses do not allow for clustering. Local server is shutting down."The other question is: Is this simple cluster setting the session mode to STICKY session mode in Liferay? Or maybe I just have to configure something else in ROOT.war or JBOSS to get this feature enabled?I make this question because I'm afraid in production they are using a different load balancer, a hardware balancer, instead the software balancer that i'm using.Well I hope you could answer my questions. Thanks again. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,The Sticky Session is just a way of doing load balancing, there's a lot of balancers (hardware or software) that has support for this.Liferay works better with Sticky Session when there's a need for authentication/authorization or to make any use of user session.About the License, you'll need to purchase a production or non-production License in order to play with cluster or you may contact Liferay's Commercial Area.Regards Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,The Sticky Session is just a way of doing load balancing, there's a lot of balancers (hardware or software) that has support for this.Liferay works better with Sticky Session when there's a need for authentication/authorization or to make any use of user session.About the License, you'll need to purchase a production or non-production License in order to play with cluster or you may contact Liferay's Commercial Area.Regards Por favor identifíquese para votar. Contestar como... Cancelar
Hoa La Hace 11 años Hi Ricardo - This is awesome as it is so easy to follow. However, how do each of the node knows about the other node? Where do I put the multicase IP address? Can you provide some test cases that I can do to validate cluster is setup correctly? Thanks Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres Hoa La Hace 11 años Hi Hoa La,The nodes comunicates through multicast, if you take a look at the portal.properties you'll se in the Multicast section:#### Multicast## # # Consolidate multicast address and port settings in one location for easier # maintenance. These settings must correlate to your physical network # configuration (i.e. firewall, switch, and other network hardware matter) # to ensure speedy and accurate communication across a cluster. # # Each address and port combination represent a conversation that is made # between different nodes. If they are not unique or correctly set, there # will be a potential of unnecessary network traffic that may cause slower # updates or inaccurate updates. # # # See the property "cluster.link.channel.properties.control". # multicast.group.address["cluster-link-control"]=239.255.0.1 multicast.group.port["cluster-link-control"]=23301 # # See the properties "cluster.link.channel.properties.transport.0" and # "cluster.link.channel.system.properties". # multicast.group.address["cluster-link-udp"]=239.255.0.2 multicast.group.port["cluster-link-udp"]=23302 # # See the property "cluster.link.channel.system.properties". # multicast.group.address["cluster-link-mping"]=239.255.0.3 multicast.group.port["cluster-link-mping"]=23303 # # See the properties "net.sf.ehcache.configurationResourceName" and # "net.sf.ehcache.configurationResourceName.peerProviderProperties". # multicast.group.address["hibernate"]=239.255.0.4 multicast.group.port["hibernate"]=23304 # # See the properties "ehcache.multi.vm.config.location" and # "ehcache.multi.vm.config.location.peerProviderProperties". # multicast.group.address["multi-vm"]=239.255.0.5 multicast.group.port["multi-vm"]=23305So if you want to change these values, just put these properties in your portal-ext.properties with your own settings.For the test cases, just add a portlet on any page in one node, then go to the other node to see if the portlet is there. This will test the EhCache clustering.For Lucene, add a web content in one node, then search for that content on the other node.Also, you can put the line bellow in the $TOMCAT/webapps/ROOT/WEB-INF/classes/log4j.properties to debug the cluster communication. Don't that in a production environment!log4j.logger.net.sf.ehcache=INFOlog4j.logger.net.sf.ehcache.config=DEBUGlog4j.logger.net.sf.ehcache.distribution=DEBUGBest regards Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres Hoa La Hace 11 años Hi Hoa La,The nodes comunicates through multicast, if you take a look at the portal.properties you'll se in the Multicast section:#### Multicast## # # Consolidate multicast address and port settings in one location for easier # maintenance. These settings must correlate to your physical network # configuration (i.e. firewall, switch, and other network hardware matter) # to ensure speedy and accurate communication across a cluster. # # Each address and port combination represent a conversation that is made # between different nodes. If they are not unique or correctly set, there # will be a potential of unnecessary network traffic that may cause slower # updates or inaccurate updates. # # # See the property "cluster.link.channel.properties.control". # multicast.group.address["cluster-link-control"]=239.255.0.1 multicast.group.port["cluster-link-control"]=23301 # # See the properties "cluster.link.channel.properties.transport.0" and # "cluster.link.channel.system.properties". # multicast.group.address["cluster-link-udp"]=239.255.0.2 multicast.group.port["cluster-link-udp"]=23302 # # See the property "cluster.link.channel.system.properties". # multicast.group.address["cluster-link-mping"]=239.255.0.3 multicast.group.port["cluster-link-mping"]=23303 # # See the properties "net.sf.ehcache.configurationResourceName" and # "net.sf.ehcache.configurationResourceName.peerProviderProperties". # multicast.group.address["hibernate"]=239.255.0.4 multicast.group.port["hibernate"]=23304 # # See the properties "ehcache.multi.vm.config.location" and # "ehcache.multi.vm.config.location.peerProviderProperties". # multicast.group.address["multi-vm"]=239.255.0.5 multicast.group.port["multi-vm"]=23305So if you want to change these values, just put these properties in your portal-ext.properties with your own settings.For the test cases, just add a portlet on any page in one node, then go to the other node to see if the portlet is there. This will test the EhCache clustering.For Lucene, add a web content in one node, then search for that content on the other node.Also, you can put the line bellow in the $TOMCAT/webapps/ROOT/WEB-INF/classes/log4j.properties to debug the cluster communication. Don't that in a production environment!log4j.logger.net.sf.ehcache=INFOlog4j.logger.net.sf.ehcache.config=DEBUGlog4j.logger.net.sf.ehcache.distribution=DEBUGBest regards Por favor identifíquese para votar. Contestar como... Cancelar
daniel carpio contreras Hace 11 años Hi Ricardo, it's... me... again. Happy because the custer works, but a little sad because i'd notice that when firewall is disabled (running liferay on fedora) the cache replication is working correctly, i mean changes in one node reflects in the other node, but... when the firewall is enabled, cache replication is NOT working, it's like each node does not about the other one.My portal-ext.properties is simple like this one:##-----------------------------------------------------------------------------------------------------cluster.link.enabled=truecluster.link.autodetect.address=192.168.1.40:80## MySQL#jdbc.default.driverClassName=com.mysql.jdbc.Driverjdbc.default.url=jdbc:mysql://192.168.1.40:3306/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=falsejdbc.default.username=us3rjdbc.default.password=passw0rd##--------------------------------------------------------------------------------------I make sure that my local network configuration and the file /etc/hosts are fine. Can you tell me what changes i must do for resolve this issue? Thanks again. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años I suppose you should enable the multicast communication on the firewall. Refer to the Multicast section on portal.properties for the Multicast IPs and ports. Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años And how do i enable the multicast communication? At the moment I opened the following UDP ports from 23301 to 23305 in my firewall, and the port 5353 for Multicast is also opened i guess, what else? What are those IPs 239.255.0.1, 239.255.0.2, ..., 239.255.0.5 used for? What is the correct port for Multicast communication?I have the JBoss server pointing to all interfaces and the output for netstat command is like following:[liferay@node01 Documents]$ netstat -an | grep -i udpudp 0 0 0.0.0.0:631 0.0.0.0:* udp 0 0 127.0.0.1:41679 0.0.0.0:* udp 0 0 239.255.0.1:23301 0.0.0.0:* udp 0 0 239.255.0.2:23302 0.0.0.0:* udp 214016 0 0.0.0.0:23304 0.0.0.0:* udp 0 0 0.0.0.0:23304 0.0.0.0:* udp 212992 0 0.0.0.0:23305 0.0.0.0:* udp 0 0 0.0.0.0:23305 0.0.0.0:* udp 0 0 127.0.0.1:60210 0.0.0.0:* udp 0 0 0.0.0.0:5353 0.0.0.0:* udp 0 0 0.0.0.0:53488 0.0.0.0:* udp 0 0 224.0.75.75:7500 0.0.0.0:* udp 0 0 224.0.75.75:7500 0.0.0.0:*Maybe something more clear could help me. Thanks Ricardo! Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras daniel carpio contreras Hace 11 años Sorry the output for command is messy, it's like following:[liferay@node01.Documents]$.netstat.-an.|.grep.-i.udpudp........0......0.0.0.0.0:631.............0.0.0.0:* udp........0......0.127.0.0.1:41679.........0.0.0.0:* udp........0......0.239.255.0.1:23301.......0.0.0.0:* udp........0......0.239.255.0.2:23302.......0.0.0.0:* udp...214016......0.0.0.0.0:23304...........0.0.0.0:* udp........0......0.0.0.0.0:23304...........0.0.0.0:* udp...212992......0.0.0.0.0:23305...........0.0.0.0:* udp........0......0.0.0.0.0:23305...........0.0.0.0:* udp........0......0.127.0.0.1:60210.........0.0.0.0:* udp........0......0.0.0.0.0:5353............0.0.0.0:* udp........0......0.0.0.0.0:53488...........0.0.0.0:* udp........0......0.224.0.75.75:7500........0.0.0.0:* udp........0......0.224.0.75.75:7500........0.0.0.0:* Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,These are the multicast addresses. I suggest you to do some research about multicast communication.Liferay's multicast communication are already enable and that's because it works without firewall. Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Thank you Ricardo. It seems my problem was solved by adding the following line to the iptables file:-A INPUT -m pkttype --pkt-type multicast -j ACCEPTI'll give credits to https://www.ibm.com/developerworks/mydeveloperworks/blogs/fe313521-2e95-46f2-817d-44a4f27eba32/entry/configuring_iptables_for_ip_multicast1?lang=en Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres daniel carpio contreras Hace 11 años I suppose you should enable the multicast communication on the firewall. Refer to the Multicast section on portal.properties for the Multicast IPs and ports. Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años And how do i enable the multicast communication? At the moment I opened the following UDP ports from 23301 to 23305 in my firewall, and the port 5353 for Multicast is also opened i guess, what else? What are those IPs 239.255.0.1, 239.255.0.2, ..., 239.255.0.5 used for? What is the correct port for Multicast communication?I have the JBoss server pointing to all interfaces and the output for netstat command is like following:[liferay@node01 Documents]$ netstat -an | grep -i udpudp 0 0 0.0.0.0:631 0.0.0.0:* udp 0 0 127.0.0.1:41679 0.0.0.0:* udp 0 0 239.255.0.1:23301 0.0.0.0:* udp 0 0 239.255.0.2:23302 0.0.0.0:* udp 214016 0 0.0.0.0:23304 0.0.0.0:* udp 0 0 0.0.0.0:23304 0.0.0.0:* udp 212992 0 0.0.0.0:23305 0.0.0.0:* udp 0 0 0.0.0.0:23305 0.0.0.0:* udp 0 0 127.0.0.1:60210 0.0.0.0:* udp 0 0 0.0.0.0:5353 0.0.0.0:* udp 0 0 0.0.0.0:53488 0.0.0.0:* udp 0 0 224.0.75.75:7500 0.0.0.0:* udp 0 0 224.0.75.75:7500 0.0.0.0:*Maybe something more clear could help me. Thanks Ricardo! Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras daniel carpio contreras Hace 11 años Sorry the output for command is messy, it's like following:[liferay@node01.Documents]$.netstat.-an.|.grep.-i.udpudp........0......0.0.0.0.0:631.............0.0.0.0:* udp........0......0.127.0.0.1:41679.........0.0.0.0:* udp........0......0.239.255.0.1:23301.......0.0.0.0:* udp........0......0.239.255.0.2:23302.......0.0.0.0:* udp...214016......0.0.0.0.0:23304...........0.0.0.0:* udp........0......0.0.0.0.0:23304...........0.0.0.0:* udp...212992......0.0.0.0.0:23305...........0.0.0.0:* udp........0......0.0.0.0.0:23305...........0.0.0.0:* udp........0......0.127.0.0.1:60210.........0.0.0.0:* udp........0......0.0.0.0.0:5353............0.0.0.0:* udp........0......0.0.0.0.0:53488...........0.0.0.0:* udp........0......0.224.0.75.75:7500........0.0.0.0:* udp........0......0.224.0.75.75:7500........0.0.0.0:* Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,These are the multicast addresses. I suggest you to do some research about multicast communication.Liferay's multicast communication are already enable and that's because it works without firewall. Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Thank you Ricardo. It seems my problem was solved by adding the following line to the iptables file:-A INPUT -m pkttype --pkt-type multicast -j ACCEPTI'll give credits to https://www.ibm.com/developerworks/mydeveloperworks/blogs/fe313521-2e95-46f2-817d-44a4f27eba32/entry/configuring_iptables_for_ip_multicast1?lang=en Por favor identifíquese para votar. Contestar como... Cancelar
daniel carpio contreras Ricardo Funke Ormieres Hace 11 años And how do i enable the multicast communication? At the moment I opened the following UDP ports from 23301 to 23305 in my firewall, and the port 5353 for Multicast is also opened i guess, what else? What are those IPs 239.255.0.1, 239.255.0.2, ..., 239.255.0.5 used for? What is the correct port for Multicast communication?I have the JBoss server pointing to all interfaces and the output for netstat command is like following:[liferay@node01 Documents]$ netstat -an | grep -i udpudp 0 0 0.0.0.0:631 0.0.0.0:* udp 0 0 127.0.0.1:41679 0.0.0.0:* udp 0 0 239.255.0.1:23301 0.0.0.0:* udp 0 0 239.255.0.2:23302 0.0.0.0:* udp 214016 0 0.0.0.0:23304 0.0.0.0:* udp 0 0 0.0.0.0:23304 0.0.0.0:* udp 212992 0 0.0.0.0:23305 0.0.0.0:* udp 0 0 0.0.0.0:23305 0.0.0.0:* udp 0 0 127.0.0.1:60210 0.0.0.0:* udp 0 0 0.0.0.0:5353 0.0.0.0:* udp 0 0 0.0.0.0:53488 0.0.0.0:* udp 0 0 224.0.75.75:7500 0.0.0.0:* udp 0 0 224.0.75.75:7500 0.0.0.0:*Maybe something more clear could help me. Thanks Ricardo! Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras daniel carpio contreras Hace 11 años Sorry the output for command is messy, it's like following:[liferay@node01.Documents]$.netstat.-an.|.grep.-i.udpudp........0......0.0.0.0.0:631.............0.0.0.0:* udp........0......0.127.0.0.1:41679.........0.0.0.0:* udp........0......0.239.255.0.1:23301.......0.0.0.0:* udp........0......0.239.255.0.2:23302.......0.0.0.0:* udp...214016......0.0.0.0.0:23304...........0.0.0.0:* udp........0......0.0.0.0.0:23304...........0.0.0.0:* udp...212992......0.0.0.0.0:23305...........0.0.0.0:* udp........0......0.0.0.0.0:23305...........0.0.0.0:* udp........0......0.127.0.0.1:60210.........0.0.0.0:* udp........0......0.0.0.0.0:5353............0.0.0.0:* udp........0......0.0.0.0.0:53488...........0.0.0.0:* udp........0......0.224.0.75.75:7500........0.0.0.0:* udp........0......0.224.0.75.75:7500........0.0.0.0:* Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,These are the multicast addresses. I suggest you to do some research about multicast communication.Liferay's multicast communication are already enable and that's because it works without firewall. Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Thank you Ricardo. It seems my problem was solved by adding the following line to the iptables file:-A INPUT -m pkttype --pkt-type multicast -j ACCEPTI'll give credits to https://www.ibm.com/developerworks/mydeveloperworks/blogs/fe313521-2e95-46f2-817d-44a4f27eba32/entry/configuring_iptables_for_ip_multicast1?lang=en Por favor identifíquese para votar. Contestar como... Cancelar
daniel carpio contreras daniel carpio contreras Hace 11 años Sorry the output for command is messy, it's like following:[liferay@node01.Documents]$.netstat.-an.|.grep.-i.udpudp........0......0.0.0.0.0:631.............0.0.0.0:* udp........0......0.127.0.0.1:41679.........0.0.0.0:* udp........0......0.239.255.0.1:23301.......0.0.0.0:* udp........0......0.239.255.0.2:23302.......0.0.0.0:* udp...214016......0.0.0.0.0:23304...........0.0.0.0:* udp........0......0.0.0.0.0:23304...........0.0.0.0:* udp...212992......0.0.0.0.0:23305...........0.0.0.0:* udp........0......0.0.0.0.0:23305...........0.0.0.0:* udp........0......0.127.0.0.1:60210.........0.0.0.0:* udp........0......0.0.0.0.0:5353............0.0.0.0:* udp........0......0.0.0.0.0:53488...........0.0.0.0:* udp........0......0.224.0.75.75:7500........0.0.0.0:* udp........0......0.224.0.75.75:7500........0.0.0.0:* Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,These are the multicast addresses. I suggest you to do some research about multicast communication.Liferay's multicast communication are already enable and that's because it works without firewall. Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Thank you Ricardo. It seems my problem was solved by adding the following line to the iptables file:-A INPUT -m pkttype --pkt-type multicast -j ACCEPTI'll give credits to https://www.ibm.com/developerworks/mydeveloperworks/blogs/fe313521-2e95-46f2-817d-44a4f27eba32/entry/configuring_iptables_for_ip_multicast1?lang=en Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres daniel carpio contreras Hace 11 años Hi Daniel,These are the multicast addresses. I suggest you to do some research about multicast communication.Liferay's multicast communication are already enable and that's because it works without firewall. Por favor identifíquese para votar. Contestar como... Cancelar daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Thank you Ricardo. It seems my problem was solved by adding the following line to the iptables file:-A INPUT -m pkttype --pkt-type multicast -j ACCEPTI'll give credits to https://www.ibm.com/developerworks/mydeveloperworks/blogs/fe313521-2e95-46f2-817d-44a4f27eba32/entry/configuring_iptables_for_ip_multicast1?lang=en Por favor identifíquese para votar. Contestar como... Cancelar
daniel carpio contreras Ricardo Funke Ormieres Hace 11 años Thank you Ricardo. It seems my problem was solved by adding the following line to the iptables file:-A INPUT -m pkttype --pkt-type multicast -j ACCEPTI'll give credits to https://www.ibm.com/developerworks/mydeveloperworks/blogs/fe313521-2e95-46f2-817d-44a4f27eba32/entry/configuring_iptables_for_ip_multicast1?lang=en Por favor identifíquese para votar. Contestar como... Cancelar
Juan Jose Perez Hace 11 años Hi Ricardo.I have a doubt about the property ehcache.cluster.link.replication.enabled. Does this only work for EE or does it work for CE as well?Thank you. Regards. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres Juan Jose Perez Hace 11 años Hi Juan, This is not needed anymore since GA2 Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres Juan Jose Perez Hace 11 años Hi Juan, This is not needed anymore since GA2 Por favor identifíquese para votar. Contestar como... Cancelar
Amy Armitage Hace 10 años This might be of some use. We published an article on how to create highly available cluster for Liferay in the cloud with Jelastic.http://blog.jelastic.com/2013/06/06/liferay-cluster/ Por favor identifíquese para votar. Contestar como... Cancelar
Edmund Hsieh Hace 10 años Hi, Ricardo, we are using Liferay 6.1 CE and i was wondering if there is a limit to number of servers you can cluster with clusterlink. We setup as shown in the blog entry and we have 8 servers. Sometimes we will get the last server that starts up, it will hang up during when it is trying to establish the liferay control channel for multicasting. Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Ormieres Edmund Hsieh Hace 10 años Yes Edmund, this setup will have a scale limit, but be aware that you won't have a specified fixed number of nodes as a limit. This will depend on the data transmited by your portal through the channel. The behavior of you whole portal will determine this limit.As an alternative, you can use Terracotta and Solr (or other search engine) to bring more scalability to your portal in this context, as it will uncouple these components to other servers that can grow horizontally.This answered your question? Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Ormieres Edmund Hsieh Hace 10 años Yes Edmund, this setup will have a scale limit, but be aware that you won't have a specified fixed number of nodes as a limit. This will depend on the data transmited by your portal through the channel. The behavior of you whole portal will determine this limit.As an alternative, you can use Terracotta and Solr (or other search engine) to bring more scalability to your portal in this context, as it will uncouple these components to other servers that can grow horizontally.This answered your question? Por favor identifíquese para votar. Contestar como... Cancelar
Rick Edwards Hace 10 años Hi RicardoI'd like to add my thanks for this post - very helpful. I do have a couple of questions though:1) In a 2-node cluster, in the portal-ext files, I have thecluster.link.autodetect.address set up thusly:On node 1:cluster.link.autodetect.address=NODE_2_ADDRESS:8080and on node 2:cluster.link.autodetect.address=NODE_1_ADDRESS:8080Is this correct?And secondlyto use your "ndeploy" script, wouldn't it be preferable to actually deploy it outside the Liferay hierarchy? In case of an upgrade, you would just need to change the locations within the script, rather than salvaging the script and directories from the old hierarchy and re-deploying into the upgraded one. I know - not a LOT of work either way, but maybe saves a bit of planning.... Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke Rick Edwards Hace 10 años Hi Rick,The answer for the first question is no, I don't recommend you to use port 8080 of other nodes, because Liferay will not start if the other node is down.If you use Linux, I suggest you to use port 22 (or any other SSH port you are using) and the IP of the local node, not the remote one.This ip:port is just used to detect what network interface Liferay will use for the multicast communication. It will be best to use the same IP:port in all nodes because it will be better to maintain those files if all of them is exactly equal.For the second question, you're right, you can put ndeploy folder in any place you feel better.Best regards Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke Rick Edwards Hace 10 años Hi Rick,The answer for the first question is no, I don't recommend you to use port 8080 of other nodes, because Liferay will not start if the other node is down.If you use Linux, I suggest you to use port 22 (or any other SSH port you are using) and the IP of the local node, not the remote one.This ip:port is just used to detect what network interface Liferay will use for the multicast communication. It will be best to use the same IP:port in all nodes because it will be better to maintain those files if all of them is exactly equal.For the second question, you're right, you can put ndeploy folder in any place you feel better.Best regards Por favor identifíquese para votar. Contestar como... Cancelar
Marco Codeluppi Hace 10 años Hi Ricardo,I follow the clear guide.I've got two machine with Liferay cluster, 6.1 CE GA3, installed on Tomcat 7.0.40.I've a third machine with solr and one shared folder used for document library. All the server are Windows 2008 R2 std edition.I've configured the propertie dl.store.file.system.root.dir and all others necessary properties, but when I try to upload a file i receive this error:Caused by: java.io.FileNotFoundException: X:\document_library\10253\10279\70\701.afsh\701_1.0.afsh (The system cannot find the path specified) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:194) at java.io.FileOutputStream.<init>(FileOutputStream.java:145) at com.liferay.portal.util.FileImpl.write(FileImpl.java:857) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88) at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56) at com.sun.proxy.$Proxy61.write(Unknown Source) at com.liferay.portal.kernel.util.FileUtil.write(FileUtil.java:388) at com.liferay.portlet.documentlibrary.store.FileSystemStore.addFile(FileSystemStore.java:79) at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.addFile(StoreProxyImpl.java:65) at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.addFile(SafeFileNameStoreWrapper.java:85) at com.liferay.portlet.documentlibrary.store.DLStoreImpl.addFile(DLStoreImpl.java:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)I checked that the user had permission to write in the share folderCan you help me?Thnaks in advanceMarco Por favor identifíquese para votar. Contestar como... Cancelar
om prakash Hace 8 años Hi Ricardo,I am new to clustering, please clarify that how to set session time out in clustering.Advance Thanks Por favor identifíquese para votar. Contestar como... Cancelar Ricardo Funke om prakash Hace 8 años Hi prakash, Session timeout is not related to clustering, you can change it in the web.xml file along with some properties in portal-ext.properties. I'm sure you can find alot of tutorials about it. Best regards Por favor identifíquese para votar. Contestar como... Cancelar
Ricardo Funke om prakash Hace 8 años Hi prakash, Session timeout is not related to clustering, you can change it in the web.xml file along with some properties in portal-ext.properties. I'm sure you can find alot of tutorials about it. Best regards Por favor identifíquese para votar. Contestar como... Cancelar