This repository has been archived by the owner on Jul 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfdd3a6
commit a2fbd32
Showing
5 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sfctl application list --query items[].id -o tsv | grep node | xargs -n 1 -P 12 sfctl application delete --application-id | ||
sfctl application unprovision --application-type-name NodeAppType --application-type-version 1.0.0 | ||
sfctl store delete --content-path loadtest | ||
|
||
sfctl application delete --application-id traefik | ||
sfctl application unprovision --application-type-name TraefikType --application-type-version 1.0.0 | ||
sfctl store delete --content-path ApplicationPackageRoot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#Traefik install | ||
sfctl application upload --path ./Traefik/ApplicationPackageRoot/ | ||
sfctl application provision --application-type-build-path ApplicationPackageRoot | ||
sfctl application create --app-type TraefikType --app-version 1.0.0 --app-name fabric:/traefik | ||
|
||
#Spin up some node apps | ||
sfctl application upload --path ./Demos/apps/loadtest | ||
sfctl application provision --application-type-build-path loadtest | ||
for i in {100..120} | ||
do | ||
( echo "Deploying instance $i" | ||
sfctl application create --app-type NodeAppType --app-version 1.0.0 --parameters "{\"PORT\":\"25$i\", \"RESPONSE\":\"25$i\"}" --app-name fabric:/node25$i ) & | ||
done | ||
|
||
|
||
#Run load test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters