|
58 | 58 | - Note: Clean up after each test run for isolated results. There's a script provided for removing all the test
|
59 | 59 | fixtures `scripts/delete-multiple.sh` which takes a number (needs to be the same number as what was used in the
|
60 | 60 | create script.)
|
61 |
| -5. After each individual test run, grab logs of both NGF containers and grab metrics. |
62 |
| - Note: You can expose metrics by running the below snippet and then navigating to `127.0.0.1:9113/metrics`: |
63 |
| - |
64 |
| - ```console |
65 |
| - GW_POD=$(k get pods -n nginx-gateway | sed -n '2s/^\([^[:space:]]*\).*$/\1/p') |
66 |
| - kubectl port-forward $GW_POD -n nginx-gateway 9113:9113 & |
67 |
| - ``` |
| 61 | +5. After each individual test: |
| 62 | + - Describe the Gateway resource and make sure the status is correct. |
| 63 | + - Check the logs of both NGF containers for errors. |
| 64 | + - Parse the logs for TimeToReady numbers (see steps 6-7 below). |
| 65 | + - Grab metrics. |
| 66 | + Note: You can expose metrics by running the below snippet and then navigating to `127.0.0.1:9113/metrics`: |
| 67 | + |
| 68 | + ```console |
| 69 | + GW_POD=$(k get pods -n nginx-gateway | sed -n '2s/^\([^[:space:]]*\).*$/\1/p') |
| 70 | + kubectl port-forward $GW_POD -n nginx-gateway 9113:9113 & |
| 71 | + ``` |
68 | 72 |
|
69 | 73 | 6. Measure NGINX Reloads and Time to Ready Results
|
70 | 74 | 1. TimeToReadyTotal as described in each test - NGF logs.
|
|
90 | 94 | e.g. `cd scripts && bash create-resources-gw-last.sh 30`. The script will deploy backend apps and services, wait
|
91 | 95 | 60 seconds for them to be ready, and deploy 1 Gateway, 1 RefGrant, 1 Secret, and HTTPRoutes.
|
92 | 96 | 2. Deploy NGF
|
93 |
| - 3. Measure TimeToReadyTotal as the time it takes from start-up -> config written and |
| 97 | + 3. Measure TimeToReadyTotal as the time it takes from start-up -> final config written and |
94 | 98 | NGINX reloaded. Measure the other results as described in steps 6-7 of the [Setup](#setup) section.
|
95 | 99 |
|
96 | 100 | ### Test 2: Start NGF, deploy Gateway, create many resources attached to GW
|
|
0 commit comments