Skip to content

Commit

Permalink
README Update: add introduce of MetaNode-configuration in README and …
Browse files Browse the repository at this point in the history
…doc.

Signed-off-by: xuxihao <[email protected]>
  • Loading branch information
xuxihao1 committed Mar 5, 2020
1 parent ebd60eb commit b6fc968
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@ $ tree -L 2

Set parameters of the ChubaoFS cluster in `iplist`.

1. Set IP addresses in `[master]`, `[datanode]`, `[metanode]`, `[monitor]`, `[client]` field;
1. `[master]`, `[datanode]`, `[metanode]`, `[monitor]`, `[client]` modules define IP addresses of each role.

2. Set `datanode_disks` in `#datanode config` field. Make sure the path exists on each DataNode and has at least 30GB of space.
2. `#datanode config` module defines parameters of DataNodes. `datanode_disks` defines `path` and `reserved space` separated by ":". The `path` is where the data store in, so make sure it exists and has at least 30GB of space; `reserved space` is the minimum free space(Bytes) reserved for the path.

3. Unify the username and password of each node, and set the username and password in `[cfs:vars]` field.
3. `[cfs:vars]` module defines parameters for SSH connection. So make sure the port, username and password for SSH connection is unified before start.

4. `#metanode config` module defines parameters of MetaNodes. `metanode_totalMem` defines the maximum memory(Bytes) can be use by MetaNode process.

```yaml
[master]
Expand All @@ -104,14 +106,20 @@ Set parameters of the ChubaoFS cluster in `iplist`.
[cfs:vars]
ansible_ssh_port=22
ansible_ssh_user=root
ansible_ssh_pass="uu"
ansible_ssh_pass="password"
...
#datanode config
...
datanode_disks = '"/data0:10737418240","/data1:10737418240"'
...
#metanode config
...
metanode_totalMem = "28589934592"
...
```

For more configurations please refer to [documentation](https://chubaofs.readthedocs.io/en/latest/user-guide/master.html).

Start the resources of ChubaoFS cluster with script `install.sh`. (make sure the Master is started first)

```
Expand Down
14 changes: 11 additions & 3 deletions docs/source/user-guide/yum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ Yum tools to run a ChubaoFS cluster for CentOS 7+ is provided. The list of RPM p
Set parameters of the ChubaoFS cluster in **iplist**.

- Set IP addresses in **[master]**, **[datanode]** , **[metanode]** , **[monitor]** , **[client]** field;
- **[master]**, **[datanode]** , **[metanode]** , **[monitor]** , **[client]** modules define IP addresses of each role.

- Set **datanode_disks** in **#datanode config** field. Make sure the path exists on each DataNode and has at least 30GB of space.
- **#datanode config** module defines parameters of DataNodes. **datanode_disks** defines **path** and **reserved space** separated by ":". The **path** is where the data store in, so make sure it exists and has at least 30GB of space; **reserved space** is the minimum free space(Bytes) reserved for the path.

- Unify the username and password of each node, and set the username and password in **[cfs:vars]** field.
- **[cfs:vars]** module defines parameters for SSH connection. So make sure the port, username and password for SSH connection is unified before start.

- **#metanode config** module defines parameters of MetaNodes. **metanode_totalMem** defines the maximum memory(Bytes) can be use by MetaNode process.

.. code-block:: yaml
Expand All @@ -46,6 +48,12 @@ Set parameters of the ChubaoFS cluster in **iplist**.
...
datanode_disks = '"/data0:10737418240","/data1:10737418240"'
...
#metanode config
...
metanode_totalMem = "28589934592"
...
For more configurations, please refer to :doc:`master`; :doc:`metanode`; :doc:`datanode`; :doc:`client`; :doc:`monitor`.

Start the resources of ChubaoFS cluster with script **install.sh** . (make sure the Master is started first)

Expand Down

0 comments on commit b6fc968

Please sign in to comment.