Giter VIP home page Giter VIP logo

Comments (5)

awlleon avatar awlleon commented on June 16, 2024

readinessProbes is also like this, but it works fine in version 1.11 of PXC.

from percona-xtradb-cluster-operator.

spron-in avatar spron-in commented on June 16, 2024

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.

hors avatar hors commented on June 16, 2024

@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.

spron-in avatar spron-in commented on June 16, 2024

Awesome! Thanks @hors !

from percona-xtradb-cluster-operator.

johnlaur avatar johnlaur commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.