-
Notifications
You must be signed in to change notification settings - Fork 29
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
Implements switchover API (est: 2) #664
Milestone
Comments
Closed
olegrok
added a commit
that referenced
this issue
Mar 24, 2020
The following API introduced: - 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
olegrok
added a commit
that referenced
this issue
Mar 24, 2020
The following API introduced: - 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
olegrok
added a commit
that referenced
this issue
Mar 24, 2020
The following API introduced: - 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
olegrok
added a commit
that referenced
this issue
Mar 24, 2020
The following API introduced: - 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
olegrok
added a commit
that referenced
this issue
Mar 25, 2020
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
rosik
pushed a commit
that referenced
this issue
Mar 25, 2020
The following API introduced (works only with stateful failover): Lua: ```lua cartridge.failover_promote({[replicaset_uuid] = leader_uuid, ...}) ``` GraphQL: ```graphql mutation { cluster { failover_promote( replicaset_uuid: ... instance_uuid: ... ) } } ``` Close #664
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follow-up for #604 (#148): we need some API to switch leader manually.
The handler can be called from any instance in cluster. It's objective is to query active coordinator from external storage and propagate manual decision.
The text was updated successfully, but these errors were encountered: