move aeron tests in multi-node (#30706)

This commit is contained in:
Renato Cavalcanti 2021-10-20 08:07:47 +02:00 committed by GitHub
parent f561146fa7
commit 4ef9b31d8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 178 additions and 125 deletions

View file

@ -1,6 +1,7 @@
#!/bin/bash
NUM_OF_NODES=$1
DEST_HOST_FILE=$2
PROTOCOL=$3
TMP_DIR=.tmp
kubectl delete deployments,services -l app=multi-node-test | true
@ -15,7 +16,7 @@ for i in `seq 1 "${NUM_OF_NODES}"`;
do
cat ./kubernetes/test-node-base.yaml | sed "s/test-nodeX/test-node${i}/" > ".tmp/test-node${i}.yml"
echo $i
echo "test-node${i}:/usr/local/openjdk-11/bin/java -Dmultinode.port=5000 -Dmultinode.udp-port=6000" >> ${DEST_HOST_FILE}
echo "test-node${i}:/usr/local/openjdk-11/bin/java -Dmultinode.protocol=$PROTOCOL -Dmultinode.port=5000 -Dmultinode.udp.port=6000" >> ${DEST_HOST_FILE}
done
kubectl apply -f ${TMP_DIR}

View file

@ -22,7 +22,7 @@ spec:
memory: "2Gi"
cpu: "1"
limits:
memory: "2Gi"
memory: "4Gi"
lifecycle:
postStart:
exec:
@ -51,6 +51,9 @@ spec:
- name: multi-node-udp
containerPort: 6000
protocol: UDP
- name: multi-node-udp2
containerPort: 6001
protocol: UDP
- name: server-multi
containerPort: 4711
protocol: TCP
@ -90,3 +93,7 @@ spec:
name: multi-node-udp
port: 6000
targetPort: 6000
- protocol: UDP
name: multi-node-udp2
port: 6001
targetPort: 6001