I run my cleanup each 15 minutes...
My dedicated PHP server are very "little" : Arround 512MB RAM, single core like P4 but a lot :
If one goes down, it's load balanced to another with HAProxy and Round Robin DNS...
I prefer : a lot of cheap server (arround 30 € / month) to 1 big server (arround 200 €/month)
Now, when a tracker is down, my user see nothing....
About the cleanup, I run all the "huge" SQL query directly with BASH and mysql command line...
mysql -u g -ppassword -D dbname -e "DELETE FROM bookmark WHERE userid NOT IN (SELECT id FROM users);" >> /var/log/cleanup/cleanup.log
mysql -u g -ppassword -D dbname -e "DELETE FROM messages WHERE receiver NOT IN (SELECT id FROM users);" >> /var/log/cleanup/cleanup.log
mysql -u g -ppassword -D dbname -e "DELETE FROM peers WHERE unix_timestamp()-unix_timestamp(last_action) >= 21600 LIMIT 5000;" >> /var/log/cleanup/cleanup.log
Query like this with cron each 3 minutes...
For me XBTT is worst : no memcache enable for some things... I can remove/add what I want directly into the code without recompile it...
One of my staff member do this schema...
[url="
https://static.guiks.net/images/structtk.png"]Structure Schema[/url]
All my tracker are cheapers dedicated server you can find on leaseweb/OVH... Demand of what we need, sometimes, we try to put tracker on another country to test hosting, bandwidth quality of a hosting service...
Sometimes, one of our tracker server stay down during a week, a month, we let it down because load balancing low cost server do what you need ^^
P.S: Like TS, removing all snatche update let your server very calm ^^
Currently I'm looking just for fun to store Peers table into another MySQL server... Peers table are only called by announce/scrape and we can do some stuff, but need a lot of code before...
mysql_select_db($dbname,
$link);