-
On the Jumphost, open
Postman
app from the desktop and then expand4_NGINX Controller Dev API
collection. -
Within this collection open
Create_Dev_F1_V1_Component
request and addweight
field to eachuris
within the request body payload as shown in below screenshot. Click onSend
to run the request.
-
If the
Create_Dev_F1_V1_Component
request succeeds then you should receive a202 Accepted
response code as shown in below screenshot.
-
On the Jumphost, open
Visual Studio Code
app and then connect to Terminal10.1.1.7
using SSH client. -
Run the following commands to generate load
for i in {1..500}; do curl http://devsports.example.com/api/f1/drivers; done
for i in {1..500}; do curl http://devsports.example.com/api/f1/seasons; done
-
Navigate to
Services
view within Controller by clicking on the top right NGINX button.
-
Select
Apps
from left pane and then click onDev Sports Results
app.
-
Within the
Dev Sports Results
app page, click onGo to Analytics
button.
-
Inside the Analytics window, set the time window to
Last 15 minutes
and setBreakout By:
toHTTP Upstream Addr
.
-
Refresh your browser to display the graphs:
-
Now we would swap the
weights
of our backend servers. To do so, go back toPostman
app and then open up the4_NGINX Controller Dev API
collection. -
Within this collection open
Create_Dev_F1_V1_Component
request and swap the values in theweight
field within the request body payload as shown in below screenshot. Click onSend
to run the request.
-
Run the following commands to generate load within the terminal of
Visual Studio Code
.for i in {1..500}; do curl http://devsports.example.com/api/f1/drivers; done
for i in {1..500}; do curl http://devsports.example.com/api/f1/seasons; done
-
Navigate back to
Services
view within Controller by clicking on the top right NGINX button.
-
Select
Apps
from left pane and then click onDev Sports Results
app.
-
Within the
Dev Sports Results
app page, click onGo to Analytics
button.
-
Inside the Analytics window, set the time window to
Last 15 minutes
and setBreakout By:
toHTTP Upstream Addr
.
-
Refresh your browser to display the graphs: