Load balancing and clustering in Liferay-css not loading

I am trying to implement clustering in liferay 6.2 on my local system using sticky sessions. I have completed the following steps to configure this.

1 install the Apache web server and make the following changes to httpd.conf

Added below code snippet at the end of the file.

  <Proxy balancer://clusterdemo>
            BalancerMember ajp://localhost:8009/ route=INT1 smax=15 max=50 loadfactor=20
            BalancerMember ajp://localhost:8010/ route=INT2  smax=15 max=50 loadfactor=20
            </Proxy>

<Location / >
ProxyPass balancer://clusterdemo/ stickysession=JSESSIONID
</Location>

and without commenting below the lines

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule status_module modules/mod_status.so

2 Extract two copies of Liferay 6.2 and change the nos port accordingly

3 Modified jvmRoutein the server.xmlfile of both Liferay tomcat packages.

First instance

<Engine name="Catalina" defaultHost="localhost" jvmRoute="INT1">

Second instance

<Engine name="Catalina" defaultHost="localhost" jvmRoute="INT2  ">

4 The properties in the portal-ext.propertiesLiferay instance file are added below and the same database is configured for both instances.

cluster.link.enabled=true

cluster.link.autodetect.address=localhost:3306

5 Restarted Apache web server and both instances of Liferay

http://127.0.0.1/web/guest/welcome url , , , .

, css , . . , css Liferayhome\tomcat-7.0.42\webapps\ROOT\html\themes\classic, Liferayhome\tomcat-7.0.42\webapps\welcome-theme ?? /.

enter image description here

Firbug enter image description here

?

** : ** cookie, .

Cookie:COOKIE_SUPPORT=true; JSESSIONID=48705C436A9BE3D054577705EA41FA77.INT1; GUEST_LANGUAGE_ID=en_US

Cookie:COOKIE_SUPPORT=true; JSESSIONID=C04FBBD76B10422D292827B301320DC4.INT2; GUEST_LANGUAGE_ID=en_US

Advance

+4
2

Liferay.

- . , Liferay clustering , : Liferay " " , , . , - , , .

CSS - , Apache/Liferay - . Firebug , , 404, 500 , .

, tomcat, ( jvmRoute server.xml), sessionid, Apache , tomcat .

:

  • , . http - . 8080 8081 ( , )
  • , , INT1 , INT2 ( )
  • , , , (, INT1, INT1, INT2 → ? INT1, INT2, INT1 → ?)
  • , AJP - localhost . , . , , . - . nmap Apache , , , Apache .
  • , : , .

, , serverfault.com.

+4

, .

, ROOT server.xml(/ XML ).

+1

All Articles