[ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster support[ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supporthttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=977048622024-03-29T00:18:44Z2024-03-29T00:18:44ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportGromek Gromekhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1114921032018-11-08T14:20:32Z2018-11-08T14:20:32Z<p>RE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster support</p>
<p> </p>
<p>I've made the changes you published and built the modules (The
liferay version is 7.0 GA7):</p>
<p>com.liferay.portal.cache.ehcache.jar<br />
com.liferay.portal.scheduler.multiple.jar<br />
com.liferay.portal.cache.ehcache.provider.jar<br />
com.liferay.portal.cluster.multiple.jar<br /> com.liferay.portal.cache.ehcache.multiple.jar</p>
<p>But I get the following error:</p>
<p>ERROR [Framework Event Dispatcher: Equinox Container:
3048b47a-69e6-0018-1083-de4dfc13fb2e][com_liferay_portal_cache_ehcache:97]
FrameworkEvent ERROR <br /> org.osgi.framework.BundleException: Could
not resolve module: com.liferay.portal.cache.ehcache [45]_ Unresolved
requirement: Import-Package: com.liferay.portal.kernel.cache;
version="[7.2.0,8.0.0)"_ [Sanitized]<br /> at
org.eclipse.osgi.container.Module.start(Module.java:429)<br /> at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)<br />
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)<br />
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)<br />
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)<br />
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)<br />
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)<br />
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)</p>
<p>
<br /> Do you have any idea?<br /> Thank you.<br /> </p>Gromek Gromek2018-11-08T14:20:32ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportSebastian Bayerleinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1089869972018-05-28T11:05:25Z2018-05-28T11:05:25ZOK, thanks. Which one is the affected JAR file? I couldn't find the classes.Sebastian Bayerlein2018-05-28T11:05:25ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportJuan Gonzalezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1089884982018-05-28T10:43:42Z2018-05-28T10:43:42Z<div class="quote-title">Sebastian Bayerlein:</div><blockquote>Thank you! So at the moment, there is no possibility to use Liferay Portal 7 CE GA6 with JGroups cluster support, right?</blockquote><br /><br />Not sure. It depends as I said. If there are no changes between versions maybe just drop in the affected compiled jar files could work but still couldn't check this.Juan Gonzalez2018-05-28T10:43:42ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportSebastian Bayerleinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1089864522018-05-28T10:38:13Z2018-05-28T10:38:13ZThank you! So at the moment, there is no possibility to use Liferay Portal 7 CE GA6 with JGroups cluster support, right?Sebastian Bayerlein2018-05-28T10:38:13ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportJuan Gonzalezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1089832372018-05-28T10:32:29Z2018-05-28T10:32:29Z<div class="quote-title">Sebastian Bayerlein:</div><blockquote>Hello Juan,<br /><br />Do you already have such jar files? I'm using Liferay 7 CE GA6 and want to integrate your solution. How can I do this? I already built the portal from your sources. Can you please tell me, what's the next step?<br /><br />Regards,<br />Sebastian</blockquote><br /><br />It depends if affected source files had changed from GA5 to GA6. I hope to get back to this pretty soon.Juan Gonzalez2018-05-28T10:32:29ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportJuan Gonzalezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1089832012018-05-28T10:30:57Z2018-05-28T10:30:57Z<div class="quote-title">Chris Huff:</div><blockquote>Juan,<br /><br />Just a quick question on the jgroups branch. It looks like your last check in was in Aug 2017. The GA5 release was in Oct 2017 and the GA6 in Mar 2018. So, I was wondering if any updates are needed, or if we need a new tag/merge to run jgroups on GA6? Since your commit is based on 7.0.x, I suppose the only risk would be if any conflicts were introduced in GA5 or GA6 specifically affecting your changes. I haven't taken a look at it yet in that detail, and was wondering if you had a chance to do so :-)<br /><br />Thank s.<br /><br />-Chris</blockquote><br /><br />Hi Chris. Didn't have time to check this as I 've been busy with other side projects. Now it seems finished so I hope to get back to this for source on GA6 and GA7Juan Gonzalez2018-05-28T10:30:57ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportSebastian Bayerleinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1089840962018-05-28T10:24:52Z2018-05-28T10:24:52ZHello Juan,<br /><br />Do you already have such jar files? I'm using Liferay 7 CE GA6 and want to integrate your solution. How can I do this? I already built the portal from your sources. Can you please tell me, what's the next step?<br /><br />Regards,<br />SebastianSebastian Bayerlein2018-05-28T10:24:52ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportChris Huffhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1065889082018-04-12T21:57:08Z2018-04-12T21:57:08ZJuan,<br /><br />Just a quick question on the jgroups branch. It looks like your last check in was in Aug 2017. The GA5 release was in Oct 2017 and the GA6 in Mar 2018. So, I was wondering if any updates are needed, or if we need a new tag/merge to run jgroups on GA6? Since your commit is based on 7.0.x, I suppose the only risk would be if any conflicts were introduced in GA5 or GA6 specifically affecting your changes. I haven't taken a look at it yet in that detail, and was wondering if you had a chance to do so :-)<br /><br />Thank s.<br /><br />-ChrisChris Huff2018-04-12T21:57:08ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportChris Huffhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1048600632018-03-05T19:51:32Z2018-03-05T19:51:32ZSo I saw jgroups in the GA5 code under portal-cluster-mutiple.<br />https://github.com/liferay/liferay-portal/tree/master/modules/apps/foundation/portal/portal-cluster-multiple/src/main/java/com/liferay/portal/cluster/multiple/internal/jgroups<br /><br />But after looking at it a bit more, it looks like most of the changes you made are in portal-cache-ehcache-multiple and portal-cache-ehcache-provider. GA5 for the ehcache looks like it uses RMI.Chris Huff2018-03-05T19:51:32ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportJuan Gonzalezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1047416152018-03-02T22:22:29Z2018-03-02T22:22:29ZHi Chris.<br /><br /><div class="quote-title">Chris Huff:</div><blockquote>Juan,<br /><br />I've got a small project that I need to dive into this. So there's JGroup code in the GA5 from LR, is it not using it? or not using it well? Just curious a little over the differences between their JGroups code and your branch. I'm prob going to take a deep dive to examine in more detail, but I'd like to get your take on it, if you can :-)<br /><br />Thanks,<br />Chris H.</blockquote><br /><br />Why do you state that there is JGroups code from Liferay 7 GA5? Can you point me to that source please?<br /><br />Thanks.Juan Gonzalez2018-03-02T22:22:29ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportChris Huffhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1047422792018-03-02T22:19:58Z2018-03-02T22:19:58ZJuan,<br /><br />I've got a small project that I need to dive into this. So there's JGroup code in the GA5 from LR, is it not using it? or not using it well? Just curious a little over the differences between their JGroups code and your branch. I'm prob going to take a deep dive to examine in more detail, but I'd like to get your take on it, if you can :-)<br /><br />Thanks,<br />Chris H.Chris Huff2018-03-02T22:19:58ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportJuan Gonzalezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1029324512018-01-18T20:42:02Z2018-01-18T20:42:02Z<div class="quote-title">David W.:</div><blockquote><div class="quote-title">Juan Gonzalez:</div><blockquote>Thanks Antonio. Waiting for your feedback.<br /><br />I think I am going to publish this as a Marketplace app so everyone can use it without touching code.</blockquote><br /><br />Hi Juan:<br />Any chance to publish this to Marketplace? Awesome work, btw.<br /><br />Thanks!<br />David</blockquote><br /><br />Thanks David.<br />Publishing into Marketplace would require more work as I would have to change all custom packages instead of changing existing classes.<br /><br />What I should have soon are some replacement jar files to drop into 7 GA5, restart and have it working.Juan Gonzalez2018-01-18T20:42:02ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportDavid W.https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1029269952018-01-18T18:15:08Z2018-01-18T18:15:08Z<div class="quote-title">Juan Gonzalez:</div><blockquote>Thanks Antonio. Waiting for your feedback.<br /><br />I think I am going to publish this as a Marketplace app so everyone can use it without touching code.</blockquote><br /><br />Hi Juan:<br />Any chance to publish this to Marketplace? Awesome work, btw.<br /><br />Thanks!<br />DavidDavid W.2018-01-18T18:15:08ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportJuan Gonzalezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=977648752017-10-31T07:50:57Z2017-10-31T07:50:57ZThanks Antonio. Waiting for your feedback.<br /><br />I think I am going to publish this as a Marketplace app so everyone can use it without touching code.Juan Gonzalez2017-10-31T07:50:57ZRE: [ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportAntonio Musarrahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=977348992017-10-30T12:46:51Z2017-10-30T12:46:51ZHi Juan.<br />A very good job. I've done the build of the project in the next few days I'll see a test.<br />Right now I have published a <a href="https://github.com/amusarra/docker-liferay-portal/tree/7-ce-ga5-tomcat-postgres-cluster">Docker Compose project</a> on the my GitHub repository to pull on a sample cluster.<br /><br />See you soon.Antonio Musarra2017-10-30T12:46:51Z[ANNOUNCEMENT] Liferay Portal 7 CE GA5 with JGroups cluster supportJuan Gonzalezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=977048612017-10-28T21:00:29Z2017-10-28T21:00:29Z<html><head></head><body>Hi community!<br><br>As you know, <a href="https://community.liferay.com/news/liferay-portal-7-0-ce-ga5-release/">GA5 was released</a> this week with cluster support.<br><br>This cluster support is limited to EhCache RMI replication. RMI is known to not scale well when increasing the number of cluster nodes. It creates more threads when adding more nodes to the cluster. They can cause server nodes to decrease its performance and even to crash.<br><br>So, I made the needed changes from Liferay 7 CE GA5 sources to change RMI to JGroups. Before writing where the source code is, just wanted to describe some important points in order for it to work:<br><br>1- You should compile portal (ant all). <br>2- There are two new properties that can be configured for JGroups in portal-ext.properties:<br><pre><code>ehcache.jgroups.peer.provider.factory.class=net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProviderFactory
ehcache.jgroups.peer.provider.factory.properties=UDP(mcast_addr=${multicast.group.address["multi-vm"]};mcast_port=${multicast.group.port["multi-vm"]};):PING:MERGE2:FD_SOCK:VERIFY_SUSPECT:pbcast.NAKACK:UNICAST:pbcast.STABLE:FRAG:pbcast.GMS</code></pre><br><br>3-Before starting up portal you should create a file