mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Downgrade repl stream time out error to warning (#16401)
This is because if a worker reaches ~100% CPU then everything starts lagging and we hit the log line a lot. When at error we invoke sentry and that has a lot of overhead, which then puts even more pressure on the worker.
This commit is contained in:
parent
79eb6c0cdc
commit
20fb08ec80
1
changelog.d/16401.misc
Normal file
1
changelog.d/16401.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Downgrade replication stream time out error log lines to warning.
|
@ -339,7 +339,7 @@ class ReplicationDataHandler:
|
|||||||
try:
|
try:
|
||||||
await make_deferred_yieldable(deferred)
|
await make_deferred_yieldable(deferred)
|
||||||
except defer.TimeoutError:
|
except defer.TimeoutError:
|
||||||
logger.error(
|
logger.warning(
|
||||||
"Timed out waiting for repl stream %r to reach %s (%s)"
|
"Timed out waiting for repl stream %r to reach %s (%s)"
|
||||||
"; currently at: %s",
|
"; currently at: %s",
|
||||||
stream_name,
|
stream_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user