No way to increase haproxy maxconn
Bug #1866036 reported by
Junien F
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Content Cache Charm |
Fix Released
|
High
|
Haw Loeung |
Bug Description
Hi,
There currently is no way to increase global or defaults maxconn, so we're stuck at 2000.
I wonder if this should be a config option (same value for both), 2 config options (1 for each), or if we should do some "clever" computation from the nginx worker_connections & worker_processes.
Thanks
Related branches
~hloeung/content-cache-charm:haproxy-config
- Stuart Bishop (community): Approve
- Content Cache Charmers: Pending requested
-
Diff: 665 lines (+295/-49)10 files modifiedconfig.yaml (+3/-3)
lib/haproxy.py (+12/-10)
reactive/content_cache.py (+1/-3)
templates/haproxy_cfg.tmpl (+3/-1)
tests/unit/files/content_cache_rendered_haproxy_test_output.txt (+2/-14)
tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt (+246/-0)
tests/unit/files/haproxy_config_rendered_listen_stanzas_test_output.txt (+0/-3)
tests/unit/files/haproxy_config_rendered_test_output.txt (+2/-4)
tests/unit/test_content_cache.py (+24/-9)
tests/unit/test_haproxy.py (+2/-2)
~hloeung/content-cache-charm:haproxy-config
- Joel Sing (community): Approve (+1)
- Canonical IS Reviewers: Pending requested
-
Diff: 338 lines (+49/-10)9 files modifiedconfig.yaml (+6/-0)
lib/haproxy.py (+5/-2)
reactive/content_cache.py (+3/-1)
templates/haproxy_cfg.tmpl (+1/-0)
tests/unit/files/content_cache_rendered_haproxy_test_output.txt (+14/-0)
tests/unit/files/haproxy_config_rendered_listen_stanzas_test_output.txt (+3/-0)
tests/unit/files/haproxy_config_rendered_test_output.txt (+4/-0)
tests/unit/test_content_cache.py (+11/-5)
tests/unit/test_haproxy.py (+2/-2)
Changed in content-cache-charm: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in content-cache-charm: | |
assignee: | nobody → Haw Loeung (hloeung) |
Changed in content-cache-charm: | |
status: | Triaged → In Progress |
Changed in content-cache-charm: | |
status: | In Progress → Fix Committed |
Changed in content-cache-charm: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Landed a change to expose configuring HAProxy's maxconns. Also bumped it from the Ubuntu default of 2000 to 8192.
Will work on changes to auto calculate this (likely based on nbthreads/CPU cores or something else).