这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/cluster_mode.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,17 @@ <h2><a class="header" href="#starting-in-cluster-mode-3-node-cluster" id="starti
<p>The above commands run servers on the same host, so each server must listen on a different port. This would not be necessary if each server runs on a different host.
Recommend 3 or more odd number of servers in the cluster to avoid split-brain.<br />
When deploying to a single host, if that host goes down due to hardware failure, all of the servers in the cluster will be stopped, so recommend deploying to a different host.</p>
<h2><a class="header" href="#remove-a-server-from-a-cluster" id="remove-a-server-from-a-cluster">Remove a server from a cluster</a></h2>
<p>If one of the servers in a cluster goes down due to a hardware failure and raft logs and metadata is lost, that server cannot join the cluster again.<br />
If you want the server to join the cluster again, you must remove it from the cluster.<br />
The following command deletes the server with <code>id=3</code> from the cluster:</p>
<pre><code class="language-shellscript">./bin/bayard leave \
--host=127.0.0.1 \
--port=5001 \
--id=3 \
--peers=&quot;1=0.0.0.0:5001,2=0.0.0.0:5002&quot; \
--leader-id=1
</code></pre>

</main>

Expand Down
11 changes: 11 additions & 0 deletions docs/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,17 @@ <h2><a class="header" href="#starting-in-cluster-mode-3-node-cluster" id="starti
<p>The above commands run servers on the same host, so each server must listen on a different port. This would not be necessary if each server runs on a different host.
Recommend 3 or more odd number of servers in the cluster to avoid split-brain.<br />
When deploying to a single host, if that host goes down due to hardware failure, all of the servers in the cluster will be stopped, so recommend deploying to a different host.</p>
<h2><a class="header" href="#remove-a-server-from-a-cluster" id="remove-a-server-from-a-cluster">Remove a server from a cluster</a></h2>
<p>If one of the servers in a cluster goes down due to a hardware failure and raft logs and metadata is lost, that server cannot join the cluster again.<br />
If you want the server to join the cluster again, you must remove it from the cluster.<br />
The following command deletes the server with <code>id=3</code> from the cluster:</p>
<pre><code class="language-shellscript">./bin/bayard leave \
--host=127.0.0.1 \
--port=5001 \
--id=3 \
--peers=&quot;1=0.0.0.0:5001,2=0.0.0.0:5002&quot; \
--leader-id=1
</code></pre>
<h1><a class="header" href="#running-on-docker" id="running-on-docker">Running on Docker</a></h1>
<p>Docker container image is available. Check the available version at the following URL:</p>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/searchindex.json

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions docs_src/cluster_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,18 @@ You can start servers in cluster mode with the following command:
The above commands run servers on the same host, so each server must listen on a different port. This would not be necessary if each server runs on a different host.
Recommend 3 or more odd number of servers in the cluster to avoid split-brain.
When deploying to a single host, if that host goes down due to hardware failure, all of the servers in the cluster will be stopped, so recommend deploying to a different host.

## Remove a server from a cluster

If one of the servers in a cluster goes down due to a hardware failure and raft logs and metadata is lost, that server cannot join the cluster again.
If you want the server to join the cluster again, you must remove it from the cluster.
The following command deletes the server with `id=3` from the cluster:

```shell script
./bin/bayard leave \
--host=127.0.0.1 \
--port=5001 \
--id=3 \
--peers="1=0.0.0.0:5001,2=0.0.0.0:5002" \
--leader-id=1
```