Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
hibernate on critical-load #424
Conversation
|
TODO: on leaving hibernation, This is somewhat complicated to achieve and supervise, since most of these processes are independent. |


Fixes #418
This PR introduces
--critical-load-hibernate-seconds. This flag defaults0(in which case the new feature introduced in this PR is disabled)when
critical-load-hibernate-seconds > 0, then the behavior ofcritical-loadchanges. Instead of panicking and bailing out with error,gh-ostenters hibernation.As opposed to throttling, hibernation implies absolutely no queries on neither master not migrated server. No heartbeats; no throttle checks; no replication lag checks; nothing.
When
gh-ostawakes from hibernation, it's all back to normal, and throttling checks take place as usual, and of course it may potentially re-enter hibernation ifcritical-loadis still met.cc @ggunson @github/database-infrastructure