Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load issue when high traffic #5

Open
dawb opened this issue Feb 14, 2023 · 0 comments
Open

Load issue when high traffic #5

dawb opened this issue Feb 14, 2023 · 0 comments

Comments

@dawb
Copy link
Contributor

dawb commented Feb 14, 2023

Hi,

We are experiencing that when put into production with high traffic loads that some pages are returning an error with empty objects for the Azure_blobcache.

Have you encountered this previously and know a work around? We're trying to work out if this is a codebase issue or a response time from Azure issue.

[Emergency] Uncaught SilverStripe\ORM\Connect\DatabaseException: Couldn't run query: UPDATE "Azure_BlobCache" SET "Contents" = ?, "LastEdited" = ? WHERE ("ID" = ?) Lock wait timeout exceeded; try restarting transaction
GET /new-website-page/
Line 64 in /var/www/vendor/silverstripe/framework/src/ORM/Connect/DBConnector.php

Source
55 if
(!empty($sql)) {
56 $formatter = new SQLFormatter();
57 $formattedSQL =
$formatter->formatPlain($sql);
58 $msg = "Couldn't run
query:\n\n{$formattedSQL}\n\n{$msg}";
59 }
60
61 if ($errorLevel === E_USER_ERROR) {
62 // Treating errors as exceptions better
allows for responding to errors
63 // in code, such as credential checking
during installation
64 throw new
DatabaseException($msg, 0, null, $sql, $parameters);
65 } else {
66 user_error($msg ?? '', $errorLevel ?? 0);
67 }
68 }
69
70 /**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant