You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently testing the module (and maybe overlooking something obvious) but there does not appear to be a way to manage the HAProxy 'cache' section.
Use Case
The 'cache' section is a main configuration option for haproxy. It should be managed explicitly.
The following works OK, but the indentation is wrong in haproxy.cfg. An alternative would be to adjust the 'custom_fragment' to eliminate the extra tab.
global
chroot /var/lib/haproxy
daemon
group haproxy
log 127.0.0.1:514 local0
...
defaults
log global
...
stats enable
# Note the indentation here. This is accepted by haproxy, but is not the standard formatting
cache mycache
total-max-size 4095
max-object-size 10000
max-age 30
listen ...
...
I am currently testing the module (and maybe overlooking something obvious) but there does not appear to be a way to manage the HAProxy 'cache' section.
Use Case
The 'cache' section is a main configuration option for haproxy. It should be managed explicitly.
Describe the Solution You Would Like
Describe Alternatives You've Considered
The following works OK, but the indentation is wrong in haproxy.cfg. An alternative would be to adjust the 'custom_fragment' to eliminate the extra tab.
The above produces haproxy.cfg:
Additional Context
https://www.haproxy.com/blog/accelerate-your-apis-by-using-the-haproxy-cache
The text was updated successfully, but these errors were encountered: