Engineering plan · Order service
Order service: database upgrade to version 17
- Window
- Sunday, December 7, 2:00–5:00 am
- Status
- In review
Steps
- Build a replica on version 17 and let it catch up, from December 1
- Run the test suite and replay a day of traffic against it
- In the window: stop writes, let the replica catch up, point the service at it
- Check that order counts and the last 1,000 orders match, then reopen writes
Risks
- Two queries use a function version 17 removed: rewritten in PR 4182
- Writes stop for about 8 minutes during the switch
Rollback
The old primary stays up, read-only, for seven days. To roll back, point the service at it again and replay the orders taken since the switch.