Code RoomScale-in terminates in-flight requests
HardPrep Room Coding #2485

Scale-in terminates in-flight requests

On-callReliability & on-callSenior–Staff~40 min

After an evening traffic peak passes, your autoscaler scales the fleet in to save cost. Immediately you get a wave of errors: in-flight requests fail with connection resets, a batch of long-running export jobs vanish and never complete, and customers see 'export failed'. The dashboards show instances being terminated within seconds of the scale-in decision, mid-request. The service handles requests up to 3 minutes long and runs background jobs in-process. CPU/memory are fine — the errors are purely from instances disappearing. How do you triage and make scale-in safe?

What a strong answer looks like

Stop the bleeding first (mitigate), then form hypotheses from real signals. Separate root cause from symptom, communicate status as you go, and close with what prevents a repeat.

0:00 of about 40 min
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.