You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: add a new instance with specified properties to a cluster.
Supported fields:
uri: (string)
replicaset uuid: (optional string)
zone: (optional string)
set_instance_property()
Instance modifications.
Supported fields:
uri: (optional string) Assign URI.
uuid: (string) Assign replicaset uuid, that instance belongs to.
zone: (optional string) Assign availability zone, that instance belongs to.
set_instance_state()
Update instance state.
Supported fields:
enabled: (optional boolean) Switch instance to enabled state.
disabled: (optional boolean) Switch instance to disabled state.
expelled: (optional boolean) Expelling an instance is permanent and can’t be undone.It’s suitable for situations when the hardware is destroyed,snapshots are lost and there is no hope to bring it back to life.
set_replicaset_property()
Replicaset modifications.
Supported fields:
uuid: (string) The replicaset UUID.
roles: ({string,…}) Roles enabled on the replicaset.
status: (string) Replicaset health.
master: (ServerInfo) Replicaset leader according to configuration.
active_master: (ServerInfo) Active leader.
weight: (number) Vshard replicaset weight.Matters only if vshard-storage role is enabled.
vshard_group: (string) Name of vshard group the replicaset belongs to.
all_rw: (boolean) A flag indicating that all servers in the replicaset should be read-write.
alias: (string) Human-readable replicaset name.
get_topology()
Returns a structure with predefined format that contains all objects in topology with every assigned parameters values.
Right now it is implemented minimal topology version that allows to create a topology in configuration storage using configuration provider and bootstrap vshard with that topology. More features will follow later.
Implement a service to store a cluster topology. Details TBD.
Proposal - #5793
Depends on #5681
Proposed API (early draft):
add_instance()
Description: add a new instance with specified properties to a cluster.
Supported fields:
set_instance_property()
Instance modifications.
Supported fields:
set_instance_state()
Update instance state.
Supported fields:
set_replicaset_property()
Replicaset modifications.
Supported fields:
get_topology()
Returns a structure with predefined format that contains all objects in topology with every assigned parameters values.
Topology API used in Cartridge:
The text was updated successfully, but these errors were encountered: