Skip to content

Commit ebcd1b2

Browse files
author
gaoruoshu
committedOct 29, 2021
add new application: lighttpd
1 parent e156a2c commit ebcd1b2

File tree

2 files changed

+107
-0
lines changed

2 files changed

+107
-0
lines changed
 
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
project: "lighttpd"
2+
maxiterations: 100
3+
startworkload: "systemctl restart lighttpd"
4+
stopworkload: "systemctl stop lighttpd"
5+
object :
6+
-
7+
name : "lighttpd.server_network_backend"
8+
-
9+
name : "lighttpd.server_max_fds"
10+
-
11+
name : "lighttpd.server_listen_backlog"
12+
-
13+
name : "lighttpd.server_stat_cache_engine"
14+
-
15+
name : "lighttpd.server_max_keep_alive_idle"
16+
-
17+
name : "lighttpd.server_max_read_idle"
18+
-
19+
name : "lighttpd.server_max_write_idle"
20+

‎tuning/yamls/tuning_params_all.yaml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4664,4 +4664,91 @@ The default value is 2048. You are advised to change the value to 8192."
46644664
- "true"
46654665
- "false"
46664666
dtype : "string"
4667+
-
4668+
name : "lighttpd.server_network_backend"
4669+
info :
4670+
desc : "The basic network interface for all platforms at the syscalls read() and write()."
4671+
get : cat /etc/lighttpd/lighttpd.conf | grep 'server.network-backend' | awk -F '"' '{print $2}'
4672+
set : sed -i 's/^server.network-backend.*$/server.network-backend="$value"/g' /etc/lighttpd/lighttpd.conf
4673+
needrestart : "true"
4674+
type : "discrete"
4675+
scope :
4676+
- "sendfile"
4677+
- "writev"
4678+
dtype : "string"
4679+
-
4680+
name : "lighttpd.server_max_fds"
4681+
info :
4682+
desc : "The max fds value for lighttpd."
4683+
get : cat /etc/lighttpd/lighttpd.conf | grep 'server.max-fds' | awk -F '"' '{print $2}'
4684+
set : sed -i 's/^server.max-fds.*$/server.max-fds=$value/g' /etc/lighttpd/lighttpd.conf
4685+
needrestart : "true"
4686+
type : "discrete"
4687+
scope :
4688+
- 510
4689+
- 5120
4690+
step : 512
4691+
dtype : "int"
4692+
-
4693+
name : "lighttpd.server_listen_backlog"
4694+
info :
4695+
desc : "Listen-backlog is the size of the listen() backlog queue requested when the lighttpd server ask the kernel to listen() on the provided network address."
4696+
get : cat /etc/lighttpd/lighttpd.conf | grep 'server.listen-backlog' | awk -F '"' '{print $2}'
4697+
set : sed -i 's/^server.listen-backlog.*$/server.listen-backlog=$value/g' /etc/lighttpd/lighttpd.conf
4698+
needrestart : "true"
4699+
type : "discrete"
4700+
scope :
4701+
- 128
4702+
- 2048
4703+
step : 128
4704+
dtype : "int"
4705+
-
4706+
name : "lighttpd.server_stat_cache_engine"
4707+
info :
4708+
desc : "Stat() call caching."
4709+
get : cat /etc/lighttpd/lighttpd.conf | grep 'server.stat-cache-engine' | awk -F '"' '{print $2}'
4710+
set : sed -i 's/^server.stat-cache-engine.*$/server.stat-cache-engine="$value"/g' /etc/lighttpd/lighttpd.conf
4711+
needrestart : "true"
4712+
type : "discrete"
4713+
scope :
4714+
- "disable"
4715+
- "simple"
4716+
- "fam"
4717+
dtype : "string"
4718+
-
4719+
name : "lighttpd.server_max_keep_alive_idle"
4720+
info :
4721+
desc : "How many seconds to keep a keep-alive connection open, until we consider it idle."
4722+
get : cat /etc/lighttpd/lighttpd.conf | grep 'server.max-keep-alive-idle' | awk -F '"' '{print $2}'
4723+
set : sed -i 's/^server.max-keep-alive-idle.*$/server.max-keep-alive-idle=$value/g' /etc/lighttpd/lighttpd.conf
4724+
needrestart : "true"
4725+
type : "continuous"
4726+
scope :
4727+
- 1
4728+
- 20
4729+
dtype : "int"
4730+
-
4731+
name : "lighttpd.server_max_read_idle"
4732+
info :
4733+
desc : "Time to read from a socket before we consider it idle."
4734+
get : cat /etc/lighttpd/lighttpd.conf | grep 'server.max-read-idle' | awk -F '"' '{print $2}'
4735+
set : sed -i 's/^server.max-read-idle.*$/server.max-read-idle=$value/g' /etc/lighttpd/lighttpd.conf
4736+
needrestart : "true"
4737+
type : "continuous"
4738+
scope :
4739+
- 1
4740+
- 100
4741+
dtype : "int"
4742+
-
4743+
name : "lighttpd.server_max_write_idle"
4744+
info :
4745+
desc : "Time to write from a socket before we consider it idle."
4746+
get : cat /etc/lighttpd/lighttpd.conf | grep 'server.max-write-idle' | awk -F '"' '{print $2}'
4747+
set : sed -i 's/^server.max-write-idle.*$/server.max-write-idle=$value/g' /etc/lighttpd/lighttpd.conf
4748+
needrestart : "true"
4749+
type : "continuous"
4750+
scope :
4751+
- 1
4752+
- 100
4753+
dtype : "int"
46674754

0 commit comments

Comments
 (0)