Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 80ea56e

Browse files
author
gaoruoshu
committedNov 1, 2021
add new application: httpd
1 parent a0598f8 commit 80ea56e

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed
 
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
project: "httpd"
2+
maxiterations: 100
3+
startworkload: "systemctl restart httpd"
4+
stopworkload: "systemctl stop httpd"
5+
object :
6+
-
7+
name : "httpd.StartServers"
8+
-
9+
name : "httpd.MinSpareThreads"
10+
-
11+
name : "httpd.MaxSpareThreads"
12+
-
13+
name : "httpd.ThreadsPerChild"
14+
-
15+
name : "httpd.MaxRequestWorkers"
16+
-
17+
name : "httpd.MaxConnectionsPerChild"
18+

‎tuning/yamls/tuning_params_all.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5126,4 +5126,76 @@ The default value is 2048. You are advised to change the value to 8192."
51265126
- "true"
51275127
- "false"
51285128
dtype : "string"
5129+
-
5130+
name : "httpd.StartServers"
5131+
info :
5132+
desc : "Number of started subprocesses."
5133+
get : cat /etc/httpd/conf.modules.d/01-cgi.conf | grep "StartServers" | awk -F " " '{print $2}'
5134+
set : sed -i 's/^StartServers.*$/StartServers $valuem/g' /etc/httpd/conf.modules.d/01-cgi.conf
5135+
needrestart : "true"
5136+
type : "continuous"
5137+
scope :
5138+
- 1
5139+
- 128
5140+
dtype : "int"
5141+
-
5142+
name : "httpd.MinSpareThreads"
5143+
info :
5144+
desc : "Minimum number of worker threads reserved for spare."
5145+
get : cat /etc/httpd/conf.modules.d/01-cgi.conf | grep "MinSpareThreads" | awk -F " " '{print $2}'
5146+
set : sed -i 's/^MinSpareThreads.*$/MinSpareThreads $valuem/g' /etc/httpd/conf.modules.d/01-cgi.conf
5147+
needrestart : "true"
5148+
type : "continuous"
5149+
scope :
5150+
- 1
5151+
- 128
5152+
dtype : "int"
5153+
-
5154+
name : "httpd.MaxSpareThreads"
5155+
info :
5156+
desc : "Maximum number of worker threads reserved for spare."
5157+
get : cat /etc/httpd/conf.modules.d/01-cgi.conf | grep "MaxSpareThreads" | awk -F " " '{print $2}'
5158+
set : sed -i 's/^MaxSpareThreads.*$/MaxSpareThreads $valuem/g' /etc/httpd/conf.modules.d/01-cgi.conf
5159+
needrestart : "true"
5160+
type : "continuous"
5161+
scope :
5162+
- 1
5163+
- 128
5164+
dtype : "int"
5165+
-
5166+
name : "httpd.ThreadsPerChild"
5167+
info :
5168+
desc : "Number of worker threads for the server process."
5169+
get : cat /etc/httpd/conf.modules.d/01-cgi.conf | grep "ThreadsPerChild" | awk -F " " '{print $2}'
5170+
set : sed -i 's/^ThreadsPerChild.*$/ThreadsPerChild $valuem/g' /etc/httpd/conf.modules.d/01-cgi.conf
5171+
needrestart : "true"
5172+
type : "continuous"
5173+
scope :
5174+
- 1
5175+
- 128
5176+
dtype : "int"
5177+
-
5178+
name : "httpd.MaxRequestWorkers"
5179+
info :
5180+
desc : "Maximum number of worker threads on the server."
5181+
get : cat /etc/httpd/conf.modules.d/01-cgi.conf | grep "MaxRequestWorkers" | awk -F " " '{print $2}'
5182+
set : sed -i 's/^MaxRequestWorkers.*$/MaxRequestWorkers $valuem/g' /etc/httpd/conf.modules.d/01-cgi.conf
5183+
needrestart : "true"
5184+
type : "continuous"
5185+
scope :
5186+
- 1
5187+
- 128
5188+
dtype : "int"
5189+
-
5190+
name : "httpd.MaxConnectionsPerChild"
5191+
info :
5192+
desc : "Maximum number of process connections on the server. The value 0 indicates that the number is not limited."
5193+
get : cat /etc/httpd/conf.modules.d/01-cgi.conf | grep "MaxConnectionsPerChild" | awk -F " " '{print $2}'
5194+
set : sed -i 's/^MaxConnectionsPerChild.*$/MaxConnectionsPerChild $valuem/g' /etc/httpd/conf.modules.d/01-cgi.conf
5195+
needrestart : "true"
5196+
type : "continuous"
5197+
scope :
5198+
- 0
5199+
- 128
5200+
dtype : "int"
51295201

0 commit comments

Comments
 (0)
Please sign in to comment.