From 1064c7f46549781d596509bd6129667a7d3f802f Mon Sep 17 00:00:00 2001 From: hrodmn Date: Mon, 9 Dec 2024 11:57:58 -0600 Subject: [PATCH] fix: update units for effectiveCacheSize and tempBuffers These parameters need to be described in number of 8kb blocks https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.Parameters.html --- lib/database/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/database/index.ts b/lib/database/index.ts index 94f7267..18d6444 100644 --- a/lib/database/index.ts +++ b/lib/database/index.ts @@ -159,11 +159,11 @@ export class PgStacDatabase extends Construct { return { maxConnections: `${maxConnections}`, sharedBuffers: `${sharedBuffers / 8}`, // Represented in 8kb blocks - effectiveCacheSize: `${effectiveCacheSize}`, + effectiveCacheSize: `${effectiveCacheSize / 8}`, // Represented in 8kb blocks workMem: `${workMem}`, maintenanceWorkMem: `${maintenanceWorkMem}`, maxLocksPerTransaction: "1024", - tempBuffers: `${tempBuffers}`, + tempBuffers: `${tempBuffers / 8}`, // Represented in 8kb blocks seqPageCost: `${seqPageCost}`, randomPageCost: `${randomPageCost}`, };