Skip to content

Commit

Permalink
update tikv version to 6.5.0 (#1624)
Browse files Browse the repository at this point in the history
  • Loading branch information
bxq2011hust committed Feb 8, 2023
1 parent b7c4ed0 commit f2f1199
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions 3.x/zh_CN/docs/tutorial/max/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Max版FISCO BCOS节点采用分布式存储TiKV,执行模块独立成服务,

本章通过单机搭建Max版本单节点FISCO BCOS联盟链,帮助用户掌握Max版本FISCO BCOS区块链的部署流程。请参考[这里](../../quick_start/hardware_requirements.md)使用支持的**硬件和平台**进行操作。


```eval_rst
.. note::
- Max版本FISCO BCOS使用 ``BcosBuilder/max`` 工具进行建链和扩容等相关操作,该工具的介绍请参考 `BcosBuilder <./max_builder.html>`_
Expand Down Expand Up @@ -62,35 +61,42 @@ curl -#LO https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/FISCO-BCOS/FISCO-
# 安装构建工具依赖包
cd BcosBuilder && pip3 install -r requirements.txt
```

## 3. 安装、启动并配置tars服务

**tars服务的安装、启动和配置请参考[这里](../pro/installation.html#id2).**

## 4. 部署TiKV

## 4. 部署TiKV集群
```eval_rst
.. note::
- 此处为展示方便,使用TiUP playground启动TiKV节点,playground仅用于测试环境,生产环境请参考TiKV官方文档部署集群
- 建议修改TiKV的`coprocessor.region-split-size`为256MB,修改`coprocessor.enable-region-bucket`为`true`,以降低提交交易和收据时的耗时
- 建议修改TiKV的`raftstore.raft-entry-max-size`为64MB,以避免可能碰到的raft entry超出限制问题
- 建议开启TiKV的压缩功能,以降低磁盘占用
```

**下载和安装tiup**

```bash
$ curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
```

**启动tikv v5.4.3**
**启动tikv v6.5.0**

```bash
# 部署并启动tikv(这里设机器的物理ip为172.25.0.3)
$ nohup tiup playground v5.4.3 --mode tikv-slim --host=172.25.0.3 -T tikv_demo --without-monitor > ~/tikv.log 2>&1 &
$ nohup tiup playground v6.5.0 --mode tikv-slim --host=172.25.0.3 -T tikv_demo --without-monitor > ~/tikv.log 2>&1 &
# 获取tikv监听端口(tikv的默认监听端口是2379)
$ cat ~/tikv.log
tiup is checking updates for component playground ...timeout!
Starting component `playground`: /home/fisco/.tiup/components/playground/v1.9.4/tiup-playground v5.4.3 --mode tikv-slim --host=172.25.0.3 -T tikv_demo --without-monitor
Starting component `playground`: /home/fisco/.tiup/components/playground/v1.9.4/tiup-playground v6.5.0 --mode tikv-slim --host=172.25.0.3 -T tikv_demo --without-monitor
Playground Bootstrapping...
Start pd instance:v5.4.3
Start tikv instance:v5.4.3
Start pd instance:v6.5.0
Start tikv instance:v6.5.0
PD client endpoints: [172.25.0.3:2379]
```


## 5. 部署Max版本区块链系统

Max版本FISCO BCOS包括RPC服务、Gateway服务、区块链节点服务`BcosMaxNodeService`以及区块链执行服务`BcosExecutorService`:
Expand Down

0 comments on commit f2f1199

Please sign in to comment.