fix: move to native LiteFS leadership management with if-candidate: true
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s
This commit is contained in:
@@ -8,6 +8,8 @@ data:
|
||||
# Use Consul for leader election
|
||||
lease:
|
||||
type: "consul"
|
||||
candidate: true
|
||||
promote: true
|
||||
advertise-url: "http://${ADVERTISE_IP}:20202"
|
||||
consul:
|
||||
url: "${CONSUL_URL}"
|
||||
@@ -34,3 +36,4 @@ proxy:
|
||||
# Commands to run only on the primary node.
|
||||
exec:
|
||||
- cmd: "/usr/local/bin/entrypoint.sh"
|
||||
if-candidate: true
|
||||
|
||||
Reference in New Issue
Block a user