Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < | The new version of CloudSuite is developed on Docker files so it needs different installation than last one. The new version needs Ubuntu 14.04 so I cloned one of VM and upgraded it to 14.04. | |||||||
> > | Although the installation guide of the CloudSuite's benchmarks are provided by the Cloudsuite developers, sometimes we need to install each part of a benchmark in the different nodes. The following installation steps are used for implementing the web serving benchmark of CloudSuite on the different VMs of our cloud lab. | |||||||
Creating Swarm ManagerIn order to connect dockers which are installed on different nods we need installing Swarm. | ||||||||
Line: 10 to 10 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Frontend | ||||||||
Changed: | ||||||||
< < | I did following steps on frontend machine(Please check swarm-agent is running: docker start 'swarm-agent') | |||||||
> > | In the Frontend machine(IP:10.0.100.12) | |||||||
Changed: | ||||||||
< < | 1. docker pull cloudsuite/web-serving:web_server 2. docker -H tcp://10.0.100.62:22222 run -dt -e constraint:node==cs-v3-web-frontend-x64 --net=swarm-network --name=web_server cloudsuite/web-serving:web_server /etc/bootstrap.sh I got subnet conflict in this stage (Thanks again to CloudSuit team) After one they searching I found out creating overlay network (step 11 of swarm manager creation) should be change to docker -H tcp://10.0.100.62:22222 network create --driver overlay --subnet=172.28.0.0/16 --ip-range=172.28.5.0/24 swarm-network | |||||||
> > | 1. docker run -d --name swarm-agent swarm join --advertise=10.0.100.12:2375 consul://10.0.100.62:8500 | |||||||
Backend | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > | In the Backend machine(IP:10.0.100.2)
| |||||||
Memcache | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > | In the Memcached machine(IP:10.0.100.42)
| |||||||
Client | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > | In the Client machine(IP:10.0.100.32)
Swarm ManagerAgain in the Swarm Maganer Machine:
| |||||||
Running benchmark | ||||||||
Changed: | ||||||||
< < | 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:
| |||||||
> > | Now it for running benchmark just use following command in the swarm manager machine:
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 15 to 15 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Frontend | ||||||||
Line: 43 to 43 | ||||||||
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:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 24 to 24 | ||||||||
1. docker pull cloudsuite/web-serving:web_server | ||||||||
Changed: | ||||||||
< < | 2. docker -H tcp://10.0.100.62:22222 run -dt --net swarm-agent --name=web_server cloudsuite/web-serving:web_server /etc/bootstrap.sh I got subnet conflict in this stage (Thanks again to CloudSuit team) After one they searching I found out creating overlay network (step 11 of swarm manager creation) should be change to docker -H tcp://10.0.100.62:22222 network create --driver overlay --subnet=172.28.0.0/16 --ip-range=172.28.5.0/24 swarm-network | |||||||
> > | 2. docker -H tcp://10.0.100.62:22222 run -dt -e constraint:node==cs-v3-web-frontend-x64 --net=swarm-network --name=web_server cloudsuite/web-serving:web_server /etc/bootstrap.sh I got subnet conflict in this stage (Thanks again to CloudSuit team) After one they searching I found out creating overlay network (step 11 of swarm manager creation) should be change to docker -H tcp://10.0.100.62:22222 network create --driver overlay --subnet=172.28.0.0/16 --ip-range=172.28.5.0/24 swarm-network | |||||||
Backend
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Memcache
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Client
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
Running benchmarkStep 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:
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 13 to 13 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
FrontendI did following steps on frontend machine(Please check swarm-agent is running: docker start 'swarm-agent') 1. docker pull cloudsuite/web-serving:web_server | ||||||||
Deleted: | ||||||||
< < | 2. docker -H tcp://10.0.100.62:22222 run -dt --name=web_server cloudsuite/web-serving:web_server /etc/bootstrap.sh | |||||||
\ No newline at end of file | ||||||||
Added: | ||||||||
> > | 2. docker -H tcp://10.0.100.62:22222 run -dt --net swarm-agent --name=web_server cloudsuite/web-serving:web_server /etc/bootstrap.sh I got subnet conflict in this stage (Thanks again to CloudSuit team) After one they searching I found out creating overlay network (step 11 of swarm manager creation) should be change to docker -H tcp://10.0.100.62:22222 network create --driver overlay --subnet=172.28.0.0/16 --ip-range=172.28.5.0/24 swarm-network
Backend
Memcache
Client
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 18 to 18 | ||||||||
| ||||||||
Added: | ||||||||
> > | FrontendI did following steps on frontend machine(Please check swarm-agent is running: docker start 'swarm-agent') 1. docker pull cloudsuite/web-serving:web_server 2. docker -H tcp://10.0.100.62:22222 run -dt --name=web_server cloudsuite/web-serving:web_server /etc/bootstrap.sh |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 7 to 7 | ||||||||
In order to connect dockers which are installed on different nods we need installing Swarm. | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < | The new version of CloudSuite is developed on Docker files so it needs different installation than last one. However, because some changes in files are needed for having several web servers so I do not want to use Docker.
Creating Client | |||||||
> > | The new version of CloudSuite is developed on Docker files so it needs different installation than last one. The new version needs Ubuntu 14.04 so I cloned one of VM and upgraded it to 14.04.
Creating Swarm Manager | |||||||
Changed: | ||||||||
< < |
| |||||||
> > | In order to connect dockers which are installed on different nods we need installing Swarm.
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 8 to 8 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Deleted: | ||||||||
< < | | |||||||
| ||||||||
Deleted: | ||||||||
< < | | |||||||
\ No newline at end of file | ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < | Creating VMs | |||||||
> > | Creating Client | |||||||
| ||||||||
Deleted: | ||||||||
< < |
| |||||||
\ No newline at end of file | ||||||||
Added: | ||||||||
> > |
| |||||||
\ No newline at end of file |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < | The new version of CloudSuite is developed on Docker files so it needs different installation than last one. | |||||||
> > | The new version of CloudSuite is developed on Docker files so it needs different installation than last one. However, because some changes in files are needed for having several web servers so I do not want to use Docker. | |||||||
Creating VMs | ||||||||
Changed: | ||||||||
< < | 1. Clone 4 Vms from cs-web-frontend-x64 2. Named them cs-v3-web-memcached-x64, cs-v3-web-frontend-x64, cs-v3-web-client-x64, cs-v3-web-backend-x64 by editing their /etc/hostname 3. Assigned IP address 10.0.100.2, 10.0.100.12 , 10.0.100.32 , 10.0.100.42 to backend, frontend, client, memcached respectively by editing /etc/network/interface. 4. Edited /etc/host as item 3. | |||||||
> > |
| |||||||
\ No newline at end of file |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Creating VMs1. Clone 4 Vms from cs-web-frontend-x64 2. Named them cs-v3-web-memcached-x64, cs-v3-web-frontend-x64, cs-v3-web-client-x64, cs-v3-web-backend-x64 by editing their /etc/hostname 3. Assigned IP address 10.0.100.2, 10.0.100.12 , 10.0.100.32 , 10.0.100.42 to backend, frontend, client, memcached respectively by editing /etc/network/interface. 4. Edited /etc/host as item 3. |