Fossil SCM

Replicated the server load aveage limit on the robot-defenses configuration page.

drh 2023-10-29 22:20 trunk
Commit a72e9e181dd79d3f92cf99b0fb207fae7131b1f9f27da0d180d1f26b04ea9fb3
1 file changed +13
+13
--- src/setup.c
+++ src/setup.c
@@ -413,10 +413,23 @@
413413
@ <form action="%R/setup_robot" method="post"><div>
414414
login_insert_csrf_secret();
415415
@ <input type="submit" name="submit" value="Apply Changes"></p>
416416
@ <hr>
417417
addAutoHyperlinkSettings();
418
+
419
+ @ <hr>
420
+ entry_attribute("Server Load Average Limit", 11, "max-loadavg", "mxldavg",
421
+ "0.0", 0);
422
+ @ <p>Some expensive operations (such as computing tarballs, zip archives,
423
+ @ or annotation/blame pages) are prohibited if the load average on the host
424
+ @ computer is too large. Set the threshold for disallowing expensive
425
+ @ computations here. Set this to 0.0 to disable the load average limit.
426
+ @ This limit is only enforced on Unix servers. On Linux systems,
427
+ @ access to the /proc virtual filesystem is required, which means this limit
428
+ @ might not work inside a chroot() jail.
429
+ @ (Property: "max-loadavg")</p>
430
+
418431
@ <hr>
419432
@ <p><input type="submit" name="submit" value="Apply Changes"></p>
420433
@ </div></form>
421434
db_end_transaction(0);
422435
style_finish_page();
423436
--- src/setup.c
+++ src/setup.c
@@ -413,10 +413,23 @@
413 @ <form action="%R/setup_robot" method="post"><div>
414 login_insert_csrf_secret();
415 @ <input type="submit" name="submit" value="Apply Changes"></p>
416 @ <hr>
417 addAutoHyperlinkSettings();
 
 
 
 
 
 
 
 
 
 
 
 
 
418 @ <hr>
419 @ <p><input type="submit" name="submit" value="Apply Changes"></p>
420 @ </div></form>
421 db_end_transaction(0);
422 style_finish_page();
423
--- src/setup.c
+++ src/setup.c
@@ -413,10 +413,23 @@
413 @ <form action="%R/setup_robot" method="post"><div>
414 login_insert_csrf_secret();
415 @ <input type="submit" name="submit" value="Apply Changes"></p>
416 @ <hr>
417 addAutoHyperlinkSettings();
418
419 @ <hr>
420 entry_attribute("Server Load Average Limit", 11, "max-loadavg", "mxldavg",
421 "0.0", 0);
422 @ <p>Some expensive operations (such as computing tarballs, zip archives,
423 @ or annotation/blame pages) are prohibited if the load average on the host
424 @ computer is too large. Set the threshold for disallowing expensive
425 @ computations here. Set this to 0.0 to disable the load average limit.
426 @ This limit is only enforced on Unix servers. On Linux systems,
427 @ access to the /proc virtual filesystem is required, which means this limit
428 @ might not work inside a chroot() jail.
429 @ (Property: "max-loadavg")</p>
430
431 @ <hr>
432 @ <p><input type="submit" name="submit" value="Apply Changes"></p>
433 @ </div></form>
434 db_end_transaction(0);
435 style_finish_page();
436

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button