Skip to content

Commit

Permalink
New network load balancer (#46)
Browse files Browse the repository at this point in the history
* Replaced Classic Load Balancer by Network Load Balancer (NLB)
  • Loading branch information
bczoma authored May 8, 2020
1 parent b493063 commit 176dab9
Show file tree
Hide file tree
Showing 3 changed files with 315 additions and 55 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,25 @@ script:
- sed -i "s@SolaceStackRegionNAME@${AWS_DEFAULT_REGION}@g" ci/solace-aws-ha-3az-prod-travistest.json
- aws s3 mb s3://solace-cf-quickstart-travistest || echo "s3 bucket already existed"
- aws s3 sync . s3://solace-cf-quickstart-travistest/solace/eventbroker/latest --acl public-read
- export TESTSTACKPREFIX="T$(date +%s)"; export TESTSTACKNAME="$TESTSTACKPREFIX-sol-aws-travistest";
- export TESTSTACKPREFIX=T`echo "$(date +%s)" | rev`; export TESTSTACKNAME="$TESTSTACKPREFIX-sol-aws-travistest";
- 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
- echo "Waiting for stack create complete"
- "travis_wait 30 sleep 1800 &"
- until aws cloudformation describe-stacks --stack-name $TESTSTACKNAME | grep -m 1 -E 'CREATE_COMPLETE|DELETE_IN_PROGRESS'; do sleep 10; done
- aws cloudformation describe-stack-events --stack-name $TESTSTACKNAME
- aws cloudformation describe-stacks --stack-name $TESTSTACKNAME
- echo "Pausing to get the ELB ready"; sleep 10
- url="$(aws elb describe-load-balancers | grep DNSName | grep $TESTSTACKPREFIX | awk -F '"' '{print $4}')"; echo $url
- export url="$(aws elbv2 describe-load-balancers | grep DNSName | grep `echo $TESTSTACKPREFIX | head -c4` | awk -F '"' '{print $4}')"; echo $url
- until curl http://$url:8080; do sleep 10; done
- curl -O https://sftp.solace.com/download/SDKPERF_C_LINUX64
- tar -xvf SDKPERF_C_LINUX64
- pubSubTools/sdkperf_c -cip=$url -mn=100000 -mr=0 -ptl=t1 -stl=t1 | grep "Total Messages"
- sleep 30
- curl -sS -u admin:admin http://$url:8080/SEMP -d "<rpc><show><redundancy></redundancy></show></rpc>"
- curl -sS -u admin:admin http://$url:8080/SEMP -d "<rpc><show><config-sync></config-sync></show></rpc>"
- bash -c 'if [[ -z `curl -sS -u admin:admin http://$url:8080/SEMP -d "<rpc><show><config-sync></config-sync></show></rpc>"
| grep "<oper-status>Up</oper-status>"` ]] ; then echo "config-sync not up!"; exit
1; fi'

after_success:
- echo "Test Success - Branch($TRAVIS_BRANCH) Pull Request($TRAVIS_PULL_REQUEST) Tag($TRAVIS_TAG)"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Below is the list of AWS resources that will be deployed by the Quick Start. Ple

## Required IAM roles

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

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

Expand Down
Loading

0 comments on commit 176dab9

Please sign in to comment.