Comments (6)
If it works as expected, Bamboo should handle those heavy repetitive events firing by Marathon.
Bamboo checks HAProxy configuration changes and only executes reload when necessary. In logs, you will see something like changes detected or no change.
Marathon triggers change event event when task state has no change. This is a known bug, as for as I know , they might plan a release at 0.7.1
On 26 Sep 2014, at 03:39, Dan Everton [email protected] wrote:
Using Mesos 0.20.1 and Marathon 0.7.0 I commonly see multiple HAProxy instances after a deployment event. It looks like Marathon doesn't batch events so Bamboo ends up restarting HAProxy multiple times in rapid succession. This leads to HAProxy not being able properly reload and thus multiple instances.
—
Reply to this email directly or view it on GitHub.
from bamboo.
Are you on bamboo version 0.2.2?
from bamboo.
Bamboo is logging that a change has occurred. Those changes just happen to be milliseconds apart. I don't have the logs right now but I'll add them when I can. I'm using 0.22 of Bamboo.
from bamboo.
Sorry, some more details. This seems to be happening because I'm experimenting with scaling an application group up and down a lot so there's quite a few events happening.
from bamboo.
I understand the issue now. We need to add reload delay or debounce on heavy reload events when scaling up/down happening too frequently.
from bamboo.
I think the correct behaviour here would be:
PIDS=$(cat /var/run/haproxy.pid)
haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf $PIDS
while ps -p $PIDS; do
sleep 1
done
Of course, properly implemented in the go code around the current exec.Command line.
from bamboo.
Related Issues (20)
- Support Ip per container HOT 2
- How to support the dynamic ip and port for web container by bamboo HOT 2
- Docker images not building deb packages HOT 3
- Getting 503 when restarting application HOT 5
- Event streaming API messages not handled correctly
- The latest version of mesos and marathon are supported ? HOT 2
- Mesos/Marathon integration test Container
- Document httpclose HOT 1
- 8125 port write: connection refused HOT 2
- Failed to update HAProxy configuration HOT 1
- how can i access my app
- How about metrics? HOT 2
- Enable support for marathon task_killing state HOT 2
- Support systemd in deb package HOT 1
- Question: Per-service HAProxy templates HOT 1
- Event subscription broken when using Marathon version >=1.5.0 HOT 3
- ACL for similar service
- Does Bamboo support zookeeper authentication? HOT 5
- Docker container not reading haproxy template path HOT 1
- Should use portDefinitions instead of servicePorts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bamboo.