[Linux-HA] cib.xml Consultant Needed
Andrew Beekhof
beekhof at gmail.com
Thu Nov 9 01:12:42 MST 2006
On 11/8/06, Serge Dubrouski <sergeyfd at gmail.com> wrote:
> On 11/8/06, David Thomas <punknow at gmail.com> wrote:
> > Serge,
> >
> > Thanks for your response. I don't know if we will need STONITH.
> > The service boxes are three different Asterisk PBX servers, providing
> > service for three different groups of people.
> >
> > All of the Asterisk boxes pull data from a their own DB on a remote
> > MySQL box. This is why I need to run a shell command on failover, so I
> > can modify the Asterisk configs on the Standby Box to connect to the
> > proper MySQL DB. I could do this part easily when Asterisk is started,
> > but I'm not sure how to determine which box is being taken over, and
> > pass that info to the Asterisk Resource Agent script when it starts
> > Asterisk on the Standby box.
>
> I don't know why you need to hire anybody because your case is easy.
> You create an OCF RA for asterisk that accepts parameter GROUP_NAME.
> You configure cib.xml with 3 Asterisk services but with different
> GROUP_NAME value. Then in your RA you can check that value and do
> whatever you need to do. I still don't like modifying config files on
> the fly but it's your choice.
>
> As I said earlier you can assign different scores for RSC_LOCATION
> rules for different nodes and there you go, Definitely not a rocket
> science.
dont forget the rsc_colocation constraints so they never run together
on the same (backup) box
>
> >
> > Also none of the Asterisk Boxes actually store data locally, they are
> > just call processing servers. Everything is done in RAM except for a
> > few config files that are stored on a USB pen drive. Given this we are
> > not really concerned with data loss, we just need to protect against
> > the lost capacity if a box goes down.
> >
> > Clients access the Asterisk boxes over a virtual IP address, so when
> > one of the Asterisk boxes goes down we need the IP to be transferred
> > to the standby box and a command executed on the standby box to tell
> > it which database to connect to, depending on which box failed.
> >
> > I have not yet written the Resource Agent to monitor the service, but
> > this should not be to difficult for me to do.
> >
> > I hope this additional info helps.
> >
> > - Dave
> >
> >
> >
> > On 11/8/06, Serge Dubrouski <sergeyfd at gmail.com> wrote:
> > > On 11/8/06, David Thomas <punknow at gmail.com> wrote:
> > > > Hi Everyone,
> > > >
> > > > I'm falling behind on a project and would like to hire someone to
> > > > write a suitable
> > > > cib.xml config for me.
> > > >
> > > > My goal is to have one box that acts as a standby box for three service boxes.
> > > > In the event of a failure the standby box should assume the role of
> > > > the failed box
> > > > until the failed box is repaired and placed back online.
> > > >
> > > > The reason for this configuration is that all of our boxes have
> > > > different load capacity.
> > > > The standby box will be powerful enough act as a replacement for any
> > > > the 3 service
> > > > boxes, however none of the boxes are powerful enough to assume the
> > > > role of multiple services.
> > > >
> > > > I am open to other suggestions or recommendations if there is a better
> > > > way to achieve this.
> > > >
> > > > I'm really just hoping to find a Version-2 guru that can provide me
> > > > with a sample config where I can replace the IPs with my own, add my
> > > > Resource Agent Script, then upload the new cib.xml via cibadmin and
> > > > test everything.
> > > >
> > > >
> > > > Requirements
> > > > --------------------
> > > >
> > > > * Total of 4 boxes
> > > >
> > > > * 3 Service Boxes - Each box running a separate distinct service
> > > >
> > > > * 1 Standby Box - Can take over the role of any of the 3 Service Boxes
> > > > should one fail
> > > >
> > > > * Only 2 resources are needed per Service Box (IP address and Service Resource)
> > > >
> > > > * I'd like failover to occur based on service failure (Resource Agent
> > > > check fails) or connectivity failure.
> > > >
> > > > * I have shell script that will need to run on the Standby Box when
> > > > failover occurs. The script will update the service's config file so
> > > > it knows which box it's standing in for.
> > >
> > > This part sounds bad. You have to have 3 config files, one per each
> > > service, and have your resources configured to start up with
> > > particular config file.
> > > >
> > > > * If a failure has occurred and the Standby Box has already taken over
> > > > services for one of the 3 Service Boxes, then I do not want it be able
> > > > act as standby for the other 2 boxes during this time. It should only
> > > > be able to take over the role of one service box at any given time.
> > > >
> > > >
> > > > I you are interested, please email me with a cost estimate, and how
> > > > long it might take.
> > > > I don't expect a real price quote until all your questions are
> > > > answered, but I do need a ballpark figure.
> > > >
> > >
> > > I can probably do that but I need to be able to reproduce your
> > > environment in my home network. I don't know what your resources are
> > > though. Another problem is that I don not have any STONITH devices so
> > > I won't be able to provide you that part of configuration.
More information about the Linux-HA
mailing list