Repository navigation
Prevent occasional OTel SQLite writing slowdowns - #8950
Merged
Merged
Conversation
Signed-off-by: Alex Suraci <[email protected]>
vito
force-pushed
the
otel-slow-shutdown
branch
from
November 14, 2024 00:06
8cc7baf to
85082b0
Compare
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
All of this data is ephemeral - we don't care if we lose it on a system crash. Setting synchronous=NORMAL opens up to slowdowns from random I/O blocks, as observed when running `test all`. Without this change we could occasionally see a span insert blocking for more than 10 seconds, triggering a timeout when shutting down the OTel proxy server. The odds of this happening in `test all` were pretty high - at least one in two runs. After this change I have been able to run `test all` 8 times and none of them hit that particular issue. (Three failed, but that's neither here nor there.) Signed-off-by: Alex Suraci <[email protected]>
This reverts commit 925cf02. This didn't end up helping the one user it affected, and it feels better for each request to be all-or-nothing considering OTel will retry requests. Signed-off-by: Alex Suraci <[email protected]>
vito
force-pushed
the
otel-slow-shutdown
branch
from
November 14, 2024 15:42
9021853 to
16ea5cd
Compare
vito
marked this pull request as ready for review
November 14, 2024 15:45
sipsma
approved these changes
Nov 14, 2024
TomChv
pushed a commit
to TomChv/dagger
that referenced
this pull request
Nov 21, 2024
* engine: set synchronous=OFF for client DBs All of this data is ephemeral - we don't care if we lose it on a system crash. Setting synchronous=NORMAL opens up to slowdowns from random I/O blocks, as observed when running `test all`. Without this change we could occasionally see a span insert blocking for more than 10 seconds, triggering a timeout when shutting down the OTel proxy server. The odds of this happening in `test all` were pretty high - at least one in two runs. After this change I have been able to run `test all` 8 times and none of them hit that particular issue. (Three failed, but that's neither here nor there.) Signed-off-by: Alex Suraci <[email protected]> * Revert "don't bother with transactions for client DB (dagger#8861)" This reverts commit 925cf02. This didn't end up helping the one user it affected, and it feels better for each request to be all-or-nothing considering OTel will retry requests. Signed-off-by: Alex Suraci <[email protected]> --------- Signed-off-by: Alex Suraci <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
synchronize=NORMALtosynchronize=OFFso we don't randomly block on syncing changes to disk. This should fix the root issue, I think - 8 runs oftest alldidn't show any more SQLite timeouts.begin tx: database is lockedat all - they just started to seecontext deadline exceededinstead. I thinksynchronize=OFFis the true fix for all of this.