arangodb-helper / arangodb

ArangoDB Starter - starts ArangoDB clusters & single servers with ease.
Apache License 2.0
75 stars 16 forks source link

GT-451 | Proper leader election and upgrade without using observe and TTL features #367

Closed nikita-vanyasin closed 1 year ago

nikita-vanyasin commented 1 year ago

Based on https://github.com/arangodb/go-driver/pull/518 Generics added to simplify code for master URL.

nikita-vanyasin commented 1 year ago

I will have the same code in go-agency-helper

@informalict Not sure why it's need there, but feel free to copy the package. Also note that initial implementation proposed by Lars contains one small issue, it was fixed in this PR.

informalict commented 1 year ago

I will have the same code in go-agency-helper

@informalict Not sure why it's need there, but feel free to copy the package. Also note that initial implementation proposed by Lars contains one small issue, it was fixed in this PR.

because it must be used by ArangoSync, so there are 3 options: