Comments (5)
readinessProbes is also like this, but it works fine in version 1.11 of PXC.
from percona-xtradb-cluster-operator.
Hey folks. I was able to reproduce it.
I changed it in cr.yaml:
pxc:
...
readinessProbes:
timeoutSeconds: 16
periodSeconds: 31
livenessProbes:
timeoutSeconds: 6
periodSeconds: 11
I see it is properly set in the custom resource in k8s.
But it is not reflected in the container.
livenessProbe:
exec:
command:
- /var/lib/mysql/liveness-check.sh
failureThreshold: 3
initialDelaySeconds: 300
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
At the same time I see env variables are set:
- name: LIVENESS_CHECK_TIMEOUT
value: "6"
- name: READINESS_CHECK_TIMEOUT
value: "16"
@egegunes @hors any thoughts before I create a JIRA bug?
from percona-xtradb-cluster-operator.
@spron-in @hulucc it was fixed under https://perconadev.atlassian.net/browse/K8SPXC-1345 and will be available in the next release.
from percona-xtradb-cluster-operator.
Awesome! Thanks @hors !
from percona-xtradb-cluster-operator.
Thank you @hors ! When we restore a foreign backup onto a pxc-operator managed cluster the inability to adjust the readiness probes gave a very slim window where we could connect into the pxc container of the pod and get the grants restored before the failing probe took out the container. I discovered this issue attempting to lengthen the timeout.
It would be beneficial if the operator could detect and possibly remediate the condition where the grants required by the operator are not present in the database; however I do not know if that is already possible by some existing mechanism I have not yet discovered. Is it possible to use a prestop hook on the restore job I wonder?
from percona-xtradb-cluster-operator.
Related Issues (10)
- Scheduled backup failed if pxc cluster name is not unique across namespaces HOT 4
- Intermittent issue kubernetes admission percona-xtradbcluster-webhook HOT 7
- No percona-xtradb-cluster-operator pod is created HOT 1
- pxc-db pmm configure pmmserverkey HOT 3
- Provision data with xtrabackup HOT 7
- Post initialization spec.pxc.configuration HOT 3
- Arm64 support HOT 2
- Adding sidecars mysqld_exporter cannot create pxc pods HOT 1
- change Kind HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from percona-xtradb-cluster-operator.