From: Orion L. <or...@te...> - 2007-06-28 16:49:56
|
The missing piece is a load balancer. You want a load balancer that knows how to route incoming requests with the same session id to the same jetty instance. All of your end-users connect directly to the load balancer. If one of the jetty instances goes down for some reason, then the load balancer can divert traffic to the surviving jetty instances. Terracotta allows all of the jetty instances to see all of the session data for the entire cluster so your users will see no interruption in service. Terracotta doesn't do the load balancing part. --Orion On Jun 28, 2007, at 9:37 AM, redline6561 wrote: > > If I hit localhost:8080 or 8081 or 8082 (where the other two > servers are) the > timekeeper webapp loads right up. Does this mean that load > balancing is > enabled between the servers? How can I abstract this from our users > so they > just have to visit one site and terracotta handles the session > management > from then on? Jetty doesn't let connections occur on port 80 so I've > traditionally mapped 8080 to 80 with iptables. Would that still be > acceptable? > > Thanks again, > Brit > > > > Orion Letizi wrote: >> >> Ah... I see I was responding to an earlier message and you've since >> moved past the port problem. >> >> Hitting localhost:9510 with your browser only coincidentally provides >> a directory listing (it's not actually supposed to do that-- what you >> are seeing there is the mechanism that the terracotta server uses to >> serve the terracotta configuration to the terracotta clients (in this >> case, jetty)). >> >> You should be able to hit localhost:8080, localhost:8081, and >> localhost:8082 and see your web application running with session >> state persisted across the different jetty instances. >> >> If you do hit localhost:8080/index.jsp, do you get a 500 error? If >> so, do you also get a Java stack trace (either in the browser or in >> the jetty log)? That stack trace would be helpful. >> >> --Orion >> >> On Jun 28, 2007, at 8:17 AM, redline6561 wrote: >> >>> >>> Jan, >>> >>> I've managed to start Terracotta and 3 jetty instances on one box >>> (the jetty >>> instances run staggered ports 8080,8081,8082) and I can hit each >>> instance at >>> it's localhost:$PORT but when I hit terracotta at localhost:9510 it >>> lists >>> the contents of the root directory that terracotta home and jetty >>> home are >>> sitting in. Is this a problem with my context deployer? I even >>> manually >>> tried to point it to the index.jsp page and it gave me a http 500 >>> error. >>> What am I doing wrong? >>> >>> PS: The clients are listed in the terracotta admin console. >>> >>> -Brit >>> >>> >>> Jan Bartel-2 wrote: >>>> >>>> Hi Brit, >>>> >>>> You should check-out trunk, or check-out the 6.1.4 tag, or >>>> download the >>>> 6.1.4 src bundle. The terracotta branch is defunct. I'll make that >>>> clearer on the wiki page. >>>> >>>> BTW: we'd love to hear about your experience using terracotta/ >>>> jetty - >>>> any feedback you have would be useful, also perhaps a doing a >>>> CaseStudy on you would be interesting? >>>> >>>> cheers >>>> Jan >>>> >>>> redline6561 wrote: >>>>> Jan, >>>>> >>>>> Brainless question: On the wiki it says to check out jetty but >>>>> I'm not >>>>> sure >>>>> if I should check out the terracotta branch or trunk/jetty- >>>>> contrib or >>>>> just >>>>> trunk. What specifically should I check out? Thanks so much for >>>>> all your >>>>> help. >>>>> >>>>> -Brit >>>>> >>>>> >>>>> Jan Bartel-2 wrote: >>>>>> Everyone, >>>>>> >>>>>> The jetty/terracotta wiki page is here: >>>>>> >>>>>> http://docs.codehaus.org/display/JETTY/Session+Clustering+with >>>>>> +Terracotta >>>>>> >>>>>> cheers >>>>>> Jan >>>>>> >>>>>> Orion Letizi wrote: >>>>>>> So, Jan is working on the wiki page instead of me, which is good >>>>>>> because she's the one who actually knows how it works. >>>>>>> >>>>>>> I'll update the terracotta wiki page to point to the jetty wiki >>>>>>> page >>>>>>> when Jan is done. >>>>>>> >>>>>>> Cheers, >>>>>>> Orion >>>>>>> >>>>>>> >>>>>>> On Jun 19, 2007, at 10:48 AM, Orion Letizi wrote: >>>>>>> >>>>>>>> Cool. Glad you like it. It's pretty fun. >>>>>>>> >>>>>>>> I'm in the process of writing up a howto: >>>>>>>> >>>>>>>> <http://wiki.terracotta.org/confluence/display/wiki/Jetty> >>>>>>>> >>>>>>>> I probably won't have it done for another couple of hours, but >>>>>>>> I'll >>>>>>>> keep >>>>>>>> the list posted. >>>>>>>> >>>>>>>> Cheers, >>>>>>>> Orion >>>>>>>> >>>>>>>> redline6561 wrote: >>>>>>>>> Thanks for all your help, Orion...and congratulations on co- >>>>>>>>> founding >>>>>>>>> Terracotta. You all really are doing great work. Have fun >>>>>>>>> with EC2. >>>>>>>>> >>>>>>>>> Orion Letizi wrote: >>>>>>>>> >>>>>>>>>> You'll still need to build jetty with clustering support, >>>>>>>>>> either >>>>>>>>>> way. I don't think there's a binary distribution that >>>>>>>>>> already has >>>>>>>>>> clustering support built in. >>>>>>>>>> >>>>>>>>>> Jan would know for sure the current state of the Terracotta >>>>>>>>>> support. >>>>>>>>>> >>>>>>>>>> Cheers, >>>>>>>>>> Orion >>>>>>>>>> >>>>>>>>>> On Jun 19, 2007, at 9:36 AM, redline6561 wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> That would be wonderful. Thanks, Orion. I know this >>>>>>>>>>> <http://docs.codehaus.org/display/JETTY/Jetty+Clustering >>>>>>>>>>> +with+WADI> >>>>>>>>>>> already >>>>>>>>>>> exists but my employer and I would like to avoid building >>>>>>>>>>> from svn >>>>>>>>>>> to use >>>>>>>>>>> clustering if at all possible. Whether WADI or Terracotta is >>>>>>>>>>> employed is >>>>>>>>>>> less important. Also, we currently have a boot-up script to >>>>>>>>>>> make >>>>>>>>>>> sure jetty >>>>>>>>>>> starts on boot and I'm not sure if that would need to be >>>>>>>>>>> modified. >>>>>>>>>>> Just >>>>>>>>>>> curious and talking out loud. I can provide you with any >>>>>>>>>>> config >>>>>>>>>>> files or >>>>>>>>>>> further details you'd like to know. >>>>>>>>>>> >>>>>>>>>>> Regards, >>>>>>>>>>> Brit >>>>>>>>>>> >>>>>>>>>>> Orion Letizi wrote: >>>>>>>>>>> >>>>>>>>>>>> I don't think the Terracotta support is built in to Jetty >>>>>>>>>>>> yet, >>>>>>>>>>>> although I'm rummaging around right now to find out >>>>>>>>>>>> exactly. >>>>>>>>>>>> In any >>>>>>>>>>>> case, it looks like we need to put up some docs about how >>>>>>>>>>>> to do >>>>>>>>>>>> it. >>>>>>>>>>>> >>>>>>>>>>>> If I scratched together a quick HOWTO, would that suffice? >>>>>>>>>>>> >>>>>>>>>>>> --Orion >>>>>>>>>>>> >>>>>>>>>>>> On Jun 19, 2007, at 9:21 AM, redline6561 wrote: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> Yes, essentially. I'd like to be able to unpack jetty and >>>>>>>>>>>>> then >>>>>>>>>>>>> just >>>>>>>>>>>>> begin >>>>>>>>>>>>> working with the xml config files to set up the cluster. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Orion Letizi wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Are you looking for a pre-built binary of jetty that >>>>>>>>>>>>>> already has >>>>>>>>>>>>>> clustering support built into it? >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> redline6561 wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Is there a way to get jetty 6.1.4 to cluster using >>>>>>>>>>>>>>> WADI or >>>>>>>>>>>>>>> Terracotta >>>>>>>>>>>>>>> without compiling from SVN with maven? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Thanks, >>>>>>>>>>>>>>> Brit >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> View this message in context: http://www.nabble.com/Load- >>>>>>>>>>>>> Balancing% >>>>>>>>>>>>> 5CClustering-in-6.14-tf3945950.html#a11198165 >>>>>>>>>>>>> Sent from the Jetty Support mailing list archive at >>>>>>>>>>>>> Nabble.com. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> ---------------------------------------------------------- >>>>>>>>>>>>> -- >>>>>>>>>>>>> ----- >>>>>>>>>>>>> --- >>>>>>>>>>>>> -- >>>>>>>>>>>>> --- >>>>>>>>>>>>> This SF.net email is sponsored by DB2 Express >>>>>>>>>>>>> Download DB2 Express C - the FREE version of DB2 express >>>>>>>>>>>>> and take >>>>>>>>>>>>> control of your XML. No limits. Just data. Click to get >>>>>>>>>>>>> it now. >>>>>>>>>>>>> http://sourceforge.net/powerbar/db2/ >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> Jetty-support mailing list >>>>>>>>>>>>> Jet...@li... >>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/jetty-support >>>>>>>>>>>>> >>>>>>>>>>>> ----------------------------------------------------------- >>>>>>>>>>>> -- >>>>>>>>>>>> ----- >>>>>>>>>>>> --- >>>>>>>>>>>> ---- >>>>>>>>>>>> This SF.net email is sponsored by DB2 Express >>>>>>>>>>>> Download DB2 Express C - the FREE version of DB2 express >>>>>>>>>>>> and take >>>>>>>>>>>> control of your XML. No limits. Just data. Click to get it >>>>>>>>>>>> now. >>>>>>>>>>>> http://sourceforge.net/powerbar/db2/ >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> Jetty-support mailing list >>>>>>>>>>>> Jet...@li... >>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/jetty-support >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> View this message in context: http://www.nabble.com/Load- >>>>>>>>>>> Balancing% >>>>>>>>>>> 5CClustering-in-6.14-tf3945950.html#a11198416 >>>>>>>>>>> Sent from the Jetty Support mailing list archive at >>>>>>>>>>> Nabble.com. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> ------------------------------------------------------------ >>>>>>>>>>> -- >>>>>>>>>>> ----- >>>>>>>>>>> --- >>>>>>>>>>> --- >>>>>>>>>>> This SF.net email is sponsored by DB2 Express >>>>>>>>>>> Download DB2 Express C - the FREE version of DB2 express >>>>>>>>>>> and take >>>>>>>>>>> control of your XML. No limits. Just data. Click to get it >>>>>>>>>>> now. >>>>>>>>>>> http://sourceforge.net/powerbar/db2/ >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> Jetty-support mailing list >>>>>>>>>>> Jet...@li... >>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/jetty-support >>>>>>>>>>> >>>>>>>>>> ------------------------------------------------------------- >>>>>>>>>> -- >>>>>>>>>> ----- >>>>>>>>>> ----- >>>>>>>>>> This SF.net email is sponsored by DB2 Express >>>>>>>>>> Download DB2 Express C - the FREE version of DB2 express and >>>>>>>>>> take >>>>>>>>>> control of your XML. No limits. Just data. Click to get it >>>>>>>>>> now. >>>>>>>>>> http://sourceforge.net/powerbar/db2/ >>>>>>>>>> _______________________________________________ >>>>>>>>>> Jetty-support mailing list >>>>>>>>>> Jet...@li... >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/jetty-support >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>> --------------------------------------------------------------- >>>>>>>> -- >>>>>>>> ----- >>>>>>>> --- >>>>>>>> This SF.net email is sponsored by DB2 Express >>>>>>>> Download DB2 Express C - the FREE version of DB2 express and >>>>>>>> take >>>>>>>> control of your XML. No limits. Just data. Click to get it now. >>>>>>>> http://sourceforge.net/powerbar/db2/ >>>>>>>> _______________________________________________ >>>>>>>> Jetty-support mailing list >>>>>>>> Jet...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/jetty-support >>>>>>> >>>>>>> ---------------------------------------------------------------- >>>>>>> -- >>>>>>> ------- >>>>>>> This SF.net email is sponsored by DB2 Express >>>>>>> Download DB2 Express C - the FREE version of DB2 express and >>>>>>> take >>>>>>> control of your XML. No limits. Just data. Click to get it now. >>>>>>> http://sourceforge.net/powerbar/db2/ >>>>>>> _______________________________________________ >>>>>>> Jetty-support mailing list >>>>>>> Jet...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/jetty-support >>>>>>> >>>>>> >>>>>> -- >>>>>> Jan Bartel, Webtide LLC | ja...@we... | http:// >>>>>> www.webtide.com >>>>>> >>>>>> ----------------------------------------------------------------- >>>>>> -- >>>>>> ------ >>>>>> This SF.net email is sponsored by DB2 Express >>>>>> Download DB2 Express C - the FREE version of DB2 express and take >>>>>> control of your XML. No limits. Just data. Click to get it now. >>>>>> http://sourceforge.net/powerbar/db2/ >>>>>> _______________________________________________ >>>>>> Jetty-support mailing list >>>>>> Jet...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/jetty-support >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Jan Bartel, Webtide LLC | ja...@we... | http://www.webtide.com >>>> >>>> ------------------------------------------------------------------- >>>> -- >>>> ---- >>>> This SF.net email is sponsored by DB2 Express >>>> Download DB2 Express C - the FREE version of DB2 express and take >>>> control of your XML. No limits. Just data. Click to get it now. >>>> http://sourceforge.net/powerbar/db2/ >>>> _______________________________________________ >>>> Jetty-support mailing list >>>> Jet...@li... >>>> https://lists.sourceforge.net/lists/listinfo/jetty-support >>>> >>>> >>> >>> -- >>> View this message in context: http://www.nabble.com/Load-Balancing% >>> 5CClustering-in-6.14-tf3945950.html#a11345102 >>> Sent from the Jetty Support mailing list archive at Nabble.com. >>> >>> >>> -------------------------------------------------------------------- >>> -- >>> --- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> _______________________________________________ >>> Jetty-support mailing list >>> Jet...@li... >>> https://lists.sourceforge.net/lists/listinfo/jetty-support >> >> >> --------------------------------------------------------------------- >> ---- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Jetty-support mailing list >> Jet...@li... >> https://lists.sourceforge.net/lists/listinfo/jetty-support >> >> > > -- > View this message in context: http://www.nabble.com/Load-Balancing% > 5CClustering-in-6.14-tf3945950.html#a11346572 > Sent from the Jetty Support mailing list archive at Nabble.com. > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Jetty-support mailing list > Jet...@li... > https://lists.sourceforge.net/lists/listinfo/jetty-support |