Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-13271

Add REST endpoint to shutdown containers only

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 13.0.0.Final
    • 12.1.7.Final
    • Operator, REST
    • None

      /v2/clusters?action=stop shutdowns down all caches and makes the servers exit. This does not work well with a k8s StatefulSet as the controller will always attempt to have `.replica` pods ready, resulting in the pods being recreated after stop is called.

      To avoid this, we should expose a /v2/clusters?action=stop-containers action that only shutdowns the container content and leaves the server process running. The StatefulSet controller can then terminate the server process when spec.replica = 0 and the pods are scaled down.

              remerson@redhat.com Ryan Emerson
              remerson@redhat.com Ryan Emerson
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: