Enable role-based component start dependencies
dpauly opened this issue · 1 comments
dpauly commented
When a cluster is started, it would be useful to be able to specify that members with a certain application role should not be started until another role has started.
E.g. No members with an application role of 'management' should be started until at least one member with a role of 'data' is available.
thegridman commented
Fixed in #393
Documented in Role Start-Up Ordering
For example:
- If there is a cluster
test-cluster
with two roles,data
andmanagement
where themanagement
role should not be started until all of thedata
Pods are in a ready state:
apiVersion: coherence.oracle.com/v1
kind: CoherenceCluster
metadata:
name: test-cluster
spec:
roles:
- role: data
replicas: 5
- role: management
replicas: 1
startQuorum:
- role: data
- If there is a cluster
test-cluster
with two roles,data
andmanagement
where themanagement
role should not be started until at least two of thedata
Pods are in a ready state:
apiVersion: coherence.oracle.com/v1
kind: CoherenceCluster
metadata:
name: test-cluster
spec:
roles:
- role: data
replicas: 5
- role: management
replicas: 1
startQuorum:
- role: data
podCount: 2
- If there is a cluster
test-cluster
with three roles,data
,proxy
andmanagement
where themanagement
role should not be started until all of the Pods in thedata
role are in the ready state and at least one of theproxy
Pods are in a ready state:
apiVersion: coherence.oracle.com/v1
kind: CoherenceCluster
metadata:
name: test-cluster
spec:
roles:
- role: data
replicas: 5
- role: proxy
replicas: 3
- role: management
replicas: 1
startQuorum:
- role: data
- role: proxy
podCount: 1