Uploaded image for project: 'OpenShift Etcd'
  1. OpenShift Etcd
  2. ETCD-652

Store latest etcd leader revision in datadir

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • BU Product Work
    • 2
    • False
    • None
    • False
    • OCPSTRAT-539 - Enhance recovery procedure for full control plane failure
    • ETCD Sprint 258

      To enable resource version bumps on restore, we would need to know how far into the future (in terms of revisions) we need to bump. 

      We can get this information by requesting endpoint status on each member and using the maximum of all RaftIndex fields as the result. Alternatively by finding the current leader and getting its endpoint status directly.

      Even though this is not an expensive operation, this should be polled in a sensible interval, e.g. once every 30s. 

      The result should be written as a textfile in the hostPath /var/lib/etcd that is already mounted on all relevant pods. An additional etcd sidecar container should be the most sensible choice to run this code.

       

              tjungblu@redhat.com Thomas Jungblut
              tjungblu@redhat.com Thomas Jungblut
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: