Skip to content

Commit 889e9fc

Browse files
committed
fix: Fix Core-service's Cpu & Ram resource limit
1 parent bcc3e34 commit 889e9fc

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

core-service/src/main/java/com/axon/core_service/controller/StoreController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public static List<ProductDisplayDto> generateProducts(int count, String categor
182182
}
183183

184184
public static ProductDisplayDto generateSingleProduct(Long id) {
185-
// Randomly pick a category for general generation
185+
// Randomly pick a category for general
186186
String[] categories = { "Tech", "Food", "Home", "Fashion" };
187187
return generateSingleProduct(id, categories[random.nextInt(categories.length)]);
188188
}

k8s/core-service/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ spec:
1919
- containerPort: 8080
2020
resources:
2121
requests:
22-
memory: "768Mi"
23-
cpu: "200m"
22+
memory: "1Gi"
23+
cpu: "500m"
2424
limits:
2525
memory: "1536Mi"
26-
cpu: "600m"
26+
cpu: "1000m"
2727
env:
28+
- name: JAVA_OPTS
29+
value: "-XX:MaxRAMPercentage=50.0 -XX:+UseG1GC"
2830
- name: DB_PASSWORD
2931
valueFrom:
3032
secretKeyRef:

0 commit comments

Comments
 (0)