[Geoserver-users] Managing data in a clustered environment

I have a test environment using Apache2 + 2 Tomcats and 2 Geoservers using the SAME Geoserver data & config directory. Everything seems to work fine BUT:

How can I manage data using Geoserver??? Two (2) instances are running, and if I change a layer name using the first Geoserver, it remains the same when I log on the second Geoserver. Using outside port via Apache2 I see the unaltered layer name using layer preview. So, what would the right way to manage data to keep it in sync?

I followed the instructions in "Iacovella-Yougblood: Geoserver Beginners Guide", chapter 11, execpt both Tomcats are configured to start via startup.sh, not via service.

Thanks in advance, Oiva

Oiva,

There are a few strategies here, most likely the one you should take in a production system is a script that uses the REST [1] API to refresh the second GeoServer. It should pick up the changes then.

This sounds scarier than it really is, the call that you have to make is quite simple, see [2]

Hope that helps

[1] http://docs.geoserver.org/stable/en/user/rest/api/index.html

[2] http://docs.geoserver.org/stable/en/user/rest/api/reload.html

···

On Mon, Jul 8, 2013 at 2:25 PM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com> wrote:

I have a test environment using Apache2 + 2 Tomcats and 2 Geoservers using the SAME Geoserver data & config directory. Everything seems to work fine BUT:

How can I manage data using Geoserver??? Two (2) instances are running, and if I change a layer name using the first Geoserver, it remains the same when I log on the second Geoserver. Using outside port via Apache2 I see the unaltered layer name using layer preview. So, what would the right way to manage data to keep it in sync?

I followed the instructions in “Iacovella-Yougblood: Geoserver Beginners Guide”, chapter 11, execpt both Tomcats are configured to start via startup.sh, not via service.

Thanks in advance, Oiva

This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Juan Marín Otero
GIS Consultant

-------Visita mi blog en---------------------
http://guachintoneando.blogspot.com

Thank you, I do understand the principle, but I am not able to make REST scripts. No more programmig languages anymore :wink:

I tried to send reload-command via HTTP poster to my geoserver, but no help. So, an example would be nice to get. If I was to write manuals, I’d always give a working example. For me those manuals are quite cryptic

Oiva

···

On Mon, Jul 8, 2013 at 2:25 PM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com> wrote:

I have a test environment using Apache2 + 2 Tomcats and 2 Geoservers using the SAME Geoserver data & config directory. Everything seems to work fine BUT:

How can I manage data using Geoserver??? Two (2) instances are running, and if I change a layer name using the first Geoserver, it remains the same when I log on the second Geoserver. Using outside port via Apache2 I see the unaltered layer name using layer preview. So, what would the right way to manage data to keep it in sync?

I followed the instructions in “Iacovella-Yougblood: Geoserver Beginners Guide”, chapter 11, execpt both Tomcats are configured to start via startup.sh, not via service.

Thanks in advance, Oiva

This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Juan Marín Otero
GIS Consultant

-------Visita mi blog en---------------------
http://guachintoneando.blogspot.com

I am afraid REST /reload won’t do the job. I try connecting my second geoserver like this:

http://localhost:8180/geoserver/rest/reload

then geoserver asks my username and password. After that I connect to that server normal way, just to notice, that nothng has happened. Still unaltered data.

I am sure that someone has managed to do this, but how?

Oiva

···

On Mon, Jul 8, 2013 at 2:25 PM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com> wrote:

I have a test environment using Apache2 + 2 Tomcats and 2 Geoservers using the SAME Geoserver data & config directory. Everything seems to work fine BUT:

How can I manage data using Geoserver??? Two (2) instances are running, and if I change a layer name using the first Geoserver, it remains the same when I log on the second Geoserver. Using outside port via Apache2 I see the unaltered layer name using layer preview. So, what would the right way to manage data to keep it in sync?

I followed the instructions in “Iacovella-Yougblood: Geoserver Beginners Guide”, chapter 11, execpt both Tomcats are configured to start via startup.sh, not via service.

Thanks in advance, Oiva

This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Juan Marín Otero
GIS Consultant

-------Visita mi blog en---------------------
http://guachintoneando.blogspot.com