From 794f0f874f718aa0cc9030af04a533477d37772d Mon Sep 17 00:00:00 2001 From: ning <710leo@gmail.com> Date: Fri, 2 Jun 2023 13:12:53 +0800 Subject: [PATCH] change HostDatasourceId --- alert/naming/hashring.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alert/naming/hashring.go b/alert/naming/hashring.go index 23a1e08d..aeb5b568 100644 --- a/alert/naming/hashring.go +++ b/alert/naming/hashring.go @@ -16,7 +16,7 @@ type DatasourceHashRingType struct { } // for alert_rule sharding -var HostDatasource int64 = -999 +var HostDatasource int64 = 99999999 var DatasourceHashRing = DatasourceHashRingType{Rings: make(map[int64]*consistent.Consistent)} func NewConsistentHashRing(replicas int32, nodes []string) *consistent.Consistent { -- GitLab