You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.
Describe the bug
When deploy kubecf with multi_az=true, all the log-cache jobs started with NODE_INDEX=0 and this cause the log-cache cluster not working properly.
cf logs not work. cf push xxx and cf app xxx not working, failed with client timeout.
To Reproduce
cf-operator: 5.2.0
kubecf: v2.2.3
deploy kubecf with multi_az=true
config log-cache with more than 1 instance.
for example:
$ k get pod -n kubecf |grep log-cache
log-cache-z0-0 10/10 Running 0 18m
log-cache-z0-1 10/10 Running 0 11m
log-cache-z1-0 10/10 Running 0 18m
log-cache-z1-1 10/10 Running 0 11m
login log-cache container (take log-cache-z1-0 for example) and check the environment NODE_INDEX:
issue:
The log-cache job start reference to the container environment value NODE_INDEX=0 instead of using the value in bpm.yml, and this cause all the log-cache jobs run with NODE_INDEX=0 and fail to work as a cluster.
Expected behavior
logcach job can join the cluster with correct NODE_INDEX, the value in bpm.yml
Environment
cf-operator: 5.2.0
kubecf: v2.2.3
The text was updated successfully, but these errors were encountered:
It does, but it is still possible that we'll have to change that in the future... It is only a singleton because of memory leak issues, but making it a singleton cause early expiration of logs, so it is not really a solution, even if you accept that cf logs doesn't need to be HA...
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
When deploy kubecf with multi_az=true, all the log-cache jobs started with
NODE_INDEX=0
and this cause the log-cache cluster not working properly.cf logs
not work.cf push xxx
andcf app xxx
not working, failed with client timeout.To Reproduce
cf-operator: 5.2.0
kubecf: v2.2.3
deploy kubecf with multi_az=true
config log-cache with more than 1 instance.
for example:
login log-cache container (take log-cache-z1-0 for example) and check the environment
NODE_INDEX
:check file /var/vcap/jobs/log-cache/config/bpm.yml,
check the log-cache logs
Check the statefulset log-cache in each zone:
NODE_INDEX is set as the Environment of container log-cache-log-cache
issue:
The log-cache job start reference to the container environment value
NODE_INDEX=0
instead of using the value in bpm.yml, and this cause all the log-cache jobs run withNODE_INDEX=0
and fail to work as a cluster.Expected behavior
logcach job can join the cluster with correct NODE_INDEX, the value in bpm.yml
Environment
cf-operator: 5.2.0
kubecf: v2.2.3
The text was updated successfully, but these errors were encountered: