nightingale1/docs/m3db-install.md

51 lines
862 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 安装 M3dbETCD
下载安装包 [m3db-install.tar.gz](https://s3-gz01.didistatic.com/n9e-pub/tarball/m3db-install.tar.gz) 
## 配置
#### etcd证书
```shell
# 修改 ./etcd/certs/config/hosts-etcd
# 填写etcd的机器列表
# 生成证书
cd etcd/certs
./reinit-root-ca.sh
./update-etcd-client-certs.sh
./update-etcd-server-certs.sh
```
#### m3db 配置
```shell
# 修改 ./m3db/etc/m3dbnode.yml
db:
config:
service:
etcdClusters:
- zone: embedded
endpoints:
- 10.255.0.146:2379 # 这里需要修改 etcd 节点信息
- 10.255.0.129:2379
```
## 安装部署
```shell
. ./functions.sh
# 设置安装的机器节点,
hosts="{node1} {node2} {node3}"
# 设置好ssh Public key认证后设置 publick key 用户名
user="dc2-user"
# 同步文件
sync
# 安装
install
# 检查
status
```