Closed CptJason closed 9 years ago
One thing I'm noticing is that Bamboo apparently produces i/o timeout errors for the Zookeeper connections. Are you sure the networking is working properly? Can you docker exec
into the container and verify that telneting to the ZK port on your host machine works?
I had the same issue. What I did for a workaround is to click on update ACL rules (WEB UI) which forced the update of the configuration. However, yes , you're right, bamboo does not update entries dynamically as you scale (as does Consul + Registrator + HAProxy)
@timoreimann I am sure that Zookeeper Cluster works fine. The connect to zookeeper from container is ok.
@akamalov I had the same issue.
We made marathon have a correct http_endpoints option, when it started. And then, the problem gone.
java -Djava.library.path=/usr/local/lib:/usr/lib:/usr/lib64 -Djava.util.logging.SimpleFormatter.format=%2$s%5$s%6$s%n -Xmx512m -cp /usr/bin/marathon mesosphere.marathon.Main --zk zk://ip:2181,ip1:2181,ip2:2181/marathon --master zk://ip:2181,ip1:2181,ip2:2181/mesos --hostname ip --event_subscriber http_callback --http_endpoints http://bambooip:8000/api/services
Great.
I have buit an image named bamboo:v1. with the Dockerfile from github website(https://github.com/QubitProducts/bamboo/blob/master/Dockerfile) .
I setup the network mode to HOST MODE, so that I could directly to use the IP address of this physical host. The following command was to start bamboo: docker run --net=host -t -i --rm -v /home/wowotuan/config/haproxy_template.cfg:/opt/go/src/github.com/QubitProducts/bamboo/config/haproxy_template.cfg -e MARATHON_ENDPOINT=http://ip:8080,http://ip1:8080,http://ip2:8080 -e BAMBOO_ENDPOINT=http://0.0.0.0:8000 -e BAMBOO_ZK_HOST=ip:2181,ip1:2181,ip2:2181 -e BAMBOO_ZK_PATH=/bamboo -e BIND=":8000" -e CONFIG_PATH="config/production.example.json" -e BAMBOO_DOCKER_AUTO_HOST=true bamboo:v1
Once I started bamboo, all of the docker apps on the marathon could be updated into the configure file of haproxy. After that, I tried using different template files of haproxy to test the functionality of bamboo respectively , one was from bamboo github website, the other was made by myself, but All failed. The configure file of haproxy wouldn't be updated in purpose, when I scaled the app or newed an app on marathon administrative website.
The following section was configure template file of haproxy made by myself.
The following setion was running log of bamboo: