From ecddba30fe3e07f4aaa27931be863b3d08d7d936 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 21 Jan 2020 18:20:14 +0200 Subject: [PATCH] app/vminsert/netstorage: increase timeout for pushing data from vminsert to vmstorage by 3x Our clients report that the previous timeout could lead to frequent errors when vmstorage starts background merge for big parts on slow HDD. --- app/vminsert/netstorage/netstorage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vminsert/netstorage/netstorage.go b/app/vminsert/netstorage/netstorage.go index 66dd8b068..bdef47b52 100644 --- a/app/vminsert/netstorage/netstorage.go +++ b/app/vminsert/netstorage/netstorage.go @@ -117,7 +117,7 @@ func (sn *storageNode) sendBufLocked(buf []byte) error { return fmt.Errorf("cannot dial %q: %s", sn.dialer.Addr(), err) } } - timeoutSeconds := len(buf) / 1e6 + timeoutSeconds := len(buf) / 3e5 if timeoutSeconds < 60 { timeoutSeconds = 60 }