Skip to content

Commit d34f2cd

Browse files
authored
fix(stac-db): Report shared buffers in 8kb units
1 parent 22cbbd3 commit d34f2cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/database/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class PgStacDatabase extends Construct {
8686

8787
return {
8888
maxConnections: `${maxConnections}`,
89-
sharedBuffers: `${sharedBuffers}`,
89+
sharedBuffers: `${sharedBuffers / 8}`,
9090
effectiveCacheSize: `${effectiveCacheSize}`,
9191
workMem: `${workMem}`,
9292
maintenanceWorkMem: `${maintenanceWorkMem}`,
@@ -112,6 +112,8 @@ export interface DatabaseParameters {
112112
readonly maxConnections: string;
113113

114114
/**
115+
* Note, should be represented in units of 8KB
116+
*
115117
* @default - 25% of instance memory
116118
*/
117119
readonly sharedBuffers: string;

0 commit comments

Comments
 (0)