| | |
| | | |
| | | //"github.com/apache/servicecomb-service-center/syncer/pkg/utils" |
| | | "github.com/hashicorp/memberlist" |
| | | "github.com/hashicorp/serf/cmd/serf/command/agent" |
| | | "github.com/hashicorp/serf/serf" |
| | | "basic.com/valib/serf.git/cmd/serf/command/agent" |
| | | "basic.com/valib/serf.git/serf" |
| | | ) |
| | | |
| | | const ( |
| | |
| | | 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 |