Skip to content

Commit

Permalink
DOC-1828 rladmin cluster master reference
Browse files Browse the repository at this point in the history
  • Loading branch information
rrelledge committed Aug 22, 2023
1 parent c52b652 commit 9a0bb47
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions content/rs/references/cli-utilities/rladmin/cluster/master.md
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
```

0 comments on commit 9a0bb47

Please sign in to comment.