> On Mar 24, 2016, at 13:56 , Felix Eckhofer <[email protected]> wrote: > > Hi. > > According to the Cluster Guide, mysql is supposed to bind to the > management-ip and the various host settings in pf{,config}.conf should > be '127.0.0.1'. But this doesn't work as mysql doesn't listen on > 127.0.0.1. > > I'm assuming this setting should be the management IP of the cluster as > well, but this won't work because the IP is added to the interface by > keepalived which is started by pf which won't start up without mysql. I > experimented with adding the cluster management IP to > /etc/ha.d/haresources but this conflicts with what keepalived is doing. > > How is it really supposed to work? >
Hi Felix, Mysql really should bind locally to the management IP of the server. The trick is that you don’t connect directly to Mysql, but rather to HAproxy which will transparently connect PF to the database. HAproxy will automatically failover to the other server if the database is not listening on the local server. Make sure you have correctly configured conf/cluster.conf. Then if you follow the clustering guide HAproxy will automatically configure itself to listen on 127.0.0.1 on port 3306. Regards, -- Louis Munro [email protected] :: www.inverse.ca +1.514.447.4918 x125 :: +1 (866) 353-6153 x125 Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (www.packetfence.org) ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 _______________________________________________ PacketFence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
