Skip to content

Commit

Permalink
feat: Set stick tables to type ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
a18e committed Mar 18, 2024
1 parent 66ba663 commit 367aab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jobs/haproxy/templates/haproxy.config.erb
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,12 @@ resolvers default

<% if_p("ha_proxy.requests_rate_limit.table_size", "ha_proxy.requests_rate_limit.window_size") do |table_size, window_size| %>
backend st_http_req_rate
stick-table type ip size <%= table_size %> expire <%= window_size %> store http_req_rate(<%= window_size %>)
stick-table type ipv6 size <%= table_size %> expire <%= window_size %> store http_req_rate(<%= window_size %>)
<% end %>

<% if_p("ha_proxy.connections_rate_limit.table_size", "ha_proxy.connections_rate_limit.window_size") do |table_size, window_size| %>
backend st_tcp_conn_rate
stick-table type ip size <%= table_size %> expire <%= window_size %> store conn_rate(<%= window_size %>)
stick-table type ipv6 size <%= table_size %> expire <%= window_size %> store conn_rate(<%= window_size %>)
<% end %>

<% unless p("ha_proxy.disable_http") -%>
Expand Down

0 comments on commit 367aab3

Please sign in to comment.