From 08bac6fb4dbdf4be622d60fc64bfcfa0cd9a3021 Mon Sep 17 00:00:00 2001 From: Benjamin Edwards Date: Tue, 14 Mar 2023 11:45:22 -0400 Subject: [PATCH] reduce connection count in dogfood and sandbox environments (#10468) relates to https://github.com/fleetdm/confidential/issues/2126 --- .../dogfood/terraform/aws-tf-module/.terraform-version | 2 +- infrastructure/dogfood/terraform/aws-tf-module/main.tf | 2 +- .../PreProvisioner/lambda/deploy_terraform/fleet/values.yaml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infrastructure/dogfood/terraform/aws-tf-module/.terraform-version b/infrastructure/dogfood/terraform/aws-tf-module/.terraform-version index a6a3a43c3a..2fe9589453 100644 --- a/infrastructure/dogfood/terraform/aws-tf-module/.terraform-version +++ b/infrastructure/dogfood/terraform/aws-tf-module/.terraform-version @@ -1 +1 @@ -1.0.4 \ No newline at end of file +1.3.9 \ No newline at end of file diff --git a/infrastructure/dogfood/terraform/aws-tf-module/main.tf b/infrastructure/dogfood/terraform/aws-tf-module/main.tf index 4be0a2f543..829ac79f15 100644 --- a/infrastructure/dogfood/terraform/aws-tf-module/main.tf +++ b/infrastructure/dogfood/terraform/aws-tf-module/main.tf @@ -38,7 +38,7 @@ locals { FLEET_LICENSE_KEY = var.fleet_license FLEET_LOGGING_DEBUG = "true" FLEET_LOGGING_JSON = "true" - FLEET_MYSQL_MAX_OPEN_CONNS = "50" + FLEET_MYSQL_MAX_OPEN_CONNS = "25" FLEET_VULNERABILITIES_DATABASES_PATH = "/home/fleet" FLEET_OSQUERY_ENABLE_ASYNC_HOST_PROCESSING = "false" } diff --git a/infrastructure/sandbox/PreProvisioner/lambda/deploy_terraform/fleet/values.yaml b/infrastructure/sandbox/PreProvisioner/lambda/deploy_terraform/fleet/values.yaml index 4a3277e9b5..db8b3fc428 100644 --- a/infrastructure/sandbox/PreProvisioner/lambda/deploy_terraform/fleet/values.yaml +++ b/infrastructure/sandbox/PreProvisioner/lambda/deploy_terraform/fleet/values.yaml @@ -149,8 +149,8 @@ mysql: # Only needed if creating secret. password: default passwordKey: mysql-password - maxOpenConns: 50 - maxIdleConns: 50 + maxOpenConns: 25 + maxIdleConns: 25 connMaxLifetime: 0 tls: enabled: false