In the linked consul documentation, we see a `LockIndex` field in the lock state; <a href="https:&#x2F;&#x2F;www.consul.io&#x2F;docs&#x2F;agent&#x2F;http&#x2F;kv.html" rel="nofollow">https:&#x2F;&#x2F;www.consul.io&#x2F;docs&#x2F;agent&#x2F;http&#x2F;kv.html</a> confirms that &quot;LockIndex is the number of times this key has successfully been acquired in a lock. If the lock is held, the Session key provides the session that owns the lock.&quot;<p>So you can do fencing with consul.