Hello team.
I am setting up a testing environement for a failover and i noticed a problem.
I explain what i have in this moment:
I have 3 vps servers. On the 1st server i have the dns server PowerDNS configured and replicating the dns correctly.
On that 1st server i also added a bash script on the cron to ping the 2nd vps, and if that 2nd vps isn't answering, it will update the dns a host to point to the 3rd vps.
Till now, the setup works well. The website, mail, etc is redirected correctly from 2nd vps to 3rd vps if the 2nd isn't alive.
Regarding the teamspeak servers, i have on 2nd and on 3rd vps a teamspeak server install connected to their own mysql local server and boths, ofc, setup has machine id 1.
The mysql servers replicate their data correctly and almost instantanely.
My problem is that by exemple, i change the a channel name to test on the vps 2 and i kill the vps 2, i am automatically logged in on the vps 3, but the channel name i edited previsouly didn't changed.
I checked the data on the mysql server on the 3rd vps, and he received correctly the change, that channel is effectively renamed to "test". I only get the channel name changed if i reboot the teamspeak server.
So, i am guessing that teamspeak doesn't check the database from time to time for changes. My question is: How can i make the 2nd teamspeak install to get the database changes maded on 1st teamspeak?
Regards.
failover: 2 teamspeaks with 2 mysql databases replicated on each other
I am setting up a testing environement for a failover and i noticed a problem.
I explain what i have in this moment:
I have 3 vps servers. On the 1st server i have the dns server PowerDNS configured and replicating the dns correctly.
On that 1st server i also added a bash script on the cron to ping the 2nd vps, and if that 2nd vps isn't answering, it will update the dns a host to point to the 3rd vps.
Till now, the setup works well. The website, mail, etc is redirected correctly from 2nd vps to 3rd vps if the 2nd isn't alive.
Regarding the teamspeak servers, i have on 2nd and on 3rd vps a teamspeak server install connected to their own mysql local server and boths, ofc, setup has machine id 1.
The mysql servers replicate their data correctly and almost instantanely.
My problem is that by exemple, i change the a channel name to test on the vps 2 and i kill the vps 2, i am automatically logged in on the vps 3, but the channel name i edited previsouly didn't changed.
I checked the data on the mysql server on the 3rd vps, and he received correctly the change, that channel is effectively renamed to "test". I only get the channel name changed if i reboot the teamspeak server.
So, i am guessing that teamspeak doesn't check the database from time to time for changes. My question is: How can i make the 2nd teamspeak install to get the database changes maded on 1st teamspeak?
Regards.
0 commentaires:
Enregistrer un commentaire