summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/l2tp.config.j2
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-11-02 13:58:48 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-11-02 13:58:48 +0000
commit47645f9d0243ce48a473ab7f8cdbd22c19f69f28 (patch)
tree42edc99e74420a78e3d644b7a413232148b04d24 /data/templates/accel-ppp/l2tp.config.j2
parent4f05f701086a5f8cd64e4f1458a587dfd7ba5d3a (diff)
downloadvyos-1x-47645f9d0243ce48a473ab7f8cdbd22c19f69f28.tar.gz
vyos-1x-47645f9d0243ce48a473ab7f8cdbd22c19f69f28.zip
T5704: PPPoE L2TP SSTP IPoE add option max-concurrent-sessions
Add `max-starting` option: [common] max-starting=N Specifies maximum concurrent session attempts which server may processed set service pppoe-server max-concurrent-sessions '30' Useful to prevent high CPU utilization and compat execution scripts per time.
Diffstat (limited to 'data/templates/accel-ppp/l2tp.config.j2')
-rw-r--r--data/templates/accel-ppp/l2tp.config.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/accel-ppp/l2tp.config.j2 b/data/templates/accel-ppp/l2tp.config.j2
index a2f9c9fc7..b089d3e71 100644
--- a/data/templates/accel-ppp/l2tp.config.j2
+++ b/data/templates/accel-ppp/l2tp.config.j2
@@ -20,6 +20,11 @@ ipv6_dhcp
[core]
thread-count={{ thread_cnt }}
+[common]
+{% if max_concurrent_sessions is vyos_defined %}
+max-starting={{ max_concurrent_sessions }}
+{% endif %}
+
[log]
syslog=accel-l2tp,daemon
copy=1