Documentation
¶
Index ¶
- Constants
- func GenDefaultCreateServiceRequest(platform string, region string, azs []string, cluster string, service string, ...) (*manage.CreateServiceRequest, error)
- func GenReplicaConfigs(platform string, region string, cluster string, service string, azs []string, ...) []*manage.ReplicaConfig
- func GenUpgradeRequestV095(cluster string, service string) *containersvc.UpdateServiceOptions
- func IsJavaEnvFile(filename string) bool
- func UpdateHeapSize(newHeap int64, oldHeap int64, content string) string
- func UpgradeJavaEnvFileContentToV095(heapSizeMB int64, memberHost string) string
- func ValidateUpdateRequest(req *manage.CatalogUpdateZooKeeperRequest) error
Constants ¶
View Source
const ( // ContainerImage is the main ZooKeeper running container. ContainerImage = common.ContainerNamePrefix + "zookeeper:" + defaultVersion // ClientPort is the port at which the clients will connect ClientPort = 2181 // DefaultHeapMB is the default zookeeper java heap size DefaultHeapMB = 4096 )
Variables ¶
This section is empty.
Functions ¶
func GenDefaultCreateServiceRequest ¶
func GenDefaultCreateServiceRequest(platform string, region string, azs []string, cluster string, service string, opts *manage.CatalogZooKeeperOptions, res *common.Resources) (*manage.CreateServiceRequest, error)
GenDefaultCreateServiceRequest returns the default service creation request.
func GenReplicaConfigs ¶
func GenReplicaConfigs(platform string, region string, cluster string, service string, azs []string, opts *manage.CatalogZooKeeperOptions) []*manage.ReplicaConfig
GenReplicaConfigs generates the replica configs.
func GenUpgradeRequestV095 ¶ added in v0.9.5
func GenUpgradeRequestV095(cluster string, service string) *containersvc.UpdateServiceOptions
GenUpgradeRequestV095 generates the UpdateServiceOptions to upgrade the service. This is specific to each release. Only upgrade from the last version to current version is supported.
func IsJavaEnvFile ¶ added in v0.9.5
IsJavaEnvFile checks whether the filename is javaEnvConfFileName
func UpdateHeapSize ¶ added in v0.9.5
UpdateHeapSize updates the heap size in javaEnvConfFileName
func UpgradeJavaEnvFileContentToV095 ¶ added in v0.9.5
UpgradeJavaEnvFileContentToV095 adds the jmx configs to java env file
func ValidateUpdateRequest ¶ added in v0.9.5
func ValidateUpdateRequest(req *manage.CatalogUpdateZooKeeperRequest) error
ValidateUpdateRequest checks if the update request is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.