| | |
| | | |
| | | //"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 ( |
| | |
| | | ReplayOnJoinDefault = false |
| | | SnapshotPathDefault = "./serfSnapShot" |
| | | MaxEventBufferCount = 2048 |
| | | |
| | | TcpTransportPort = 30194 //tcp传输大数据量接口 |
| | | ) |
| | | |
| | | // DefaultConfig default config |
| | |
| | | type Config struct { |
| | | // config from serf agent |
| | | *agent.Config |
| | | Mode string `json:"mode"` |
| | | Mode string `json:"mode"` |
| | | |
| | | // name to group members into cluster |
| | | ClusterID string `json:"cluster_name"` |
| | | ClusterID string `json:"cluster_name"` |
| | | |
| | | // port to communicate between cluster members |
| | | ClusterPort int `yaml:"cluster_port"` |
| | | RPCPort int `yaml:"-"` |
| | | ClusterPort int `yaml:"cluster_port"` |
| | | RPCPort int `yaml:"-"` |
| | | } |
| | | |
| | | // readConfigFile reads configuration from config file |