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?


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.

  • 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
  • hi Sven Axt can you help me in geoserver clustering ? here is link to my problem gis.stackexchange.com/questions/170970/… – Abhijit Gujar Nov 20 '15 at 12:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.