bugfix:将feature.stream_bypass_trigger_cpu_usage修改为advanced_settings.stream_bypass_trigger_cpu_usage

This commit is contained in:
fumingwei
2021-09-14 14:10:19 +08:00
parent 280aee8bfe
commit 93a2033512
5 changed files with 5 additions and 7 deletions

View File

@@ -82,7 +82,7 @@ dictator_enable=1
### note, cpu usage value is percent, for example, config value is 85, means 85%, valid range: [1,100]
### sapp change to bypass state immediately when realtime cpu usage > bypass_trigger_cpu_usage
{% raw %}bypass_trigger_cpu_usage={{ feature.stream_bypass_trigger_cpu_usage }}
{% raw %}bypass_trigger_cpu_usage={{ advanced_settings.stream_bypass_trigger_cpu_usage }}
{% endraw %}
### note, unit of get_cpu_usage_interval is milliseconds(ms)

View File

@@ -1,7 +1,6 @@
feature:
enable_policy_local_cache: 1
enable_stream_bypass_under_ddos: 0
stream_bypass_trigger_cpu_usage: 85
firewall:
enable: 1
@@ -38,4 +37,5 @@ advanced_settings:
stream_tcp_max: 100000
stream_tcp_timeout: 30
stream_udp_max: 100000
stream_udp_timeout: 60
stream_udp_timeout: 60
stream_bypass_trigger_cpu_usage: 85

View File

@@ -1,6 +1,5 @@
feature:
enable_stream_bypass_under_ddos: 0
stream_bypass_trigger_cpu_usage: 85
firewall:
enable: 1
@@ -37,4 +36,5 @@ advanced_settings:
stream_tcp_max: 100000
stream_tcp_timeout: 30
stream_udp_max: 100000
stream_udp_timeout: 60
stream_udp_timeout: 60
stream_bypass_trigger_cpu_usage: 85

View File

@@ -8,7 +8,6 @@ data_center:
feature:
enable_policy_local_cache: 1
enable_stream_bypass_under_ddos: 0
stream_bypass_trigger_cpu_usage: 85
firewall:
enable: 0/1

View File

@@ -7,7 +7,6 @@ data_center:
feature:
enable_stream_bypass_under_ddos: 0
stream_bypass_trigger_cpu_usage: 85
firewall:
enable: 0/1