Good to hear it's on the roadmap!
But... back to the original topic, i had some more time to try out the script 
today..
I must be doing something wrong lol (it's fair to say I'm not a coder :P)

First of all when I tested out the failover (by shutting down load1):

Cluster IP 192.168.0.82 is active on load1.mail4ce.com Cluster is active on 
load2.mail4ce.com [Beschrijving: 
https://192.168.0.91:444/img/icons/small/exclamation.png]
Zen Inotify is running on load1.mail4ce.com load2.mail4ce.com [Beschrijving: 
https://192.168.0.91:444/img/icons/small/exclamation.png]
Global status: [Beschrijving: 
https://192.168.0.91:444/img/icons/small/exclamation.png]

I have the cluster type: Load1.mail4ce.com master and load2.mail4ce.com backup 
automatic failback
IT DID promote load2 to master however it seems once load1 came back it didn't 
demote load2?
My script didn't work neither.. but I'm pretty sure that's to do with my coding 
skills haha.

What I want is quite simple:
Loadbalancer runs a SQL (both of them) with a shared disk (ocfs2 partition)
Now mysql kinda sucks and has to reload before it notices the new tables in the 
partition.
So basically when the master ip goes from node1 to node2 --> mysql should be 
reloaded on node2 (who's then master aka owner of the cluster ip and sees the 
new tables like mysql.users all updated exactly as node1 left it :P)

I'm using v2rc1. (ps: you might want to set that in the about section - took a 
while before I noticed it's mentioned in the webpage title :P)

In:  vi /usr/local/zenloadbalancer/app/zenlatency/zenlatency-start.pl
At the end of the file (below this line) :
my @eject = `/etc/init.d/zenloadbalancer startlocal`;
I added (rule below) :
exec "/etc/init.d/mysql start";

In  /usr/local/zenloadbalancer/app/zenlatency/zenlatency-stop.pl
Below the line (end of file)
my @eject = `/etc/init.d/zenloadbalancer stoplocal`;
I added (rule below):
exec "/etc/init.d/mysql stop";

Also .. another question -
How do I bootup anything AFTER your ip script? (at boot)
As I can't seem to get them behind the eth configuration - while their network 
depended services.

Regards,
Marco


Van: Emilio Campos [mailto:[email protected]]
Verzonden: vrijdag 6 januari 2012 2:52
Aan: [email protected]
Onderwerp: Re: [Zenloadbalancer-support] Crazy question about the cluster 
system on loadbalancer

soon Marco, soon :P

We are working on v2rc2 now, you can see the planning on web. After this we are 
going to send a mail to the list for read about your proposals to study to bei 
ncluded on the new version, the most important thing on the new version is that 
we are going to develope L4 load balancing (zen lb v3rc), NAT included ;) but 
not yet date defined.

Regards!
2012/1/5 Marco Tiggelaar - Key4ce 
<[email protected]<mailto:[email protected]>>
Wow.. thats remarkably simple.
Not that much of a crazy request after all haha ;).

By the way.. any news on the NAT instead of sNAT? ^^
(at the moment we are still testing out our loadbalanced linux hosting system - 
can tell ya.. it's a pain - most funny thing is it's actually mysql that's the 
pain - which takes like 2 seconds to do in windows hosts :P)

As I still  require NAT duo to fail2ban, SMTP etc :-)


Van: Emilio Campos 
[mailto:[email protected]<mailto:[email protected]>]
Verzonden: donderdag 5 januari 2012 19:26
Aan: 
[email protected]<mailto:[email protected]>
Onderwerp: Re: [Zenloadbalancer-support] Crazy question about the cluster 
system on loadbalancer

/usr/local/zenloadbalancer/app/zenlatency/zenlatency-start.pl<http://zenlatency-start.pl>
 << script when zen is master
/usr/local/zenloadbalancer/app/zenlatency/zenlatency-stop.pl<http://zenlatency-stop.pl>
 << script when zen is backup

Read the source code and include here your own script for up/down your service.

Regards!

2012/1/5 Marco Tiggelaar - Key4ce 
<[email protected]<mailto:[email protected]>>
Hello,

I had a odd question: how did you create the master/slave cluster and is it 
possible to add some features to the master/slave tasks (for example start 
mysql on master --> if master goes down start mysql on slave)?
(It's easy to do with corosync , ha etc.. but I'm not sure what zenloadbalancer 
uses for the cluster failovers)

I do mean Zenloadbalancer nodes (multi setup) not the IP's but attach certain 
services to the task of master ;)

Regards,
Marco

Key4ce General Manager
---------------------------------------------------
Phone NL: +31 (0)40  290 3310<tel:%2B31%20%280%2940%C2%A0%20290%203310>
Phone EN: +44 (0)1332 898 999<tel:%2B44%20%280%291332%20898%20999>

Italielaan 9
Eindhoven
The Netherlands
---------------------------------------------------
       http://www.key4ce.com


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Zenloadbalancer-support mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support



--
Load balancer distribution - Open Source Project
http://www.zenloadbalancer.com
Distribution list (subscribe): 
[email protected]<mailto:[email protected]>

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Zenloadbalancer-support mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support



--
Load balancer distribution - Open Source Project
http://www.zenloadbalancer.com
Distribution list (subscribe): 
[email protected]<mailto:[email protected]>

<<inline: image001.png>>

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Zenloadbalancer-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support

Reply via email to