-
Notifications
You must be signed in to change notification settings - Fork 0
Implement a method to discover current leader #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
ligurio
added a commit
that referenced
this issue
Oct 21, 2020
Early versions of tests always first node as a primary in a cluster. With automated leader election leader can be on any node in clustera, so discovery of primary instance has been added. It consists of SQL function `_LEADER()` implemented in Lua, ``` unix/:/var/run/tarantool/jepsen.control> box.execute([[SELECT _LEADER()]]) --- - metadata: - name: COLUMN_1 type: string rows: - ['89.208.84.154'] ... ``` `primary` function that connects to desired node and gets IP address of primary instance using `_LEADER()` function and `primaries` function that gather information about primaries on every node in a cluster. Closes #43 Closes #17
ligurio
added a commit
that referenced
this issue
Oct 21, 2020
Early versions of tests always first node as a primary in a cluster. With automated leader election leader can be on any node in clustera, so discovery of primary instance has been added. It consists of SQL function `_LEADER()` implemented in Lua, ``` unix/:/var/run/tarantool/jepsen.control> box.execute([[SELECT _LEADER()]]) --- - metadata: - name: COLUMN_1 type: string rows: - ['89.208.84.154'] ... ``` `primary` function that connects to desired node and gets IP address of primary instance using `_LEADER()` function and `primaries` function that gather information about primaries on every node in a cluster. Closes #43 Closes #17
ligurio
added a commit
that referenced
this issue
Oct 21, 2020
Early versions of tests always first node as a primary in a cluster. With automated leader election leader can be on any node in clustera, so discovery of primary instance has been added. It consists of SQL function `_LEADER()` implemented in Lua, ``` unix/:/var/run/tarantool/jepsen.control> box.execute([[SELECT _LEADER()]]) --- - metadata: - name: COLUMN_1 type: string rows: - ['89.208.84.154'] ... ``` `primary` function that connects to desired node and gets IP address of primary instance using `_LEADER()` function and `primaries` function that gather information about primaries on every node in a cluster. Closes #43 Closes #17
ligurio
added a commit
that referenced
this issue
Oct 21, 2020
Early versions of tests always first node as a primary in a cluster. With automated leader election leader can be on any node in clustera, so discovery of primary instance has been added. It consists of SQL function `_LEADER()` implemented in Lua, ``` unix/:/var/run/tarantool/jepsen.control> box.execute([[SELECT _LEADER()]]) --- - metadata: - name: COLUMN_1 type: string rows: - ['89.208.84.154'] ... ``` `primary` function that connects to desired node and gets IP address of primary instance using `_LEADER()` function and `primaries` function that gather information about primaries on every node in a cluster. Closes #43 Closes #17
ligurio
added a commit
that referenced
this issue
Oct 21, 2020
Early versions of tests always first node as a primary in a cluster. With automated leader election leader can be on any node in clustera, so discovery of primary instance has been added. It consists of SQL function `_LEADER()` implemented in Lua, ``` unix/:/var/run/tarantool/jepsen.control> box.execute([[SELECT _LEADER()]]) --- - metadata: - name: COLUMN_1 type: string rows: - ['89.208.84.154'] ... ``` `primary` function that connects to desired node and gets IP address of primary instance using `_LEADER()` function and `primaries` function that gather information about primaries on every node in a cluster. Closes #43 Closes #17
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
it's required to workaround tarantool/tarantool#5339
The text was updated successfully, but these errors were encountered: