Stf: Could openSTF be used with Docker swarm?

Created on 5 Jul 2018  路  7Comments  路  Source: openstf/stf

Is your feature request related to a problem? Please describe.
Let's say that I have a bunch of providers running Docker. Would there be any advantage to use Docker swarm instead of different Docker machines running docker-compose (except for administrating these machines)?

Describe the solution you'd like
docker stack deploy instead of multiple docker-compose --build up.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
One or two Android devices per provider (cheap provider, not powerful).

Thanks.

Most helpful comment

@sonamoo I have only been able to implement each device as a standalone instance of openSTF but though swarmmode with services (I guess if your using standalone swarm thats a whole different can of worms) I can get a gist of what I've done so far it not that bad when you break it down. Like I mentioned the only thing that throws a wrench in things is the lack of privileged containers in swarm mode I talked with them about this and I'm not sure they're gonna get that implemented anytime soon. I've got a workaround from the docker team that I'm sure if you dug around enough you would find on their github but Ill get that in there to. Like I said this is more of a tech demo and I dont even have all the parts yet (just ordered a pico cluster) So development might be a little slow for a couple of days here.

All 7 comments

I've just started setting up openSTF and more as tech demo then a "prod" ready service for QA but the issues I've run into with docker swarm is privileged containers aren't support on docker swarm, the way around this is to make a docker image that loads the privileged images. This is all doable what I'm trying to get going is two distributed system one for the reThinkDB so thats distributed throughout the stack and then also have the stf cluster distribute throughout so the load balanced, My theory is hopefully everything should be pretty smooth if the services can use the resources of every device. I'm doing all this testing on a raspberry pi 3 B with raspberry pi 2s as the worker nodes.

Hi @mr-sour,

I was subscribing to this issue since I also want to implement openSTF on Docker Swarm. I just started to learn Docker and Docker Swarm and some sort of guide would be super helpfull. Could you please share how you implemented STF with Docker Swarm?

@sonamoo I have only been able to implement each device as a standalone instance of openSTF but though swarmmode with services (I guess if your using standalone swarm thats a whole different can of worms) I can get a gist of what I've done so far it not that bad when you break it down. Like I mentioned the only thing that throws a wrench in things is the lack of privileged containers in swarm mode I talked with them about this and I'm not sure they're gonna get that implemented anytime soon. I've got a workaround from the docker team that I'm sure if you dug around enough you would find on their github but Ill get that in there to. Like I said this is more of a tech demo and I dont even have all the parts yet (just ordered a pico cluster) So development might be a little slow for a couple of days here.

Sounds good guys. Please update the issue if you find a way :)

@mr-sour, @sorccu, Thanks! I will also be learning docker swarm and trying to implement this. I will probably do this on the weekends. I will update here when I find solutions.

After coming back from the dead, I have this mostly working except I will most likely have to split stf the various stf services into separate containers my current solution is pretty ugly as it doesn't allow hotpluging and you need to setup config files on each device before the container is deployed (kinda the thing im trying to avoid) Hopefully within the week* I will have a pretty simple pushbutton solution for running stf in a cluster thats as simple as "docker stack deploy openstf". Like I mentioned the largest issue is I need to split these containers out to the various services and units.

As for the feasibility of running on raspberry pis I have 5 3b+ for this cluster and I can get about 10 tablets running(its all I have atm) I can hit them all at once and it doesn't appear to have frame drops or any other noticeable issues. I did not need a usb hub to get this running but these devices can only do like 2.5amps each so to get past 10 tablets I will go find a bunch of mounts to charge them though a power supply instead of the usb cable to see what the limits are after I get the services all sorted out.

Thanks for the update.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

liyaoyao6342 picture liyaoyao6342  路  5Comments

ThinkerT picture ThinkerT  路  4Comments

armdev picture armdev  路  5Comments

PariKdm picture PariKdm  路  4Comments

habeebshk picture habeebshk  路  4Comments