|
| 1 | +--- |
| 2 | +title: Autoscaling Using Go |
| 3 | +layout: |
| 4 | + 1: left |
| 5 | + 2: right |
| 6 | + default: wizard |
| 7 | +wizard: |
| 8 | + steps: |
| 9 | + - match: Prerequisites |
| 10 | + name: Install Required Tools |
| 11 | + - name: Deploy the Service |
| 12 | + - name: Load the Service |
| 13 | + - match: Analysis |
| 14 | + name: Analysis - Algorithm |
| 15 | + - name: Other Experiments |
| 16 | + describe: Run experiments to better understand analysis |
| 17 | + - name: Cleanup |
| 18 | + - name: Further reading |
| 19 | +codeblocks: |
| 20 | + # Validation for Step 1: Install Required Tools |
| 21 | + - match: ^git clone -b "{{ branch }}" https://github.com/knative/docs knative-docs |
| 22 | + cd knative-docs$ |
| 23 | + validate: $? -e 0 && exit 0 \|\| exit 1 |
| 24 | + # Validation for Step 2: Deploy the Service |
| 25 | + - match: ^kubectl apply -f docs/serving/autoscaling/autoscale-go/service.yaml$ |
| 26 | + validate: kn service describe service |
| 27 | + - match: ^kubectl get ksvc autoscale-go$ |
| 28 | + validate: $? -e 0 && exit 0 \|\| exit 1 |
| 29 | + # Validation for Step 3: Load the Service |
| 30 | + - match: ^curl "http://autoscale-go.default.1.2.3.4.sslip.io?sleep=100&prime=10000&bloat=5"$ |
| 31 | + validate: $body |
| 32 | + - match: ^hey -z 30s -c 50 |
| 33 | + validate: $? -e 0 && exit 0 \|\| exit 1 |
| 34 | + # Validation for Step 5: Other Experiments |
| 35 | + - match: ^hey -z 60s -c 100 |
| 36 | + validate: $? -e 0 && exit 0 \|\| exit 1 |
| 37 | + - match: ^hey -z 60s -q 100 |
| 38 | + validate: $? -e 0 && exit 0 \|\| exit 1 |
| 39 | + - match: ^hey -z 60s -q 100 |
| 40 | + validate: $? -e 0 && exit 0 \|\| exit 1 |
| 41 | + - match: ^hey -z 60s -q 100 |
| 42 | + validate: $? -e 0 && exit 0 \|\| exit 1 |
| 43 | + - match: ^hey -z 60s -c 5 |
| 44 | + validate: $? -e 0 && exit 0 \|\| exit 1 |
| 45 | + # Validation for Step 6: Cleanup |
| 46 | + - match: ^kubectl delete -f docs/serving/autoscaling/autoscale-go/service.yaml$ |
| 47 | + validate: $? -e 0 && exit 0 \|\| exit 1 |
| 48 | +--- |
| 49 | + |
| 50 | +--8<-- "https://raw.githubusercontent.com/mra-ruiz/docs/guidebooks/docs/guidebooks/knative-serving-autoscaling-go.md" |
0 commit comments