Enabling MySQL Slave on a production cluster
Posted: Thu Jan 18, 2018 4:58 am
Hi All,
Vicibox: 7
asterisk: 11.25.1-vici
SVN: 2780
We are running a cluster with 1 DB, 1 WEB and 4 TEL servers. Everything is running smoothly but sometimes we experience high spikes of load and all agents get disconnected at the same time. We checked and suspect that DB server is taking the beating, even having 16GB ram it utilizes 20-30% swap space.
As there is no mysql installed on any other server but the DB server only so we were thinking to install mysql on WEB server or any one TEL server and make it slave DB. Then we can run reports off that slave DB to minimize load on main DB server.
Can you please guide what steps to be taken in adding slave DB role on existing production server in a cluster without breaking current setup. Is installing MySQL and configuring it manually for replication ok? and will it work in current scenario? We don't want to add a new server in cluster for this task only.
Cheers!
Vicibox: 7
asterisk: 11.25.1-vici
SVN: 2780
We are running a cluster with 1 DB, 1 WEB and 4 TEL servers. Everything is running smoothly but sometimes we experience high spikes of load and all agents get disconnected at the same time. We checked and suspect that DB server is taking the beating, even having 16GB ram it utilizes 20-30% swap space.
As there is no mysql installed on any other server but the DB server only so we were thinking to install mysql on WEB server or any one TEL server and make it slave DB. Then we can run reports off that slave DB to minimize load on main DB server.
Can you please guide what steps to be taken in adding slave DB role on existing production server in a cluster without breaking current setup. Is installing MySQL and configuring it manually for replication ok? and will it work in current scenario? We don't want to add a new server in cluster for this task only.
Cheers!