We finally migrated 14 nodes this weekend. As there were millions of files to be migrated even after running 5 parallel thread on each node it took close to 3-4 hours per node. We were running 3 nodes at a time otherwise the db load was shooting up high. As we cant afford to have a downtime on weekdays, the migration has to happen on weekend nights. On Friday night it we were up till 6:00 AM and on Saturday night we were up till 4:00 AM. We wanted to do more nodes but the no of files per host was going overboard and I wanted to be conservative to start with, if the mysql servers can handle more then later we would consolidate shards or move them to this host. New mysql hosts are going to be provisioned next week so hoping to migrate more nodes this week. Monday was a calm day after long time as we chose all nodes that were spiking to be migrated first.
Db loads in all DCs are low and even app nodes are low, Surprisingly slave dbs are getting pounded more than master db after last week's optimisation in code to move some heavily used queries to slave that can handle stale data, a good sign as we can easily add more slaves to spread the load.
Part1
Part2
Part3
Part4
Part5
Db loads in all DCs are low and even app nodes are low, Surprisingly slave dbs are getting pounded more than master db after last week's optimisation in code to move some heavily used queries to slave that can handle stale data, a good sign as we can easily add more slaves to spread the load.
Master db load on one DC |
Slave DB load on one DC |
Part1
Part2
Part3
Part4
Part5
Comments
Post a Comment