-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Showing
115 changed files
with
4,465 additions
and
4,783 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -1,32 +1,44 @@ | ||
# Stress Testing | ||
|
||
Create a cluster in [`jesse-sb` project](https://console.cloud.google.com/access/iam?cloudshell=false&project=jesse-sb). | ||
Create a cluster in [`jesse-sb` project](https://console.cloud.google.com/access/iam?cloudshell=false&project=jesse-sb) | ||
with at least 21 nodes. | ||
|
||
Install `gcloud` binary. | ||
|
||
Login to GCP: `gloud auth login` | ||
|
||
Connect to your new cluster. | ||
Get your KUBECONFIG, something like: | ||
|
||
Make sure you've logged in to Docker Hub: `docker login` | ||
``` | ||
gcloud container clusters get-credentials cluster-1 --zone us-central1-c --project jesse-sb | ||
``` | ||
|
||
Run `make start PROFILE=stress IMAGE_NAMESPACE=alexcollinsintuit DOCKER_PUSH=true`. | ||
Run `make start PROFILE=stress`. | ||
|
||
Make sure pods are running: | ||
|
||
``` | ||
kubectl get deployments | ||
``` | ||
|
||
If this fails, just try running it again. | ||
|
||
Open https://localhost:2746 and check you can run a workflow. | ||
* Open https://localhost:2746/workflows/argo and check it loads and that you can run a workflow. | ||
* Open http://localhost:9090/metrics and check you can see the Prometheus metrics. | ||
* Open http://localhost:9091/graph and check you can see a Prometheus graph. | ||
* Open http://localhost:6060 and check you can access pprof. | ||
|
||
Open `test/stress/main.go` and run it with a small number (e.g. 10) workflows and make sure they complete. | ||
|
||
Do you get `ImagePullBackOff`? Make sure image is `argoproj/argosay:v2` in `kubectl -n argo edit workflowtemplate massive-workflow`. | ||
Do you get `ImagePullBackOff`? Make sure image is `argoproj/argosay:v2` | ||
in `kubectl -n argo edit workflowtemplate massive-workflow`. | ||
|
||
Open http://localhost:9091/graph. | ||
|
||
You can use [this Tab Auto Refresh Chrome extension](https://chrome.google.com/webstore/detail/tab-auto-refresh/oomoeacogjkolheacgdkkkhbjipaomkn) to auto-refresh the page. | ||
You can | ||
use [this Tab Auto Refresh Chrome extension](https://chrome.google.com/webstore/detail/tab-auto-refresh/oomoeacogjkolheacgdkkkhbjipaomkn) | ||
to auto-refresh the page. | ||
|
||
Open `test/stress/main.go` and run it with a large number (e.g. 10000). | ||
|
||
Use Prometheus to analyse this. | ||
|
||
Finally, you can capture PProf using `./hack/capture-pprof.sh`. | ||
* Use Prometheus to analyse this. | ||
* Use PProf using `./hack/capture-pprof.sh` and look at allocs and profile for costly areas. | ||
|
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
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
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
Oops, something went wrong.