Tomcat clustering provides no value for Sling unless you are using Sessions. Session affinity (which is really a property of the web server / load balancer than the app server) may provide value in certain scenarios, but this isn't dependent upon using session clustering at the app server.
Sling's authentication system is pluggable, so there's no single answer for "what about user authentication." The form authentication handler can be configured to use a session store, but uses a non-session by default. Because of the way the form authentication handler works, you really have to use session affinity with it. In general, I would generally say that if your aim is HA, you want to design your application to be as stateless as possible. Justin On Wed, Oct 19, 2011 at 1:05 PM, Xavi Beumala <[email protected]> wrote: > Hi Justin, > > The main goal here is to achieve high availability in case a node goes down > for any random reason. Would tomcat clustering be the recomended solution > here? > > In regards to the use of Sessions, what about user authentication? How is > this information handled in Sling? is there anything to bear in mind when > clustering? > > Cheers > Xavi > > > > On Wed, Oct 19, 2011 at 2:58 PM, Justin Edelson > <[email protected]>wrote: > >> Typically, clustering the repository is all you need. Most Sling >> application do not use Sessions, but if you do you would need to >> cluster Tomcat. >> >> What specifically are you trying to accomplish? >> >> Justin >> >> On Wed, Oct 19, 2011 at 3:24 AM, Xavi Beumala <[email protected]> >> wrote: >> > Hi Justin, >> > >> > Thanks for the link, I found it yesterday too and there's lot of info >> there. >> > I was more interested on clustering Sling though. In my case I'll be >> using >> > Tomcat, should I cluster tomcat and simply deploy sling as an app on it >> > configuring Jackrabbit as mentioned in the link below? >> > >> > many thanks >> > Xavi >> > >> > >> > >> > On Tue, Oct 18, 2011 at 10:22 PM, Justin Edelson >> > <[email protected]>wrote: >> > >> >> Xavi- >> >> Take a look at the Jackrabbit Clustering documentation: >> >> http://wiki.apache.org/jackrabbit/Clustering >> >> >> >> Regards, >> >> Justin >> >> >> >> On Tue, Oct 18, 2011 at 4:17 PM, Xavi Beumala <[email protected]> >> >> wrote: >> >> > Hi all, >> >> > >> >> > I've been looking for information on how to cluster Sling and its >> >> underlying >> >> > Jackrabbit instance but I can't seem to find any doc. >> >> > >> >> > I've found some references to clustering in the the Eventing page but >> no >> >> > specific details on how to set an environment up. What would the >> required >> >> > steps? should I cluster it through tomcat (or any other app server) or >> is >> >> it >> >> > supported by the standalone distro? would you have any handy link on >> >> these >> >> > regards? >> >> > >> >> > Many thanks >> >> > Xavi >> >> > >> >> >> > >> >
