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: README.md
+50-14Lines changed: 50 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -261,9 +261,58 @@ Configuration is managed through `appsettings.json`:
261
261
262
262
### Environment Variables
263
263
264
+
The following environment variables can be configured to customize application behavior. These are optional and primarily useful when deploying to Azure App Service.
265
+
264
266
| Variable | Description | Default |
265
267
|----------|-------------|---------|
266
-
|`DISABLE_PROBLEM_ENDPOINTS`| Set to `true` to disable all problem-triggering endpoints |`false`|
268
+
269
+
|`IDLE_TIMEOUT_MINUTES`| Minutes of inactivity before suspending health probes. Reduces network traffic and Application Insights telemetry when idle. |`20`|
270
+
|`PAGE_FOOTER`| Custom HTML footer text displayed at the bottom of the dashboard. Supports HTML links for attribution. | (empty) |
271
+
272
+
#### IDLE_TIMEOUT_MINUTES
273
+
274
+
When the application is idle (no dashboard connections or load test requests), health probes are automatically suspended to reduce unnecessary network traffic to Azure's frontend, AppLens, and Application Insights.
275
+
276
+
-**Default:** 20 minutes
277
+
-**Wake-up:** Simply reload the dashboard or send any request
278
+
-**Activity sources:** Dashboard connections, load test requests
279
+
280
+
**Setting via Azure CLI:**
281
+
```bash
282
+
az webapp config appsettings set \
283
+
--resource-group rg-perf-simulator \
284
+
--name your-app-name \
285
+
--settings IDLE_TIMEOUT_MINUTES=30
286
+
```
287
+
288
+
#### PAGE_FOOTER
289
+
290
+
The `PAGE_FOOTER` environment variable allows you to customize the footer credits displayed on the dashboard. This is useful for attributing tools, teams, or linking to relevant resources.
291
+
292
+
**Example Value:**
293
+
```
294
+
Created by <a href="https://speckit.org/" target="_blank">SpecKit</a> and <a href="https://github.com/copilot" target="_blank">Github Copilot</a>
295
+
```
296
+
297
+
**Setting via Azure CLI:**
298
+
```bash
299
+
az webapp config appsettings set \
300
+
--resource-group rg-perf-simulator \
301
+
--name your-app-name \
302
+
--settings PAGE_FOOTER='Created by <a href="https://speckit.org/" target="_blank">SpecKit</a> and <a href="https://github.com/copilot" target="_blank">Github Copilot</a>'
303
+
```
304
+
305
+
**Setting Locally (PowerShell):**
306
+
```powershell
307
+
$env:PAGE_FOOTER = 'Created by <a href="https://speckit.org/" target="_blank">SpecKit</a> and <a href="https://github.com/copilot" target="_blank">Github Copilot</a>'
308
+
```
309
+
310
+
**Setting Locally (Bash):**
311
+
```bash
312
+
export PAGE_FOOTER='Created by <a href="https://speckit.org/" target="_blank">SpecKit</a> and <a href="https://github.com/copilot" target="_blank">Github Copilot</a>'
313
+
```
314
+
315
+
The footer is retrieved via the `/api/config/footer` endpoint and rendered in the dashboard's footer section. If `PAGE_FOOTER` is not set, the footer credits section is hidden.
267
316
268
317
## ☁️ Azure Deployment
269
318
@@ -299,17 +348,6 @@ az webapp deploy \
299
348
--src-path bin/Release/net10.0/publish
300
349
```
301
350
302
-
### Safety Recommendation
303
-
304
-
After deployment, consider disabling problem endpoints:
305
-
306
-
```bash
307
-
az webapp config appsettings set \
308
-
--resource-group rg-perf-simulator \
309
-
--name your-unique-app-name \
310
-
--settings DISABLE_PROBLEM_ENDPOINTS=true
311
-
```
312
-
313
351
## 🔍 Using Azure Diagnostics
314
352
315
353
This application is designed to work with Azure App Service diagnostics:
Copy file name to clipboardExpand all lines: src/PerfProblemSimulator/wwwroot/documentation.html
+47-12Lines changed: 47 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1060,6 +1060,7 @@ <h2>🔧 Configuration</h2>
1060
1060
<p><strong>Note:</strong> This application is designed to be fully breakable for educational purposes. There are no safety limits on resource consumption — simulations can run until the application crashes or resources are exhausted.</p>
1061
1061
1062
1062
<h3>Environment Variables</h3>
1063
+
<p>The following environment variables can be configured to customize application behavior. These are optional and primarily useful when deploying to Azure App Service.</p>
<td>Set to <code>true</code> to disable all problem-triggering endpoints</td>
1075
-
<td><code>false</code></td>
1074
+
<td><code>IDLE_TIMEOUT_MINUTES</code></td>
1075
+
<td>Minutes of inactivity before suspending health probes. Reduces network traffic and Application Insights telemetry when idle.</td>
1076
+
<td><code>20</code></td>
1077
+
</tr>
1078
+
<tr>
1079
+
<td><code>PAGE_FOOTER</code></td>
1080
+
<td>Custom HTML footer text displayed at the bottom of the dashboard. Supports HTML links for attribution.</td>
1081
+
<td>(empty)</td>
1076
1082
</tr>
1077
1083
</tbody>
1078
1084
</table>
1085
+
1086
+
<h4>IDLE_TIMEOUT_MINUTES</h4>
1087
+
<p>When the application is idle (no dashboard connections or load test requests), health probes are automatically suspended to reduce unnecessary network traffic to Azure's frontend, AppLens, and Application Insights.</p>
1088
+
<ul>
1089
+
<li><strong>Default:</strong> 20 minutes</li>
1090
+
<li><strong>Wake-up:</strong> Simply reload the dashboard or send any request</li>
1091
+
<li><strong>Activity sources:</strong> Dashboard connections, load test requests</li>
<p>The <code>PAGE_FOOTER</code> environment variable allows you to customize the footer credits displayed on the dashboard. This is useful for attributing tools, teams, or linking to relevant resources.</p>
1103
+
<p><strong>Example Value:</strong></p>
1104
+
<divclass="code-block">
1105
+
Created by <a href="https://speckit.org/" target="_blank">SpecKit</a> and <a href="https://github.com/copilot" target="_blank">Github Copilot</a>
1106
+
</div>
1107
+
<p><strong>Setting via Azure CLI:</strong></p>
1108
+
<divclass="code-block">
1109
+
az webapp config appsettings set \
1110
+
--resource-group rg-perf-simulator \
1111
+
--name your-app-name \
1112
+
--settings PAGE_FOOTER=<spanclass="string">'Created by <a href="https://speckit.org/" target="_blank">SpecKit</a> and <a href="https://github.com/copilot" target="_blank">Github Copilot</a>'</span>
$env:PAGE_FOOTER = <spanclass="string">'Created by <a href="https://speckit.org/" target="_blank">SpecKit</a> and <a href="https://github.com/copilot" target="_blank">Github Copilot</a>'</span>
1117
+
</div>
1118
+
<p><strong>Setting Locally (Bash):</strong></p>
1119
+
<divclass="code-block">
1120
+
<spanclass="keyword">export</span> PAGE_FOOTER=<spanclass="string">'Created by <a href="https://speckit.org/" target="_blank">SpecKit</a> and <a href="https://github.com/copilot" target="_blank">Github Copilot</a>'</span>
1121
+
</div>
1122
+
<p>The footer is retrieved via the <code>/api/config/footer</code> endpoint and rendered in the dashboard's footer section. If <code>PAGE_FOOTER</code> is not set, the footer credits section is hidden.</p>
1079
1123
</section>
1080
1124
1081
1125
<!-- Azure Deployment Section -->
@@ -1113,15 +1157,6 @@ <h3>Using Azure CLI</h3>
1113
1157
--src-path bin/Release/net10.0/publish
1114
1158
</div>
1115
1159
1116
-
<h3>Safety Recommendation</h3>
1117
-
<p>After deployment, consider disabling problem endpoints:</p>
0 commit comments