-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3ng: S3 health /ready check #6774
Comments
Probably should be reflected in both readiness and liveness probobes. The storage-users service can neither be ready nor healthy if the S3 bucket is not accessible. At least for the current implementation of the s3ng driver. |
In my understanding, the storage-users has to be able to deal with a non working S3 backend properly. Without any data loss. |
How does this maintenance mode look like? What are the indicators for putting oCIS in a maintenance mode? |
One important thing consider: Storageusers starts without complaining even if a bucket does not exist or credentials are not valid. Probably it should only fail on the first user request. |
Maintenance mode: If switched on (compare oC10) the instance answers to every client with a certain http reply code (IIRC it was On startup, the storage users service should check a connection to the backend once and not start if something goes wrong. Imho. |
In Kubernetes, the storage-users service wouldn't even need to exit with an error code. It would be sufficient if the the ocis/ocis-pkg/service/debug/service.go Line 32 in bd213bb
/readyz always signals "I'm ready, please give me work!" 😉 .
Let's put that in a different ticket. Where should this go? Will this be a oCIS Product feature? Will this a oCIS Helm Chart feature (then we could reuse owncloud/ocis-charts#339) For a SaaS project we already have a maintenance page during updates that returns 503 for every route / path / ... One downside is still that it's plain HTML, so no autorefresh so that the user automatically get's back to the service when the maintenance page is down. But for a general unavailable page, oCIS doesn't handle |
Is your feature request related to a problem? Please describe.
To gain confidence of a up and running system I would love the storageusers service to do a S3 health check.
Describe the solution you'd like
The storageusers service could do a regular HEAD on the configured bucket if S3ng is used. This would help gaining confidence, that the storageusers service has the right S3 credentials and is able to connect.
This does not need to be scheduled by oCIS iself - a command that I can invoke from the CLI would also be fine for me.
Describe alternatives you've considered
Wait for a user to upload a file and see the upload failing
Additional context
This would highly improve maintainability.
The text was updated successfully, but these errors were encountered: