Skip to content
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

gh-664: switchover api #679

Merged
merged 1 commit into from
Mar 25, 2020
Merged

gh-664: switchover api #679

merged 1 commit into from
Mar 25, 2020

Conversation

olegrok
Copy link
Contributor

@olegrok olegrok commented Mar 24, 2020

What has been done? Why? What problem is being solved?

I didn't forget about

  • Tests
  • Changelog
  • Documentation

Close #664

@olegrok olegrok force-pushed the olegrok/664-switchover-api branch 2 times, most recently from b0dfc45 to 2a061ec Compare March 24, 2020 14:16
cartridge/failover.lua Outdated Show resolved Hide resolved
cartridge/failover.lua Outdated Show resolved Hide resolved
cartridge/failover.lua Outdated Show resolved Hide resolved
cartridge/lua-api/failover.lua Outdated Show resolved Hide resolved
cartridge/roles/coordinator.lua Outdated Show resolved Hide resolved
test/integration/failover_stateful_test.lua Outdated Show resolved Hide resolved
test/integration/failover_stateful_test.lua Outdated Show resolved Hide resolved
test/integration/failover_stateful_test.lua Outdated Show resolved Hide resolved
test/integration/failover_stateful_test.lua Show resolved Hide resolved
test/integration/failover_stateful_test.lua Outdated Show resolved Hide resolved
@olegrok olegrok requested a review from rosik March 24, 2020 15:33
The following API introduced (works only with stateful failover):

  - cartridge.lua-api.failover.promote({[replicaset_uuid] = leader_uuid, ...})
  - cartridge.failover_promote({[replicaset_uuid] = leader_uuid, ...})

GraphQL:
```graphql
mutation(
    $replicaset_uuid: String!
    $instance_uuid: String!) {
       cluster {
          failover_promote(
              replicaset_uuid: $replicaset_uuid
              instance_uuid: $instance_uuid
          ) {}
    }
}
```

Closes #664
cartridge/lua-api/failover.lua Outdated Show resolved Hide resolved
@rosik rosik merged commit 241a673 into master Mar 25, 2020
@rosik rosik deleted the olegrok/664-switchover-api branch March 25, 2020 10:03
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

Successfully merging this pull request may close these issues.

Implements switchover API (est: 2)
2 participants