From 27c6dce457781fcda791899b7c6e0f1b9c03efd4 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Thu, 2 Nov 2023 13:58:48 +0000 Subject: 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. (cherry picked from commit 47645f9d0243ce48a473ab7f8cdbd22c19f69f28) --- data/templates/accel-ppp/ipoe.config.j2 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'data/templates/accel-ppp/ipoe.config.j2') diff --git a/data/templates/accel-ppp/ipoe.config.j2 b/data/templates/accel-ppp/ipoe.config.j2 index f59428509..555a033d3 100644 --- a/data/templates/accel-ppp/ipoe.config.j2 +++ b/data/templates/accel-ppp/ipoe.config.j2 @@ -14,6 +14,11 @@ ippool [core] thread-count={{ thread_count }} +[common] +{% if max_concurrent_sessions is vyos_defined %} +max-starting={{ max_concurrent_sessions }} +{% endif %} + [log] syslog=accel-ipoe,daemon copy=1 -- cgit v1.2.3