Re: Simple Clustering Question
Hello All, I just thought I'd send this to explain to people who are having trouble understanding how to set up the default web app clustering and exactly how a broadcast IP is set up. I am a newbie to Orion Server and got 4 machines to act as a cluster after some advice from Lachezar! I'd like to thank Lachezar and Juan and for their help on the Orion interest mailing list. Before You Start The Servers. You need to have a broadcast network address for all the machines on your cluster, this could mean having to have an extra network card configured for that broadcast IP address or configuring you network card to listen to a broadcast ip address in addition to the hosts ip. The default broadcast ip for Orion is 230.0.0.1, so you'll need to change the setting in orion/application-deployments/default/defaultWebApp/orion-web.xml if you want to use a different broadcast ip address and port number. Then you can follow the document: Enabling Web-Clustering in Orion Oisin Enabling Web-Clustering in Orion Setting up the server 1. Install orion and start it. 2. Edit the orion/application-deployments/default/defaultWebApp/orion-web.xml file and add: 3. Repeat 1 and 2 for another (or more) box(es).To test: 1. Go to http://box1/servlet/SessionServlet. Reload a few times. 2. Go to http://box2/servlet/SessionServlet;jsessionid=. The counter should be the same as for the other box (box1).To put this into production: On Sunday 10 June 2001 12:08, you wrote: >Hi. > > > you need a switch which has multicast enabled; (most ethernet switchs > > have this capability, some just don't have it enabled) > >That is not true. >Multicast is a network service. It is of type send-on-receive-anyone. > That means, that one packet is send and it is received by anyone, listening > to that multicast IP/PORT. If you have an Ethernet, than you have the > Multicast ability. Routing multicast packets is a different question. > Having one, or more Ethernet networks, connected with "dumb" equipment > (HUBs, SWITHCHes, REPEATERs) also gives the multicast routing. Internet > multicast routings is somehow more complicated. >It is enough to say, that if you have a single dumb ethernet connection > between your boxes is enough for the Orion multicast clustering to work. Of > course all the boxes have to be configured to use one and the same > Multicast IP and one and the same PORT. That's it. > >Lachezar. > > > > Hi, > > > > > > I've spent the last while trying to get clustering to work > > > with orion server > > > 1.5.2 without success. First I tried to follow the instructions at > > > http-clustering-howto.html from the documentation, it said: > > > Setting up the server > > > > > > 1. Install orion and start it. > > > > > > 2. Edit the > > > orion/application-deployments/default/defaultWebApp/orion-web.xml > > > file and add: > > > > > > > > > 3. Repeat 1 and 2 for another (or more) box(es). > > > > > > But when I tried to connect to the server, the server let me > > > know that the > > > file /orion/default-web-app/WEB-INF/web.xml hadn't got the tag > > > in it. > > > > > > I then added this tag to all servers > > > /orion/default-web-app/WEB-INF/web.xml > > > file in the cluster, and tried again, this time they actually ran the > > > SessionServlet but as if they were being run individually, > > > i.e. the session > > > wasn't shared as it was supposed to be, I did remember to append > > > ;jsessionid= > > > to it and tried both leaving the angle brackets in and out. > > > > > > I know I must be doing some thing wrong but I can't find it, > > > I'd really > > > appreciate some help. > > > > > > I noticed in the http-clustering.html that in the clustering > > > it mentions the > > > default for multicast host/ip to transmit and receive cluster > > > data on is > > > 230.0.0.1, port number 9127, does this mean I have to have a > > > network card > > > listening on this IP/port? > > > > > > What exactly is a network with operational multicast > > > facilities, is plain > > > 100Mbs ethernet running on linux OK? > > > > > > Thanks, > > > Oisin Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1" Content-Transfer-Encoding: quoted-printable Content-Description:
Re: Simple Clustering Question
Hi. > you need a switch which has multicast enabled; (most ethernet switchs have> this capability, some just don't have it enabled) That is not true. Multicast is a network service. It is of type send-on-receive-anyone. That means, that one packet is send and it is received by anyone, listening to that multicast IP/PORT. If you have an Ethernet, than you have the Multicast ability. Routing multicast packets is a different question. Having one, or more Ethernet networks, connected with "dumb" equipment (HUBs, SWITHCHes, REPEATERs) also gives the multicast routing. Internet multicast routings is somehow more complicated. It is enough to say, that if you have a single dumb ethernet connection between your boxes is enough for the Orion multicast clustering to work. Of course all the boxes have to be configured to use one and the same Multicast IP and one and the same PORT. That's it. Lachezar. > > Hi,> > > > I've spent the last while trying to get clustering to work > > with orion server > > 1.5.2 without success. First I tried to follow the instructions at > > http-clustering-howto.html from the documentation, it said:> > Setting up the server> > > > 1. Install orion and start it.> > > > 2. Edit the > > orion/application-deployments/default/defaultWebApp/orion-web.xml > > file and add:> > > > > > 3. Repeat 1 and 2 for another (or more) box(es).> > > > But when I tried to connect to the server, the server let me > > know that the > > file /orion/default-web-app/WEB-INF/web.xml hadn't got the tag > > in it.> > > > I then added this tag to all servers > > /orion/default-web-app/WEB-INF/web.xml > > file in the cluster, and tried again, this time they actually ran the > > SessionServlet but as if they were being run individually, > > i.e. the session > > wasn't shared as it was supposed to be, I did remember to append > > ;jsessionid=> > to it and tried both leaving the angle brackets in and out.> > > > I know I must be doing some thing wrong but I can't find it, > > I'd really > > appreciate some help.> > > > I noticed in the http-clustering.html that in the clustering > > it mentions the > > default for multicast host/ip to transmit and receive cluster > > data on is > > 230.0.0.1, port number 9127, does this mean I have to have a > > network card > > listening on this IP/port?> > > > What exactly is a network with operational multicast > > facilities, is plain > > 100Mbs ethernet running on linux OK?> > > > Thanks,> > Oisin
RE: Simple Clustering Question
you need a switch which has multicast enabled; (most ethernet switchs have this capability, some just don't have it enabled) > -Original Message- > From: Oisin Kim [mailto:[EMAIL PROTECTED]] > Sent: Sábado, 09 de Junio de 2001 10:11 > To: Orion-Interest > Subject: Simple Clustering Question > > > Hi, > > I've spent the last while trying to get clustering to work > with orion server > 1.5.2 without success. First I tried to follow the instructions at > http-clustering-howto.html from the documentation, it said: > Setting up the server > > 1. Install orion and start it. > > 2. Edit the > orion/application-deployments/default/defaultWebApp/orion-web.xml > file and add: > > > 3. Repeat 1 and 2 for another (or more) box(es). > > But when I tried to connect to the server, the server let me > know that the > file /orion/default-web-app/WEB-INF/web.xml hadn't got the tag > in it. > > I then added this tag to all servers > /orion/default-web-app/WEB-INF/web.xml > file in the cluster, and tried again, this time they actually ran the > SessionServlet but as if they were being run individually, > i.e. the session > wasn't shared as it was supposed to be, I did remember to append > ;jsessionid= > to it and tried both leaving the angle brackets in and out. > > I know I must be doing some thing wrong but I can't find it, > I'd really > appreciate some help. > > I noticed in the http-clustering.html that in the clustering > it mentions the > default for multicast host/ip to transmit and receive cluster > data on is > 230.0.0.1, port number 9127, does this mean I have to have a > network card > listening on this IP/port? > > What exactly is a network with operational multicast > facilities, is plain > 100Mbs ethernet running on linux OK? > > Thanks, > Oisin >