Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
sandeep tripathi
same database/application on 2 tomcat server
16 novembre 2012 22.34
Risposta

sandeep tripathi

Punteggio: Regular Member

Messaggi: 100

Data di Iscrizione: 19 ottobre 2011

Messaggi recenti

Hi Everyone,

to overcome the load of site ,we had use a load balance and two server on both the server same liferay application is deployed in tomcat which is pointing to same database .
now we facing 2 issue
1) if i upload a new image on one server other server does not have that image in it data folder .
2) if i change a web content (editing the link given in web content )on one server other server the content change . i mean when i click on edit web content i can see the updated link but the web content is not pointing to that link.

can some one please help me out with wat can i do .


Regards
Sandeep
Hitoshi Ozawa
RE: same database/application on 2 tomcat server
16 novembre 2012 23.25
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

1) if i upload a new image on one server other server does not have that image in it data folder .


That's probably because you're saving image files to the local directory. You'll need to save it to a shared drive or to something like cms.

2) if i change a web content (editing the link given in web content )on one server other server the content change . i mean when i click on edit web content i can see the updated link but the web content is not pointing to that link.

I'm not understanding what you're doing. Would you explain the exact steps.
David H Nebinger
RE: same database/application on 2 tomcat server
17 novembre 2012 8.29
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 11334

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

sandeep tripathi:
can some one please help me out with wat can i do .


Sure. Realize that putting a load balancer in front of two separate web applications does not mean you've now got a cluster.

The two liferay instances will need additional configuration so they work together in a cluster, such as sharing the image gallery, document library, database, and indexes...
Johnathan Burbea
RE: same database/application on 2 tomcat server
17 novembre 2012 12.58
Risposta

Johnathan Burbea

Punteggio: Junior Member

Messaggi: 39

Data di Iscrizione: 5 aprile 2012

Messaggi recenti

Hi David,

I thought there was a configuration that allowed us to use database only for document library and the image gallery, indexes etc. Perhaps not the best performance but allow us not to use a file system for the liferay home data?

Thank you for your support.
sandeep tripathi
RE: same database/application on 2 tomcat server
19 novembre 2012 2.19
Risposta

sandeep tripathi

Punteggio: Regular Member

Messaggi: 100

Data di Iscrizione: 19 ottobre 2011

Messaggi recenti

Hi Everyone,

after going through this link http://videos.liferay.com/webinars/2010-07-28.ogv i had understand
we need to configure database ,image gallery, document library ,indexes as also explain by david

for sharing database i had use same database in portal-ext.properties in my both the instance.
for sharing the image gallery, document library i had try on my local system first i had cut data folder from liferay-portal-6.0.5 and added following in portal-ext.properties in local system

image.hook.impl=com.liferay.portal.image.FileSystemHook
image.hook.file.system.root.dir=path/data/images
dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook
dl.hook.file.system.root.dir=path/data/document_library

and restart tomcat but this is not working is this right !!!

Regards
Sandeep