Comments (11)
If you still encounter the issue please file an issue on HAProxy directly (https://github.com/haproxy/haproxy/issues)
"Thread X is about to kill the process" means haproxy watchdog noticed that one thread has become unresponsive and to prevent further issues the watchdog decided to abort the process.
Since you're deploying using the :latest
tag, it's very likely that you are hitting a bug or limitation which only happens on haproxy 2.9 (which was just released, see 81e9df2) and didn't show up with the previous version (2.8)
from haproxy.
If you still encounter the issue please file an issue on HAProxy directly (https://github.com/haproxy/haproxy/issues)
"Thread X is about to kill the process" means haproxy watchdog noticed that one thread has become unresponsive and to prevent further issues the watchdog decided to abort the process.
Since you're deploying using the
:latest
tag, it's very likely that you are hitting a bug or limitation which only happens on haproxy 2.9 (which was just released, see 81e9df2) and didn't show up with the previous version (2.8)
I think I've seen the same on haproxy lts but let me file a bug with upstream. Thanks
from haproxy.
Any news about this issue? Do you still encounter the crash with :latest
or :2.9.2
tag which where some high cpu usage related bugs were addressed?
Thanks
from haproxy.
This is what I added
ulimits:
nofile:
soft: 1024
hard: 4096
from haproxy.
Does it instantly ramp up to 200GB of used memory or is it slowing getting there, which would suggest a leak somewhere?
In the first case, maybe this is not related to haproxy itself but to docker engine update (which removed or increased an existing limit), see haproxy/haproxy#2043. If that's the case, you could also mitigate using
maxconn
orfd-hard-limit
global parameters in haproxy config file.
It looks like this ended up working. I removed the ulimits
settings in docker-compose.yml
and replaced it with maxconn 60000
in haproxy.cfg and now theres no more high memory utlization and crashing. Then for the other issue having upgraded to 2.9.2 seems to have fixed the high CPU utilization.
from haproxy.
Can we close this as solved?
from haproxy.
For reference, I've managed to get a copy of my haproxy config running with the nixos haproxy service, so the issue is isolated to docker.
from haproxy.
Hi, I've upgraded to the latest version and will get back in a few hours. I did discover though that the original issue I was having that was causing these logs is some memory/FD bug. If I dont add a nofile limit to the container it was just consuming like 200GB of memory and then crashing (this is on a server with ~256GB of memory available).
from haproxy.
Does it instantly ramp up to 200GB of used memory or is it slowing getting there, which would suggest a leak somewhere?
In the first case, maybe this is not related to haproxy itself but to docker engine update (which removed or increased an existing limit), see haproxy/haproxy#2043. If that's the case, you could also mitigate using maxconn
or fd-hard-limit
global parameters in haproxy config file.
from haproxy.
Does it instantly ramp up to 200GB of used memory or is it slowing getting there, which would suggest a leak somewhere?
In the first case, maybe this is not related to haproxy itself but to docker engine update (which removed or increased an existing limit), see haproxy/haproxy#2043. If that's the case, you could also mitigate using
maxconn
orfd-hard-limit
global parameters in haproxy config file.
It was happening over the span of like a minute or two. I can probably time it and get back. I'll check out those two settings and see if they help.
Regarding the CPU utilization issue, I did the upgrade last night and 12 hours in we're at 0.6% CPU so I think that one might have worked.
from haproxy.
Great news, thanks for sharing your positive results with us.
from haproxy.
Related Issues (20)
- I'm using this: HOT 2
- Release haproxy image with lua version >= 5.4.2 HOT 2
- High CPU usage with 2.6.3 (latest) docker image HOT 4
- Cannot open configuration file /usr/local/etc/haproxy/haproxy.cfg: No such file or directory HOT 6
- Memory exhaustion using haproxy image HOT 3
- OOM killed using haproxy image HOT 5
- core dumps not being stored HOT 7
- Use /var/run/docker.sock as backend server HOT 2
- Why build from source code? HOT 2
- [ALERT] (1) : [haproxy.main()] Cannot create pidfile /var/run/haproxy.pid HOT 2
- If you have a new enough kernel (`4.11`), then adding `--sysctl net.ipv4.ip_unprivileged_port_start=0` to the `docker run` should allow it to use "privileged" ports (https://github.com/moby/moby/issues/8460). HOT 1
- CVE-2023-25725 HOT 6
- How to deal with "Failed to drop supplementary groups"? HOT 2
- Vulnerable component detection issue HOT 3
- "ltime" converter does not reflect container timezone HOT 4
- Haproxy not reloading config in docker HOT 1
- Crtitical/high vulnerabilities in all haproxy:bullseye images HOT 3
- Images contain `*-dev` packages that are used to build HAProxy but which are useless at runtime
- Use multi-stage build HOT 1
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 haproxy.