Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have problems setting up a clustered Geoserver. So far got four instances (version 2.2.4) running on a ubuntu linux box with a shared data directory behind HAProxy. I use one of the geoservers to configure the cluster (master) and reload configuration in the other instances (slaves). In practice I often get errors when reloading configuration on the slaves. Only restarting each instance in the cluster distributed the configuration to all instances. It seems that i am doing something wrong. Has anyone made some experiences in clustering geoserver?

EDIT:

Thank you Brad and sorry for getting back so late. Here I provide you with some details: the cluster was set up according to http://www.tomcatexpert.com/blog/2010/07/20/basic-tomcat-clustering-grails-applications After installation a directory /var/lib/geoserver_data was added and in the startup scripts I set CATALINA_OPTS DGEOSERVER_DATA_DIR=/var/lib/geoserver_data -DGWC_DISKQUOTA_DISABLED=true -DGWC_METASTORE_DISABLED=true

So all instances share the same data directory.

So far so good. Until additional data is added: For adding data only one of the geoserver instances is used. Adding - lets say a postgis layer - works fine. I can see the layer in the preview and use it as expected. But when i go to the admin interface in of the other instances, hitting 'reload configuration' an error message greets me, saying:

java.lang.IllegalArgumentException: Settings already exist for workspace 'abc'

Removing workspace 'abc' leads to

"Settings already exist for workspace 'def'"

and so on.

share|improve this question
3  
Sven: welcome to gis.SE. Your question at the end isn't very specific - I'm sure there are a few people with experience in this area, but I guess you want to know about the specific problem you're describing - not reloading configuration correctly? Can you tell us the exact error message? Can you describe whether the configuration is shared (i.e. is on a common directory). Does the not-reloading problem occur every time, or only sometimes? You can edit your question (just click edit above) to make it more specific and add details. –  BradHards Mar 3 '13 at 22:00
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.