fix(hwlab): tune d601 v03 db pool config

This commit is contained in:
Codex
2026-06-20 22:57:45 +00:00
parent 27b3a208d2
commit 475275dfca
2 changed files with 13 additions and 2 deletions
+2 -1
View File
@@ -141,7 +141,8 @@ lanes:
renderDir: runtime-v03
runtimeStore:
postgres:
poolMax: 20
poolMax: 40
connectionTimeoutMs: 5000
tektonDir: tekton-v03
argoApplicationFile: application-v03.yaml
registryPrefix: 127.0.0.1:5000/hwlab
+11 -1
View File
@@ -81,6 +81,7 @@ export interface HwlabRuntimeExternalPostgresSpec {
export interface HwlabRuntimePostgresStoreSpec {
readonly poolMax: number;
readonly connectionTimeoutMs?: number;
}
export interface HwlabRuntimeStoreSpec {
@@ -587,7 +588,16 @@ function runtimeStoreConfig(value: unknown, path: string): HwlabRuntimeStoreSpec
const raw = asRecord(value, path);
const postgres = raw.postgres === undefined ? undefined : asRecord(raw.postgres, `${path}.postgres`);
return {
...(postgres === undefined ? {} : { postgres: { poolMax: numberField(postgres, "poolMax", `${path}.postgres`) } }),
...(postgres === undefined
? {}
: {
postgres: {
poolMax: numberField(postgres, "poolMax", `${path}.postgres`),
...(postgres.connectionTimeoutMs === undefined
? {}
: { connectionTimeoutMs: numberField(postgres, "connectionTimeoutMs", `${path}.postgres`) }),
},
}),
};
}