Ciao Justin,
Yesterday and today I did other tests on the clustering of Geoserver, I
found two solutions.
1. Tomcat cluster
Using the Tomcat clusterin you can use Geoserver on N nodes without session
replication. Earlier I had configured the N nodes to be distributions and
then I added in web.xml of every single node tag <distributable /> but this
for the problem of Serialization does not allow logging in the user
interface for Geoserver administration .
Commenting on the tag <distributable /> login works. Of course the session
is not replicated on all nodes. But you have HA on the nodes that are part
of the cluster. I Using a script when the configuration change and reloading
on all nodes the configuration.
2. Terracotta cluster
Talking to Simone, he advised "Terracotta Cluster," this application enables
you to build distributed sessions, I did some tests seem to work. The trick
is in the configuration file where you can indicate the classes that doesn't
work session replication.
tc-config.xml
...
<include>
<class-expression>org.acegisecurity.context.SecurityContextImpl</class-expression>
</include>
<include>
<class-expression>org.acegisecurity.providers.anonymous.AnonymousAuthenticationToken</class-expression>
</include>
<include>
<class-expression>org.acegisecurity.providers.AbstractAuthenticationToken</class-expression>
</include>
<include>
<class-expression>org.acegisecurity.ui.WebAuthenticationDetails</class-expression>
</include>
<include>
<class-expression>org.acegisecurity.GrantedAuthorityImpl</class-expression>
</include>
<include>
<class-expression>org.acegisecurity.ui.savedrequest.SavedRequest</class-expression>
</include>
<include>
<class-expression>org.acegisecurity.ui.savedrequest.SavedCookie</class-expression>
</include>
<include>
<class-expression>org.acegisecurity.providers.UsernamePasswordAuthenticationToken</class-expression>
</include>
<include>
<class-expression>org.acegisecurity.userdetails.User</class-expression>
</include>
<include>
<class-expression>org.vfny.geoserver.global.UserContainer</class-expression>
</include>
...
I have tested this on 2 nodes on the same machiene, and the session was
replicated.
At the end of all my tests I would write an article on the Geoserver blog
-> "Geoserver Cluster"
Thanks Justin
2009/4/21 Justin Deoliveira <[email protected]>
> Ciao Francesco,
>
> Not explicitly. But any REST call you make that modifies anything will
> force a reload of the catalog/configuration. One thing to note is that it
> won't be realized in the user interface until you do a "load". However the
> rest of the system should see the changes.
>
> -Justin
>
> Francesco Izzi wrote:
>
>> Hi all,
>> there's a way to reload the Geoserver configuration via REST ?
>>
>> --
>> Francesco Izzi
>> CNR - IMAA
>> geoSDI - NSDI
>> Responsabile Sviluppo Software
>>
>> C.da S. Loja
>> 85050 Tito Scalo - POTENZA (PZ)
>> Italia
>>
>> phone: +39 0971427305
>> fax: +39 0971 427271
>> mob: +39 3402640314
>> mail: [email protected] <mailto:[email protected]>
>> skype: neofx8080
>>
>> web: http://geosdi.nsdi.it
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------------
>> Stay on top of everything new and different, both inside and around Java
>> (TM) technology - register by April 22, and save
>> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
>> 300 plus technical and hands-on sessions. Register today. Use priority
>> code J9JMT32. http://p.sf.net/sfu/p
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Geoserver-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>
>
>
> --
> Justin Deoliveira
> OpenGeo - http://opengeo.org
> Enterprise support for open source geospatial.
>
--
Francesco Izzi
CNR - IMAA
geoSDI - NSDI
Responsabile Sviluppo Software
C.da S. Loja
85050 Tito Scalo - POTENZA (PZ)
Italia
phone: +39 0971427305
fax: +39 0971 427271
mob: +39 3402640314
mail: [email protected]
skype: neofx8080
web: http://geosdi.nsdi.it
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel