1
0
mirror of https://github.com/newnius/YAO-docs.git synced 2024-07-06 05:15:18 +00:00
YAO-docs/setup.md

91 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2019-04-29 13:09:57 +00:00
# Steps to bring up the YAO components
## Install docker
```bash
curl -fsSL https://get.docker.com | sh
```
## Install nvidia driver
## Install Nvidia-docker
Read [NVIDIA/nvidia-docker](https://github.com/NVIDIA/nvidia-docker) for guidance.
Set default runtime to nvidia, see [Default runtime](https://github.com/NVIDIA/nvidia-docker/wiki/Advanced-topics#default-runtime).
## Init a docker swarm cluster
```bash
# on master node
docker swarm init
# Add other nodes to the cluster
docker swarm join --token A-LONG-TOKEN-STRING-HERE 192.168.0.1:2377
```
## Create an overlay network named `yao`
```bash
2020-07-08 13:26:46 +00:00
docker network create --driver overlay --attachable yao-net
# docker network create --driver overlay --attachable --opt encrypted yao-net
2019-04-29 13:09:57 +00:00
```
2020-07-01 12:18:05 +00:00
*Note: try remove encrypted when the containers cannot communicate cross nodes*
2019-04-29 13:09:57 +00:00
2020-07-08 13:26:46 +00:00
## Start HDFS cluster (Optional)
2020-05-04 07:28:56 +00:00
```bash
sbin/run_hdfs.sh
```
2019-04-29 13:09:57 +00:00
2020-07-08 13:26:46 +00:00
## Start GlusterFS cluster (Optional)
2019-04-29 13:09:57 +00:00
```bash
2020-07-08 13:26:46 +00:00
sbin/start_glusterfs.sh
2019-04-29 13:09:57 +00:00
```
2019-12-04 12:29:53 +00:00
## Start the agents in each YAO-Worker
2019-04-29 13:09:57 +00:00
```bash
2019-12-04 12:29:53 +00:00
sbin/run_agent_helper.sh
sbin/run_agent.sh
2019-04-29 13:09:57 +00:00
```
2020-05-04 07:28:56 +00:00
## Start the agent-master on YAO-Master
```bash
sbin/start_agent_master.sh
```
2019-04-29 13:09:57 +00:00
## Start mysql
```bash
sbin/start_mysql.sh
```
2020-05-02 13:39:14 +00:00
## Start yao-optimizer on Master Node
```bash
sbin/run_optimizer.sh
```
2019-04-29 13:09:57 +00:00
## Start yao-scheduler
```bash
sbin/start_scheduler.sh
```
## Start Redis
```bash
sbin/start_redis.sh
```
## Start the web portal
```bash
sbin/start_portal.sh
```
## Install
Visit `http://YOUR_IP/install.php`