Author |
Message
|
chris boehnke |
Posted: Sun Mar 13, 2011 12:47 pm Post subject: Broker bar file deployment onto multiple brokers |
|
|
 Partisan
Joined: 25 Jul 2006 Posts: 369
|
Hi,
We are using MQ v7.0.1.4 & MB v7.0.0.2 on Linux.
We have 2 servers each are configured with a Broker, say Server1 with Broker1 & Server2 with Broker2. There is a load balancer to distribute load between both brokers(servers), Broker1 & broker2 to handle traffic on both machines(i.e., broker).
We are going to deploy the same bar onto both brokers as we need to handle the load balance across both servers by deploying same broker code(bar file) onto both brokers.
Question:
Is there a way to deploy the same bar onto both broker machines automatically at a time, may be in a single script?.
We just want to avoid if the admin forgets to deploy the code onto one of the machine which causes one borker able to process and not the other one.
Any suggestion is helpful.
Thanks. |
|
Back to top |
|
 |
mqjeff |
Posted: Sun Mar 13, 2011 3:10 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
chris boehnke |
Posted: Sun Mar 13, 2011 4:54 pm Post subject: |
|
|
 Partisan
Joined: 25 Jul 2006 Posts: 369
|
mqjeff wrote: |
mqsideploy. |
Thanks. |
|
Back to top |
|
 |
smdavies99 |
Posted: Sun Mar 13, 2011 10:13 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
My suggestion is to wrap up the deploys inside a shell script and MAKE all deploys use that script.
If any admin uses mqsideploy directly (except to delete an object) they should be sent to the naughty step.
The advantage of using a script is that you can then put into it all sort of nice auditing, logging and even backup operations.
If you are relly smart then you could even take the broker where deploys are being made out of the load balancer while the deploy is going on.
The opportunities to radically streamline and improve your deploy process in this way are huge. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Mar 14, 2011 4:37 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
mqjeff |
Posted: Mon Mar 14, 2011 5:21 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Right. Once you have a reliable and tested script that deploys your production environment, you can integrate that into your change control processes and automate the execution of the script. |
|
Back to top |
|
 |
chris boehnke |
Posted: Tue Mar 15, 2011 8:01 am Post subject: |
|
|
 Partisan
Joined: 25 Jul 2006 Posts: 369
|
Thanks guys for your valuable inputs. |
|
Back to top |
|
 |
|