-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC-1828 rladmin cluster master reference
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
content/rs/references/cli-utilities/rladmin/cluster/master.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
Title: rladmin cluster master | ||
linkTitle: master | ||
description: Identifies or changes the cluster's master node. | ||
weight: $weight | ||
alwaysopen: false | ||
toc: "true" | ||
headerRange: "[1-2]" | ||
tags: ["configured"] | ||
categories: ["RS"] | ||
aliases: | ||
--- | ||
|
||
Identifies the cluster's master node. Use `set` to change the cluster's master to a different node. | ||
|
||
```sh | ||
cluster master [ set <node_id> ] | ||
``` | ||
|
||
### Parameters | ||
|
||
| Parameter | Type/Value | Description | | ||
|-----------|------------|-------------| | ||
| node_id | integer | Unique node ID | | ||
|
||
### Returns | ||
|
||
Returns the ID of the cluster's master node. Otherwise, it returns an error message. | ||
|
||
### Example | ||
|
||
Identify the cluster's master node: | ||
|
||
```sh | ||
$ rladmin cluster master | ||
Node 1 is the cluster master node | ||
``` | ||
|
||
Change the cluster master to node 3: | ||
|
||
```sh | ||
$ rladmin cluster master set 3 | ||
Node 3 set to be the cluster master node | ||
``` |