From a014f6b3a2be29a866d92f53f559cae3fc82975a Mon Sep 17 00:00:00 2001 From: Sean Rankine Date: Mon, 22 Jul 2024 13:32:28 +0100 Subject: [PATCH] Reduce rate limit to 100 We introducted rate limiting at 500 req/s as a canary to ensure that we didn't effect anything. This lowers the rate limit to a threshold that's more protective. --- modules/assets/main.tf | 2 +- modules/bouncer/main.tf | 2 +- modules/datagovuk/main.tf | 2 +- modules/www/main.tf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/assets/main.tf b/modules/assets/main.tf index 15d6db9..9f99ea7 100644 --- a/modules/assets/main.tf +++ b/modules/assets/main.tf @@ -97,7 +97,7 @@ resource "fastly_service_vcl" "service" { rate_limiter { name = "rate_limiter_assets_${local.template_values["environment"]}" - rps_limit = 500 + rps_limit = 100 window_size = 10 penalty_box_duration = 5 diff --git a/modules/bouncer/main.tf b/modules/bouncer/main.tf index b034300..4738c8c 100644 --- a/modules/bouncer/main.tf +++ b/modules/bouncer/main.tf @@ -35,7 +35,7 @@ resource "fastly_service_vcl" "service" { rate_limiter { name = "rate_limiter_bouncer" - rps_limit = 500 + rps_limit = 100 window_size = 10 penalty_box_duration = 5 diff --git a/modules/datagovuk/main.tf b/modules/datagovuk/main.tf index 42b85ca..873231f 100644 --- a/modules/datagovuk/main.tf +++ b/modules/datagovuk/main.tf @@ -114,7 +114,7 @@ resource "fastly_service_vcl" "service" { rate_limiter { name = "rate_limiter_dgu_${local.template_values["environment"]}" - rps_limit = 500 + rps_limit = 100 window_size = 10 penalty_box_duration = 5 diff --git a/modules/www/main.tf b/modules/www/main.tf index 67d8473..cabeb56 100644 --- a/modules/www/main.tf +++ b/modules/www/main.tf @@ -115,7 +115,7 @@ resource "fastly_service_vcl" "service" { rate_limiter { name = "rate_limiter_www_${local.template_values["environment"]}" - rps_limit = 500 + rps_limit = 100 window_size = 10 penalty_box_duration = 5