stolon icon indicating copy to clipboard operation
stolon copied to clipboard

k8s example: use podManagementPolicy: Parallel

Open drdivano opened this issue 5 years ago • 3 comments

This change allows cluster to recover during partial storage failure by preventing the following situation:

  1. We run Stolon as a StatefulSet with 2 or more replicas
  2. The cluster goes down together with storage system
  3. The cluster comes up. The storage system comes up partially, with Persistent Volume 0 still unavailable.
  4. Kubernetes fails to re-schedule and start the StatefulSet since storage for replica 0 is still down.

The Parallel policy tells Kubernetes to start other replicas without waiting for replicas with lower ordinal numbers.

drdivano avatar Oct 05 '19 14:10 drdivano

@drdivano Thanks for the PR!. Since it's related to just the k8s example can you rename it to k8s example: use podManagementPolicy: Parallel

And then in the description describe why it's useful.

sgotti avatar Oct 08 '19 07:10 sgotti

@drdivano Thanks for the PR!. Since it's related to just the k8s example can you rename it to k8s example: use podManagementPolicy: Parallel

And then in the description describe why it's useful.

@sgotti I renamed the PR and added a description as you asked 13 days ago. Did I misunderstand you?

drdivano avatar Oct 21 '19 09:10 drdivano

@sgotti I renamed the PR and added a description as you asked 13 days ago. Did I misunderstand you?

Sorry, I just lost your push. Can you please rebase in a single commit instead of merging master branch (for a cleaner git history)? Thanks.

sgotti avatar Oct 21 '19 09:10 sgotti