The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6921

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
If the hardware is slow or loaded spurious timeouts can kick in.

Should help with #6439.

Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com>
From 1b0e259a61aa282308d0f5c791ec5f6af760bc6b Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanay...@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.ekanay...@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
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to