Dear Alireza,
1. Yes 2. Just replace --net host with your swarm network. Since you won't know IPs in advance, you can first "docker create" the containers, get their IPs with "docker inspect", and then "docker start" them once you know the IP paramaters. 3. It can't be a service, since it's a client app which runs for some predetermined amount of time. You can make the container long-term if you wish, although I don't know what the benefit would be. Start it in interactive mode (i.e. "-it") and provide "bash" as the entrypoint. Then you can run the bootstrap script from inside the container. You might need to modify it a bit if you plan to run it multiple times. Best, Ivo ________________________________ From: Amiri, Alireza <[email protected]> Sent: Friday, October 28, 2016 4:07 PM To: [email protected] Subject: [cloudsuite] Questions regarding cloudsuite deployment in a distributed environment Dear Supporter, I have been trying to deploy cloudsuite benchmark (web-serving use case) in a distributed environment using docker swarm mode ( the new swarm which is added in docker 1.12). The way for deploying the benchmark that is explained in documentation, is by using docker run. For instance, for deploying the web server this command is used: $ docker run -dt --net=host --name=web_server cloudsuite/web-serving:web_server \ /etc/bootstrap.sh ${DATABASE_SERVER_IP} ${MEMCACHED_SERVER_IP} ${MAX_PM_CHILDREN} As you can see, it has custom entry point and also some additional parameters. it is the same for other components. I have three questions regarding these situation: 1- First of all, is it reasonable and possible to deploy this benchmark in a distributed environment, especially in swarm mode? 2- Can I use services in swarm mode to deploy these containers? How am I supposed to give the entry point and parameters in the command for creating the service? 3- As I have understood so far, the services are for containers that provide long term services, like nginx or mysql server. but my last component, faban client, is not a long term thing. it just starts and sends some requests to other components and gather some results. And also I need to get those results out of this container too. Can it be also a service? Thank you for your support, Kind regards, Alireza Amiri
