Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
rustynail wrote:Hi,
Its been some time since my post is unanswered. Can anyone shed some light on the above requirement please....
Here I rephrase it ... we have 5 TEL, 1 DB, 1 WEB servers in a cluster... As load is growing and DB server is single quad core processor so it becomes stressed. This was a poor design but as servers were added and removed randomly on requirement of client so we couldn't do much about it.
Now I wan't to enable mysql on one of the TEL server and make it as slave DB.. below are the steps I have thought
1. Enable/start Mysql service on TEL server.
2. Edit its my.cnf file to set slave server id accordingly
3. Configure slave settings by using command CHANGE MASTER TO MASTER_HOST,,,,,,,,,,,,,,,
4. Start the slave server by issuing command START SLAVE on slave server.
If anything is left then please point it out or suggest correct steps. As I have to perform this on production cluster so will there be any harm expected if anything with replication goes wrong or dialer will keep performing as usual ?
Thanks
mflorell wrote:There are A LOT of tutorials on setting up a MySQL slave server out there if you just google them. Depending on what machine you will use for your MySQL slave server, the instructions may be different. We usually recommend using the same kind of machine you are using for your master, but you can use a much lower powered machine, and even a different operating system(like Windows) if you have to for a MySQL slave.
Another step to take to speed things up on your master server is to archive logs if you haven't done so already. The "ADMIN_archive_log_tables.pl" script can help you do this.
rustynail wrote:Exactly! but the problem is that with increasing number of servers and agents, the DB starts getting load. Although the load avg remains max at 2.5 with dual quad core cpu and no swap is used with 16gb ram so it should run fine. IO wait is also not present and I have optimized the mysql for high load but still its taking load and mtop shows queries going to red color and that is when agents face auto pause and other issues.
Any solution?
Users browsing this forum: Google [Bot] and 97 guests