Skip to content

Commit

Permalink
fix(stac-db): Report shared buffers in 8kb units
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach authored Nov 4, 2022
1 parent 22cbbd3 commit d34f2cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class PgStacDatabase extends Construct {

return {
maxConnections: `${maxConnections}`,
sharedBuffers: `${sharedBuffers}`,
sharedBuffers: `${sharedBuffers / 8}`,
effectiveCacheSize: `${effectiveCacheSize}`,
workMem: `${workMem}`,
maintenanceWorkMem: `${maintenanceWorkMem}`,
Expand All @@ -112,6 +112,8 @@ export interface DatabaseParameters {
readonly maxConnections: string;

/**
* Note, should be represented in units of 8KB
*
* @default - 25% of instance memory
*/
readonly sharedBuffers: string;
Expand Down

0 comments on commit d34f2cd

Please sign in to comment.