You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machine-scale-sets/tutorial-autoscale-cli.md
+39-8Lines changed: 39 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,47 +91,78 @@ To test the autoscale rules, generate some CPU load on the VM instances in the s
91
91
92
92
To connect to an individual instance, see [Tutorial: Connect to Virtual Machine Scale Set instances](tutorial-connect-to-instances-cli.md)
93
93
94
-
Once logged in, install the **stress** utility. Start *10***stress** workers that generate CPU load. These workers run for *420* seconds, which is enough to cause the autoscale rules to implement the desired action.
94
+
Once logged in, install the **stress**or **stress-ng**utility. Start *10***stress** workers that generate CPU load. These workers run for *420* seconds, which is enough to cause the autoscale rules to implement the desired action.
When **stress** shows output similar to *stress: info: [2688] dispatching hogs: 10 cpu, 0 io, 0 vm, 0 hdd*, press the *Enter* key to return to the prompt.
103
118
104
119
To confirm that **stress** generates CPU load, examine the active system load with the **top** utility:
105
120
106
-
```console
121
+
```bash
107
122
top
108
123
```
109
124
110
125
Exit **top**, then close your connection to the VM instance. **stress** continues to run on the VM instance.
111
126
112
-
```console
127
+
```bash
113
128
Ctrl-c
114
129
exit
115
130
```
116
131
117
132
Connect to second VM instance with the port number listed from the previous [az vmss list-instance-connection-info](/cli/azure/vmss):
Again, when **stress** shows output similar to *stress: info: [2713] dispatching hogs: 10 cpu, 0 io, 0 vm, 0 hdd*, press the *Enter* key to return to the prompt.
131
162
132
163
Close your connection to the second VM instance. **stress** continues to run on the VM instance.
0 commit comments