make sure dataset agents are running on all nodes
sudo systemctl restart flocker-dataset-agent
Show flocker configured with scaleio
sudo vi /etc/flocker/agent.yml
Show flocker runnning
sudo systemctl status flocker-control
sudo systemctl status flocker-dataset-agent
sudo systemctl status flocker-container-agent
Show scaleio running
sudo systemctl status sds
sudo systemctl status tb
List Flocker-nodes
sudo python /home/centos/flocker-install/unofficial-flocker-tools/flocker-volumes.py list-nodes
Deploy dockercontweets app to 1 single flocker-node
sudo flocker-tutorial/bin/flocker-deploy --verbose ec2-52-26-67-23.us-west-2.compute.amazonaws.com /etc/flocker/examples/dockercontweets-1node.yml /etc/flocker/examples/dockercontweets-app.yml
List Flocker volumes
sudo python /home/centos/flocker-install/unofficial-flocker-tools/flocker-volumes.py list
Get volumes on SDC
sudo /usr/bin/emc/scaleio/drv_cfg --query_vols
Tweet #DockerCon #DockerCon #DockerCon, then re visit
(http://ec2-52-26-67-23.us-west-2.compute.amazonaws.com:8080/)
Watch docker daemon for changes
sudo watch docker ps
Migrate mongodb over to 3rd node
sudo flocker-tutorial/bin/flocker-deploy --verbose ec2-52-26-67-23.us-west-2.compute.amazonaws.com /etc/flocker/examples/dockercontweets-2node.yml /etc/flocker/examples/dockercontweets-app.yml
Remove app from all nodes (be in /etc/flocker)
sudo flocker-tutorial/bin/flocker-deploy --verbose ec2-52-26-67-23.us-west-2.compute.amazonaws.com /etc/flocker/examples/dockercontweets-0node.yml /etc/flocker/examples/dockercontweets-app.yml
Connect to mongodb from desktop
(When on first node)
mongo 52.26.67.23
(When on third node)
mongo 52.26.82.107
use example;
db.records.find({})
Watch stream log
sudo docker log -f flocker--dockercontweets-stream
Login to ScaleIO
sudo scli --login --username admin --password Scaleio123
Query cluster
sudo scli --query_all
Query volumes
sudo scli --query_all_volumes
IOPS view options
sudo scli --help --all | grep -e "limit_[i|b]"
sudo scli --set_sdc_volume_limits
Set iops
scli --set_sdc_volume_limits --volume_name <FLOCKER VOLUME NAME> --sdc_ip <SDC_IP> --limit_iops 100 --i_am_sure