yugabyte / yugabyte-db

YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
https://www.yugabyte.com
Other
8.99k stars 1.07k forks source link

[DocDB] Server shutdown path: reject new requests, flush all tablets #16830

Open mbautin opened 1 year ago

mbautin commented 1 year ago

Jira Link: DB-6179

Description

This is an idea mentioned by @rao-vasireddy. To reduce the number of WALs to replay on restart, do the following:

This will reduce the tablet bootstrap cost on restart.

Warning: Please confirm that this issue does not contain any sensitive information

Huqicheng commented 1 year ago

if we make clean shutdown quiesce raft, so no new ops come in wait for current ops to wrap up, so stuff in flight doesn’t get to add new entries to WAL rollover the WAL bonus: maybe don’t even start a new WAL?

Huqicheng commented 1 year ago

Created separate diffs to track clean shutdown related items:

Low priority: