Skip to content

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

Closed
ligurio opened this issue Oct 7, 2020 · 0 comments
Closed

Implement a method to discover current leader #43

ligurio opened this issue Oct 7, 2020 · 0 comments
Assignees

Comments

@ligurio
Copy link
Member

ligurio commented Oct 7, 2020

it's required to workaround tarantool/tarantool#5339

@ligurio ligurio self-assigned this Oct 7, 2020
@ligurio ligurio changed the title Implement a method to discover current leader and commit synchronous transactions from the previous leader Implement a method to discover current leader Oct 21, 2020
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant