From 2863a050be2530afc452e48aae8b4be9b3965ebd Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期一, 15 五月 2023 18:18:53 +0800
Subject: [PATCH] add default role tag

---
 config.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.go b/config.go
index e8fd58e..ac65ecc 100644
--- a/config.go
+++ b/config.go
@@ -47,7 +47,7 @@
 	BroadcastInterval  = 5
 	MaxQueryRespSize   = 50 * 1024 * 1024
 	MaxQuerySize       = 50 * 1024 * 1024
-	MaxUserEventSize   = 9 * 1024
+	MaxUserEventSize   = 9 * 1024 * 10
 	ReplayOnJoinDefault = false
 	SnapshotPathDefault = "./serfSnapShot"
 	MaxEventBufferCount = 2048
@@ -163,7 +163,7 @@
 	serfConf.MemberlistConfig.BindPort = bindPort
 	serfConf.NodeName = c.NodeName
 
-	serfConf.Tags = map[string]string{TagKeyRPCPort: strconv.Itoa(c.RPCPort)}
+	serfConf.Tags = map[string]string{TagKeyRPCPort: strconv.Itoa(c.RPCPort), "role": "slave"}
 
 	if c.ClusterID != "" {
 		serfConf.Tags[tagKeyClusterID] = c.ClusterID

--
Gitblit v1.8.0