mirror of
https://github.com/newnius/YAO-docs.git
synced 2024-07-06 05:15:18 +00:00
1.5 KiB
1.5 KiB
Steps to bring up the YAO components
Install docker
curl -fsSL https://get.docker.com | sh
Install nvidia driver
Install Nvidia-docker
Read NVIDIA/nvidia-docker for guidance.
Set default runtime to nvidia, see Default runtime.
Init a docker swarm cluster
# 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
docker network create --driver overlay --attachable yao-net
# docker network create --driver overlay --attachable --opt encrypted yao-net
Note: try remove encrypted when the containers cannot communicate cross nodes
Start HDFS cluster (Optional)
sbin/run_hdfs.sh
Start GlusterFS cluster (Optional)
sbin/start_glusterfs.sh
Start the agents in each YAO-Worker
sbin/run_agent_helper.sh
sbin/run_agent.sh
Start the agent-master on YAO-Master
sbin/start_agent_master.sh
Start mysql
sbin/start_mysql.sh
Start yao-optimizer on Master Node
sbin/run_optimizer.sh
Start yao-scheduler
sbin/start_scheduler.sh
Start Redis
sbin/start_redis.sh
Start the web portal
sbin/start_portal.sh
Install
Visit http://YOUR_IP/install.php