diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-11-02 13:58:48 +0000 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-11-02 15:55:55 +0000 |
commit | 27c6dce457781fcda791899b7c6e0f1b9c03efd4 (patch) | |
tree | eaee6072f69b1f086ef30a9e3329447a603bbb0a /data/templates/accel-ppp/sstp.config.j2 | |
parent | 0998a5da7b61bb6d5587183a57bb9c34eb56b5ca (diff) | |
download | vyos-1x-27c6dce457781fcda791899b7c6e0f1b9c03efd4.tar.gz vyos-1x-27c6dce457781fcda791899b7c6e0f1b9c03efd4.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.
(cherry picked from commit 47645f9d0243ce48a473ab7f8cdbd22c19f69f28)
Diffstat (limited to 'data/templates/accel-ppp/sstp.config.j2')
-rw-r--r-- | data/templates/accel-ppp/sstp.config.j2 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/accel-ppp/sstp.config.j2 b/data/templates/accel-ppp/sstp.config.j2 index 7ee28dd21..cf1d23f54 100644 --- a/data/templates/accel-ppp/sstp.config.j2 +++ b/data/templates/accel-ppp/sstp.config.j2 @@ -16,6 +16,9 @@ thread-count={{ thread_count }} [common] single-session=replace +{% if max_concurrent_sessions is vyos_defined %} +max-starting={{ max_concurrent_sessions }} +{% endif %} [log] syslog=accel-sstp,daemon |