Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker swarm #87

Merged
merged 7 commits into from
Oct 12, 2020
Merged

docker swarm #87

merged 7 commits into from
Oct 12, 2020

Conversation

Amber1990Zhang
Copy link
Contributor

No description provided.

@Amber1990Zhang Amber1990Zhang added question Type: question about the product wip Solution: work in progress and removed question Type: question about the product labels Sep 30, 2020
@Amber1990Zhang Amber1990Zhang removed the wip Solution: work in progress label Oct 9, 2020

## 集群负载均衡及高可用配置(可选)

目前,Nebula Graph 的客户端(1.X)未提供负载均衡,而是随机选一个 `graphd` 服务连接。因此生产使用时需自行配置负载均衡和高可用。文档中的负载均衡和高可用仅为示例方案,您可以根据需要添加其他的第三方方案。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

graphd 服务 ==》 Query Service?

Comment on lines +139 to +141
在 `haproxy.cfg` 文件加入以下内容:

请根据您的 IP 地址与端口号进行配置。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这两句话是啥关系?

auth_pass amber1
}
virtual_ipaddress {
# 虚拟 IP 为 192.168.1.99/24;绑定接口为 ens160;别名ens169:1,主备相同
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

别名ens169:1,==》别名 ens169:1,

@Amber1990Zhang Amber1990Zhang merged commit 58c7368 into vesoft-inc:master Oct 12, 2020

### 创建集群工作节点

根据 `docker swarm init` 命令的提示内容,创建 Swarm 集群的工作节点,在机器 `192.168.1.167`、`192.168.1.168` 上分别执行以下命令:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

根据 docker swarm init 命令的提示内容
=>
根据 docker swarm init 命令返回信息中的提示,在 Swarm 集群中添加工作节点。
(步骤下方可提供一段关于本文示例的说明,这里只是举例,技术细节请再确认下)在本文的示例中,IP为192.168.1.166的机器作为管理节点,IP为192.168.1.167和192.168.1.168的机器将被设置为工作节点,设置命令如下。


### 配置 Docker Stack

在管理节点上执行以下命令添加 Docker Stack 配置文件:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个section有几个步骤,建议加上序号以明确执行顺序(虽然几个步骤之间可能调换执行顺序也可以,但明确一种路径更好),同时也能区分步骤主题和从属于本步骤的说明文字

@Amber1990Zhang Amber1990Zhang deleted the docker-swarm branch October 20, 2020 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants