fix: shutdown logging again (#4886)

During deploys of 2023-08-03 we logged too much on shutdown. Fix the
logging by timing each top level shutdown step, and possibly warn on it
taking more than a rough threshold, based on how long I think it
possibly should be taking. Also remove all shutdown logging from
background tasks since there is already "shutdown is taking a long time"
logging.

Co-authored-by: John Spray <john@neon.tech>
This commit is contained in:
Joonas Koivunen
2023-08-03 20:34:05 +03:00
committed by GitHub
co-authored by John Spray
parent a241c8b2a4
commit 5263b39e2c
5 changed files with 154 additions and 71 deletions
+1
View File
@@ -1529,6 +1529,7 @@ class NeonPageserver(PgProtocol):
".*Compaction failed, retrying in .*: queue is in state Stopped.*",
# Pageserver timeline deletion should be polled until it gets 404, so ignore it globally
".*Error processing HTTP request: NotFound: Timeline .* was not found",
".*took more than expected to complete.*",
]
def start(