Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit 176dab9

Browse files
authored
New network load balancer (#46)
* Replaced Classic Load Balancer by Network Load Balancer (NLB)
1 parent b493063 commit 176dab9

File tree

3 files changed

+315
-55
lines changed

3 files changed

+315
-55
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,25 @@ script:
3939
- sed -i "s@SolaceStackRegionNAME@${AWS_DEFAULT_REGION}@g" ci/solace-aws-ha-3az-prod-travistest.json
4040
- aws s3 mb s3://solace-cf-quickstart-travistest || echo "s3 bucket already existed"
4141
- aws s3 sync . s3://solace-cf-quickstart-travistest/solace/eventbroker/latest --acl public-read
42-
- export TESTSTACKPREFIX="T$(date +%s)"; export TESTSTACKNAME="$TESTSTACKPREFIX-sol-aws-travistest";
42+
- export TESTSTACKPREFIX=T`echo "$(date +%s)" | rev`; export TESTSTACKNAME="$TESTSTACKPREFIX-sol-aws-travistest";
4343
- aws cloudformation create-stack --stack-name $TESTSTACKNAME --template-body file://templates/solace-master.template --parameters file://ci/solace-aws-ha-3az-prod-travistest.json --on-failure DO_NOTHING --capabilities CAPABILITY_IAM
4444
- echo "Waiting for stack create complete"
4545
- "travis_wait 30 sleep 1800 &"
4646
- until aws cloudformation describe-stacks --stack-name $TESTSTACKNAME | grep -m 1 -E 'CREATE_COMPLETE|DELETE_IN_PROGRESS'; do sleep 10; done
4747
- aws cloudformation describe-stack-events --stack-name $TESTSTACKNAME
4848
- aws cloudformation describe-stacks --stack-name $TESTSTACKNAME
4949
- echo "Pausing to get the ELB ready"; sleep 10
50-
- url="$(aws elb describe-load-balancers | grep DNSName | grep $TESTSTACKPREFIX | awk -F '"' '{print $4}')"; echo $url
50+
- export url="$(aws elbv2 describe-load-balancers | grep DNSName | grep `echo $TESTSTACKPREFIX | head -c4` | awk -F '"' '{print $4}')"; echo $url
51+
- until curl http://$url:8080; do sleep 10; done
5152
- curl -O https://sftp.solace.com/download/SDKPERF_C_LINUX64
5253
- tar -xvf SDKPERF_C_LINUX64
5354
- pubSubTools/sdkperf_c -cip=$url -mn=100000 -mr=0 -ptl=t1 -stl=t1 | grep "Total Messages"
55+
- sleep 30
56+
- curl -sS -u admin:admin http://$url:8080/SEMP -d "<rpc><show><redundancy></redundancy></show></rpc>"
57+
- curl -sS -u admin:admin http://$url:8080/SEMP -d "<rpc><show><config-sync></config-sync></show></rpc>"
58+
- bash -c 'if [[ -z `curl -sS -u admin:admin http://$url:8080/SEMP -d "<rpc><show><config-sync></config-sync></show></rpc>"
59+
| grep "<oper-status>Up</oper-status>"` ]] ; then echo "config-sync not up!"; exit
60+
1; fi'
5461

5562
after_success:
5663
- echo "Test Success - Branch($TRAVIS_BRANCH) Pull Request($TRAVIS_PULL_REQUEST) Tag($TRAVIS_TAG)"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Below is the list of AWS resources that will be deployed by the Quick Start. Ple
3333

3434
## Required IAM roles
3535

36-
Look for `AWS::IAM::Role` in the templates source for the list of required IAM roles to create the stacks.
36+
Look for `AWS::IAM::Role` in the templates source for the list of required IAM roles to create the stacks.
3737

3838
# How to Deploy PubSub+ Software Event Broker in an HA Group
3939

0 commit comments

Comments
 (0)