Skip to content

Commit 9ad4947

Browse files
committed
feat: enhance staging configuration with resource limits
Updated the staging configuration in the API to include specific resource limits for memory in the WSGI and RAG charts. This change ensures better resource management and performance optimization for the staging environment.
1 parent e128ac2 commit 9ad4947

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

packages/stacks/api/src/main.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,23 @@ const pipeline = Pipeline.builder({
7575
.target({
7676
name: 'staging',
7777
stackBuilder: (builder) => builder.addOns(new RedisStackAddOn()),
78-
config: config.$env!.staging as unknown as CrisisCleanupConfig,
78+
config: {
79+
...(config.$env!.staging as unknown as CrisisCleanupConfig),
80+
chart: {
81+
...((config.$env!.staging as unknown as CrisisCleanupConfig)?.chart ||
82+
{}),
83+
wsgi: {
84+
...((config.$env!.staging as unknown as CrisisCleanupConfig)?.chart
85+
?.wsgi || {}),
86+
resources: {
87+
memory: {
88+
request: 2048,
89+
limit: 2048,
90+
},
91+
},
92+
},
93+
},
94+
} as CrisisCleanupConfig,
7995
secretsProvider: stagingSecretsProvider,
8096
})
8197
.target({

0 commit comments

Comments
 (0)