|
META TOPICPARENT |
name="CloudSuite" |
-- HamidMoghaddam - 18 May 2016 |
|
- add DOCKER_OPTS="-H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375 \ --cluster-store consul://10.0.100.62:8500 \ --cluster-advertise eth0:2375" to /etc/default/docker(in this link
they wrote step 6 completly wrong and take one day to figure out what happens.)
- sudo service docker restart
- docker run -d -p 8500:8500 --hostname 10.0.100.62 --name consul-store progrium/consul -server -bootstrap (again in the swarm installation guide by CloudSuite, they made this line mistake and consumed a lot of time to solve it)
|
|
< < |
- docker run -d --name swarm-agent swarm join --advertise=10.0.100.62 :2375 consul://10.0.100.62:8500 (again CloudSuite team writed this line wrongly. Now I am not surprised why CloudSuite is such a confusing software)
|
> > |
- docker run -d --name swarm-agent swarm join --advertise=10.0.100.62 :2375 consul://10.0.100.62:8500 (again CloudSuite team writed this line wrongly. )
|
|
- repeat step 2,3,4,6,7,9 on every VMs but just in step 9 replace --advertise IP address with each VM IP address.
- docker -H tcp://10.0.100.62:22222 network create --driver overlay swarm-network
Frontend |
|
Step 3 in client section runs benchmark but I can not change running time of benchmarking so I would like have faban client web page so I do following steps:
- docker -H tcp://10.0.100.62:22222 run -it --entrypoint=/bin/bash -e constraint:node==cs-v3-web-memcached-x64 --net=swarm-network --name=faban_client cloudsuite/web-serving:faban_client
|
|
< < |
- after login to client docker I run faban faban/master/bin/startup.sh
-
|
> > |
- If not loggined automatically then login to faban client by docker -H tcp://10.0.100.62:22222 attach faban_client
- I run faban faban/master/bin/startup.sh
- Then cd /home/web20_benchmark/build
|
|
- java -jar Usergen.jar https://web_server:8080
- now I can see faban client web page however increasing steady time in it make "java.lang.Exception: Driver failed to complete benchmark run" error some people said it happened because of Openjdk 7 so I should switch to Oracle Java in client docker
- add-apt-repository ppa:webupd8team/java made "add-apt-repository: command not found" error so I used apt-get install software-properties-common python-software-properties
|