Skip to content

Commit 0317127

Browse files
committed
fix: restart pod when there are no available browsers
1 parent c0fa009 commit 0317127

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

infra/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const { serviceAccount } = createServiceAccountAndGrantRoles(
2828
const limits: Input<{
2929
[key: string]: Input<string>;
3030
}> = {
31-
cpu: '2',
31+
cpu: '1',
3232
memory: '2Gi',
3333
};
3434

@@ -64,7 +64,7 @@ createAutoscaledExposedApplication({
6464
initialDelaySeconds: 10,
6565
},
6666
livenessProbe: {
67-
httpGet: { path: '/health', port: 'http' },
67+
httpGet: { path: '/ready', port: 'http' },
6868
initialDelaySeconds: 10,
6969
},
7070
env: convertRecordToContainerEnvVars({ secretName: name, data: envVars }),
@@ -74,7 +74,7 @@ createAutoscaledExposedApplication({
7474
},
7575
},
7676
],
77-
minReplicas: 4,
77+
minReplicas: 3,
7878
maxReplicas: 10,
7979
metrics: getMemoryAndCpuMetrics(60),
8080
});

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const pptrPool = genericPool.createPool(
106106
},
107107
{
108108
min: 5,
109-
max: 10,
109+
max: 15,
110110
evictionRunIntervalMillis: 1000 * 60,
111111
acquireTimeoutMillis: 1000 * 10,
112112
softIdleTimeoutMillis: 1000 * 60 * 5,

0 commit comments

Comments
 (0)