kube-arangodb icon indicating copy to clipboard operation
kube-arangodb copied to clipboard

Additional custom liveness probe for storage.

Open ghorofamike opened this issue 4 years ago • 3 comments

Custom storage can have issues, and it would be useful to be able to tell when arangodb containers need to be restarted, such as when the storage is remounted read-only on the containers, and we have to kill it and restart it. At the moment, if the storage becomes read only, arango keep running, and logs an error when a write is attempted and fails, would be nice if we could have a liveness probe for this, that could look like:

...
spec:
  *restartPolicy: Always*
  containers:
  - name: arango-crdn
      ...
      *livenessProbe*:
      exec:
        command:
        - ls
        - /data/lost+found
      initialDelaySeconds: 5
      periodSeconds: 10

ghorofamike avatar Jan 25 '21 18:01 ghorofamike

Hello!

Check will be now part of ArangoDB standard probe, will update issue with fixed versions.

Best Regards, Adam.

ajanikow avatar Jun 11 '21 18:06 ajanikow

will update issue with fixed versions. Adam. @ajanikow Has a PR for this hit the repo yet?

ghorofamike avatar Aug 05 '21 14:08 ghorofamike

@ajanikow is this addressed in the latest release?

ghorofamike avatar Mar 19 '22 09:03 ghorofamike