Skip to content

Commit 0a5bb8c

Browse files
authored
Update readme.md
added changes from s.dutta
1 parent da8499c commit 0a5bb8c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

labs/lab5/readme.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ To accomplish the Split Client functionality with Nginx, you only need 3 things.
559559
#add_header X-Proxy-Pass aks1_ingress; # Custom Header
560560
561561
#proxy_pass http://aks2_ingress; # Proxy AND load balance to AKS2 Nginx Ingress
562-
#add_header X-Proxy-Pass aks1_ingress; # Custom Header
562+
#add_header X-Proxy-Pass aks2_ingress; # Custom Header
563563
564564
}
565565
@@ -575,7 +575,15 @@ Unfortunately, refreshing about 100 times and trying to catch the 1% sent to AKS
575575
1. Open a separate Terminal, and start the WRK load tool. Use the example here, but change the IP address to your Nginx for Azure Public IP:
576576

577577
```bash
578-
docker run --name wrk --rm williamyeh/wrk -t4 -c200 -d20m -H 'Host: cafe.example.com' --timeout 2s http://20.3.16.67/coffee
578+
## Set environment variables
579+
export MY_RESOURCEGROUP=c.akker-workshop
580+
export MY_N4A_IP=$(az network public-ip show \
581+
--resource-group $MY_RESOURCEGROUP \
582+
--name n4a-publicIP \
583+
--query ipAddress \
584+
--output tsv)
585+
586+
docker run --name wrk --rm williamyeh/wrk -t4 -c200 -d20m -H 'Host: cafe.example.com' --timeout 2s http://$MY_N4A_IP/coffee
579587
```
580588

581589
This will open 200 Connections, and run for 20 minutes while we try different Split Ratios. The Host Header `cafe.example.com` is required, to match your Server Block in your Nginx for Azure configuration.

0 commit comments

Comments
 (0)