We've been running bamboo 0.2.12 against marathon 0.7.5 happily for months, but today our haproxies have been reloading every minute or so - although the state of marathon is not changing.
Did some investigation (diffing haproxy.cfg, marathon and bamboo state URLs) it seems the order of tasks returned by http://our-marathon:8080/v2/tasks is changing - for reasons I can't understand.
This causes the generated haproxy.cfg to differ enough for bamboo to reload configuration.
our haproxy template is here: https://gist.github.com/rasputnik/3c4a846b5aedcef6ea02
Is there any way for me to sort the tasks (in the ' {{ range $page, $task := .Tasks }}' block) using bamboos templating?
Or am I going to have to patch our bamboo to ensure these tasks remain in order?
该提问来源于开源项目:QubitProducts/bamboo