Skip to content

Commit d88b092

Browse files
authored
Use host networking for PW pods communication and remove cpu and mem limits as that results in better perf at higher scale (#205)
1 parent 04a87a8 commit d88b092

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/xpk/commands/workload.py

+6-8
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@
218218
{machine_label}
219219
{autoprovisioning_args}
220220
priorityClassName: {args.priority}
221+
hostNetwork: true
222+
dnsPolicy: ClusterFirstWithHostNet
221223
volumes:
222224
- hostPath:
223225
path: /tmp
@@ -256,17 +258,15 @@
256258
name: pathways-rm
257259
ports:
258260
- containerPort: 38677
259-
resources:
260-
limits:
261-
cpu: "4"
262-
memory: 8G
263261
securityContext:
264262
privileged: true
265263
volumeMounts:
266264
- mountPath: /tmp
267265
name: shared-tmp
268266
nodeSelector:
269267
cloud.google.com/gke-nodepool: cpu-rm-np
268+
hostNetwork: true
269+
dnsPolicy: ClusterFirstWithHostNet
270270
volumes:
271271
- hostPath:
272272
path: /tmp
@@ -292,10 +292,8 @@
292292
name: pathways-proxy
293293
ports:
294294
- containerPort: 38676
295-
resources:
296-
limits:
297-
cpu: "24"
298-
memory: 100G
295+
hostNetwork: true
296+
dnsPolicy: ClusterFirstWithHostNet
299297
nodeSelector:
300298
cloud.google.com/gke-nodepool: cpu-proxy-np
301299
{user_workload}

0 commit comments

Comments
 (0)