public interface ClusterManager
| Modifier and Type | Method and Description |
|---|---|
com.spotify.docker.client.messages.Info |
getClusterInfo()
Get cluster info
|
Integer |
getExpectedNumberOfNodes()
Get expected number of nodes in the cluster
Set externally by SWARM_NODE_NUMBER env variable
|
Integer |
getNumberOfNodes()
Get number of nodes in the cluster
|
Integer |
getTaskHistoryLimit()
Get task history limit for the swarm cluster
|
boolean |
isClusterHealthy()
Get the health status of the cluster
|
void |
setTaskHistoryLimit(Integer taskHistoryLimit)
Set task history limit for the swarm cluster
For production history limit should be set to 0
Then the cluster will not keep containers after the services are removed
|
com.spotify.docker.client.messages.Info getClusterInfo()
throws com.spotify.docker.client.exceptions.DockerException,
InterruptedException
com.spotify.docker.client.exceptions.DockerExceptionInterruptedExceptionInteger getNumberOfNodes() throws com.spotify.docker.client.exceptions.DockerException, InterruptedException
com.spotify.docker.client.exceptions.DockerExceptionInterruptedExceptionboolean isClusterHealthy()
throws com.spotify.docker.client.exceptions.DockerException,
InterruptedException
com.spotify.docker.client.exceptions.DockerExceptionInterruptedExceptionInteger getExpectedNumberOfNodes()
void setTaskHistoryLimit(Integer taskHistoryLimit) throws com.spotify.docker.client.exceptions.DockerException, InterruptedException
com.spotify.docker.client.exceptions.DockerExceptionInterruptedExceptionInteger getTaskHistoryLimit() throws com.spotify.docker.client.exceptions.DockerException, InterruptedException
com.spotify.docker.client.exceptions.DockerExceptionInterruptedExceptionCopyright © 2017–2018. All rights reserved.