Out of Sync servers
Posted: Sun Nov 30, 2008 3:58 am
Heya,
I currently have a cluser with 2 web servers and a few database server behind them. Problem is, that occasionally there's a big time difference between the 2 web servers. My website being a online game, it's essential that each user receives the same timestamp from the various scripts; it's really going crazy when the user on 1 server is 300 seconds ahead of the user on the other server.
I've contacted my server admins about the issue, and they keep syncing the 2 servers; they however haven't found any permanent solution to the problem.
So, I was thinking, is it a) possible to set the server time with a PHP script, so I could resolve the issue myself? b) is it possible to retrieve all timestamps from some reliable external source?
I currently have a cluser with 2 web servers and a few database server behind them. Problem is, that occasionally there's a big time difference between the 2 web servers. My website being a online game, it's essential that each user receives the same timestamp from the various scripts; it's really going crazy when the user on 1 server is 300 seconds ahead of the user on the other server.
I've contacted my server admins about the issue, and they keep syncing the 2 servers; they however haven't found any permanent solution to the problem.
So, I was thinking, is it a) possible to set the server time with a PHP script, so I could resolve the issue myself? b) is it possible to retrieve all timestamps from some reliable external source?