Documentation ¶
Index ¶
- Constants
- func GenServiceMemberHosts(cluster string, service string, replicas int64) string
- func GenServiceMemberHostsWithPort(cluster string, service string, replicas int64, port int64) string
- func GenServiceMemberURIs(cluster string, service string, replicas int64, port int64) string
- func GenStatelessServiceReplicaConfigs(cluster string, service string, replicas int) []*manage.ReplicaConfig
- func IsMemberConfigFile(filename string) bool
- func IsServiceConfigFile(filename string) bool
- func UpdateServiceConfigHeapAndJMX(oldContent string, heapSizeMB int64, jmxUser string, jmxPasswd string) string
- func ValidateUpdateOptions(heapSizeMB int64, jmxUser string, jmxPasswd string) error
Constants ¶
const ( // The service configurable variables and some service specific variables SERVICE_FILE_NAME = "service.conf" // The specific variables for one service member MEMBER_FILE_NAME = "member.conf" BindAllIP = "0.0.0.0" // the default password is uuid for better security // every service will define its own jmx port JmxDefaultRemoteUser = "jmxuser" JmxReadOnlyAccess = "readonly" JmxReadWriteAccess = "readwrite" )
Variables ¶
This section is empty.
Functions ¶
func GenServiceMemberHosts ¶ added in v0.9.5
GenServiceMemberHosts creates the hostname list of all service members, example: myzoo-0.t1-firecamp.com,myzoo-1.t1-firecamp.com Note: this currently works for the service that all members have a single name format, such as ZooKeeper, Kafka, etc. For service such as ElasticSearch, MongoDB, that has different name formats, this is not suitable.
func GenServiceMemberHostsWithPort ¶ added in v0.9.5
func GenServiceMemberHostsWithPort(cluster string, service string, replicas int64, port int64) string
GenServiceMemberHostsWithPort creates the hostname:port list of all service members, example: myzoo-0.t1-firecamp.com:2181,myzoo-1.t1-firecamp.com:2181 Note: this currently works for the service that all members have a single name format, such as ZooKeeper, Kafka, etc. For service such as ElasticSearch, MongoDB, that has different name formats, this is not suitable.
func GenServiceMemberURIs ¶ added in v0.9.5
GenServiceMemberURIs creates the list of URIs for all service members, example: http://myes-0.t1-firecamp.com:9200,http://myes-1.t1-firecamp.com:9200
func GenStatelessServiceReplicaConfigs ¶ added in v0.9.5
func GenStatelessServiceReplicaConfigs(cluster string, service string, replicas int) []*manage.ReplicaConfig
GenStatelessServiceReplicaConfigs generates the replica configs for the stateless service.
func IsMemberConfigFile ¶ added in v0.9.6
IsMemberConfigFile checks if the file is the member.conf file
func IsServiceConfigFile ¶ added in v0.9.6
IsServiceConfigFile checks if the file is the service.conf file
Types ¶
This section is empty.