logging: schedule OpenSearch with realistic memory and fallback
This commit is contained in:
parent
80aff49855
commit
3519a54801
@ -71,8 +71,8 @@ spec:
|
|||||||
opensearchJavaOpts: "-Xms2g -Xmx2g"
|
opensearchJavaOpts: "-Xms2g -Xmx2g"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "25m"
|
cpu: "500m"
|
||||||
memory: "768Mi"
|
memory: "3Gi"
|
||||||
limits:
|
limits:
|
||||||
cpu: "2"
|
cpu: "2"
|
||||||
memory: "4Gi"
|
memory: "4Gi"
|
||||||
@ -89,8 +89,6 @@ spec:
|
|||||||
node.store.allow_mmap: false
|
node.store.allow_mmap: false
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
node-role.kubernetes.io/worker: "true"
|
node-role.kubernetes.io/worker: "true"
|
||||||
hardware: rpi5
|
|
||||||
kubernetes.io/hostname: titan-05
|
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
@ -100,5 +98,24 @@ spec:
|
|||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- rpi5
|
- rpi5
|
||||||
|
- rpi4
|
||||||
|
- matchExpressions:
|
||||||
|
- key: kubernetes.io/hostname
|
||||||
|
operator: In
|
||||||
|
values: [titan-22]
|
||||||
|
# Pi workers first; Titan-22 is the explicit last-resort CPU host.
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
preference:
|
||||||
|
matchExpressions:
|
||||||
|
- key: hardware
|
||||||
|
operator: In
|
||||||
|
values: [rpi5]
|
||||||
|
- weight: 50
|
||||||
|
preference:
|
||||||
|
matchExpressions:
|
||||||
|
- key: hardware
|
||||||
|
operator: In
|
||||||
|
values: [rpi4]
|
||||||
sysctlInit:
|
sysctlInit:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user