* ClusterSingletonManagerSpec is failing with Artery aeron-udp because of starvation slowness * we use 5 nodes with 4 vCPU each * ClusterSingletonManagerSpec uses 8 pods * my thinking is that with the previous cpu request 1 it might schedule too many pods on the same node (if it doesn't distribute them evenly) * with this new cpu request it should still be able to schedule 2 pods per node and that covers all tests except the StressSpec, which is anyway disabled * also changed to n2 series and reduced idle-cpu-level
98 lines
2.2 KiB
YAML
98 lines
2.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: test-nodeX
|
|
labels:
|
|
app: multi-node-test
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
host: test-nodeX
|
|
template:
|
|
metadata:
|
|
labels:
|
|
host: test-nodeX
|
|
spec:
|
|
containers:
|
|
- image: openjdk:11
|
|
command: ["sleep", "infinity"]
|
|
resources:
|
|
requests:
|
|
memory: "4Gi"
|
|
cpu: "1800m"
|
|
limits:
|
|
memory: "4Gi"
|
|
lifecycle:
|
|
postStart:
|
|
exec:
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- truncate --size -1 /etc/hosts && echo " test-nodeX" >> /etc/hosts
|
|
imagePullPolicy: Always
|
|
name: multi-test-nodeX
|
|
volumeMounts:
|
|
- mountPath: /opt/volumes/media-driver
|
|
name: media-driver
|
|
ports:
|
|
- name: web
|
|
containerPort: 80
|
|
protocol: TCP
|
|
- name: ssh
|
|
containerPort: 22
|
|
protocol: TCP
|
|
- name: multi-node
|
|
containerPort: 5000
|
|
protocol: TCP
|
|
- name: multi-node2
|
|
containerPort: 5001
|
|
protocol: TCP
|
|
- name: multi-node-udp
|
|
containerPort: 6000
|
|
protocol: UDP
|
|
- name: multi-node-udp2
|
|
containerPort: 6001
|
|
protocol: UDP
|
|
- name: server-multi
|
|
containerPort: 4711
|
|
protocol: TCP
|
|
volumes:
|
|
# Needed for Aeron tests: https://github.com/real-logic/aeron/blob/master/README.md#troubleshooting
|
|
- name: media-driver
|
|
emptyDir: {}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: test-nodeX
|
|
labels:
|
|
app: multi-node-test
|
|
spec:
|
|
selector:
|
|
host: test-nodeX
|
|
ports:
|
|
- protocol: TCP
|
|
name: ssh
|
|
port: 22
|
|
targetPort: 22
|
|
- protocol: TCP
|
|
name: server-multi
|
|
port: 4711
|
|
targetPort: 4711
|
|
- protocol: TCP
|
|
name: multi-node
|
|
port: 5000
|
|
targetPort: 5000
|
|
- protocol: TCP
|
|
name: multi-node2
|
|
port: 5001
|
|
targetPort: 5001
|
|
- protocol: UDP
|
|
name: multi-node-udp
|
|
port: 6000
|
|
targetPort: 6000
|
|
- protocol: UDP
|
|
name: multi-node-udp2
|
|
port: 6001
|
|
targetPort: 6001
|