[lxc-devel] [lxd/master] Increase timeout of standalone SQL statements
freeekanayaka on Github
lxc-bot at linuxcontainers.org
Sat Feb 22 19:28:50 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 456 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200222/bf6b78d0/attachment.bin>
-------------- next part --------------
From 1b0e259a61aa282308d0f5c791ec5f6af760bc6b Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanayaka at canonical.com>
Date: Sat, 22 Feb 2020 19:25:31 +0000
Subject: [PATCH] Increase timeout of standalone SQL statements
If the hardware is slow or loaded spurious timeouts can kick in.
Should help with #6439.
Signed-off-by: Free Ekanayaka <free.ekanayaka at canonical.com>
---
lxd/daemon.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lxd/daemon.go b/lxd/daemon.go
index 99c54afe33..acb1e4eb8e 100644
--- a/lxd/daemon.go
+++ b/lxd/daemon.go
@@ -740,7 +740,7 @@ func (d *Daemon) init() error {
store := d.gateway.NodeStore()
- contextTimeout := 5 * time.Second
+ contextTimeout := 30 * time.Second
if !clustered {
// FIXME: this is a workaround for #5234. We set a very
// high timeout when we're not clustered, since there's
More information about the lxc-devel
mailing list