组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
sandeep tripathi
same database/application on 2 tomcat server
2012年11月16日 下午10:34
答复

sandeep tripathi

等级: Regular Member

帖子: 100

加入日期: 2011年10月19日

最近的帖子

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
2012年11月16日 下午11:25
答复

Hitoshi Ozawa

等级: Liferay Legend

帖子: 7954

加入日期: 2010年3月23日

最近的帖子

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
2012年11月17日 上午8:29
答复

David H Nebinger

等级: Liferay Legend

帖子: 7252

加入日期: 2006年9月1日

最近的帖子

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
2012年11月17日 下午12:58
答复

Johnathan Burbea

等级: Junior Member

帖子: 39

加入日期: 2012年4月5日

最近的帖子

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
2012年11月19日 上午2:19
答复

sandeep tripathi

等级: Regular Member

帖子: 100

加入日期: 2011年10月19日

最近的帖子

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