You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on swarm manager only. I am running the same powerstrip-slowreq examplt given in the docs. Here are my containers:
vagrant@vagrant-ubuntu-vivid-64:~$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f1a74df8f0da clusterhq/powerstrip:v0.0.1 "twistd -noy powerst 43 minutes ago Up 43 minutes 0.0.0.0:2375->2375/tcp powerstrip
01493e977cb1 clusterhq/powerstrip-slowreq:v0.0.1 "python slowreq.py" About an hour ago Up About an hour 80/tcp powerstrip-slowreq
a09109652193 swarm "/swarm manage token About an hour ago Up About an hour 0.0.0.0:9000->2375/tcp desperate_rosalind
It works fine if I am running the docker that is on swarm master node i.e. not the cluster one. In that case I can see the delay of a minute. My question is how do I propagate that to the cluster? According to the example in the docs, I am supposed to use this:
$ time DOCKER_HOST=localhost:2375 docker -H tcp://0.0.0.0:9000 run ubuntu echo hello
But this is not working for obvious reasons as there are two Docker host addresses. Is there any other way to approach this problem? TIA
The text was updated successfully, but these errors were encountered:
Hi @lukemarsden, I am just trying to see if it is possible to to extend swarm-api as we are doing with docker-api using powerstrip. Let's say in this specific example, I want to put some delay before the API reaches swarm-daemon, so that I can give user a chance to cancel.
I am just trying to understand why powerstrip can't be used in this configuration? Or how can I extend it to swarm? Or the only way to do it is to use this configuration:
Hi all,
I have been trying to run powerstrip with a swarm setup. I have one master and one node only. What I want to achieve is:
Though I just have the node 1. So, I created the cluster and then ran
on swarm manager only. I am running the same powerstrip-slowreq examplt given in the docs. Here are my containers:
It works fine if I am running the docker that is on swarm master node i.e. not the cluster one. In that case I can see the delay of a minute. My question is how do I propagate that to the cluster? According to the example in the docs, I am supposed to use this:
But this is not working for obvious reasons as there are two Docker host addresses. Is there any other way to approach this problem? TIA
The text was updated successfully, but these errors were encountered: