From dca6f0f7de9d1e379cfe7a80477c53a966f0043d Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 9 Sep 2021 19:09:38 +0300 Subject: [PATCH] app/vminsert/netstorage: remove the limit on the number of `-storageNode` addresses There is no any reasons to limit the number of `-storageNode` addresses to 255. Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1599 --- app/vminsert/netstorage/netstorage.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/vminsert/netstorage/netstorage.go b/app/vminsert/netstorage/netstorage.go index c22b0d52f..528c96d65 100644 --- a/app/vminsert/netstorage/netstorage.go +++ b/app/vminsert/netstorage/netstorage.go @@ -404,9 +404,6 @@ func InitStorageNodes(addrs []string) { if len(addrs) == 0 { logger.Panicf("BUG: addrs must be non-empty") } - if len(addrs) > 255 { - logger.Panicf("BUG: too much addresses: %d; max supported %d addresses", len(addrs), 255) - } // Sort addrs in order to guarantee identical series->vmstorage mapping across all the vminsert nodes. addrsCopy := append([]string{}, addrs...)