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 da5e35b

Browse files
committedOct 27, 2021
add new application: zookeeper
1 parent 69ed4bc commit da5e35b

File tree

2 files changed

+137
-0
lines changed

2 files changed

+137
-0
lines changed
 

‎tuning/yamls/tuning_params_all.yaml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4423,3 +4423,117 @@ The default value is 2048. You are advised to change the value to 8192."
44234423
- 50000
44244424
step : 100
44254425
dtype : "int"
4426+
-
4427+
name : "zookeeper.autopurge_purgeInterval"
4428+
info :
4429+
desc : "Purge task interval in hours. Set to 0 to disable auto purge feature."
4430+
get : cat /opt/zookeeper/conf/zoo.cfg | grep 'autopurge.purgeInterval' | awk -F '=' '{print$2}'
4431+
set : sed -i "s/autopurge.purgeInterval.*/autopurge.purgeInterval=$value/" /opt/zookeeper/conf/zoo.cfg
4432+
needrestart : "false"
4433+
type : "continuous"
4434+
scope :
4435+
- 0
4436+
- 5
4437+
dtype : "int"
4438+
-
4439+
name : "zookeeper.autopurge_snapRetainCount"
4440+
info :
4441+
desc : "The number of snapshots to retain in dataDir."
4442+
get : cat /opt/zookeeper/conf/zoo.cfg | grep 'autopurge.snapRetainCount' | awk -F '=' '{print$2}'
4443+
set : sed -i "s/autopurge.snapRetainCount.*/autopurge.snapRetainCount=$value/" /opt/zookeeper/conf/zoo.cfg
4444+
needrestart : "false"
4445+
type : "continuous"
4446+
scope :
4447+
- 1
4448+
- 10
4449+
dtype : "int"
4450+
-
4451+
name : "zookeeper.tickTime"
4452+
info :
4453+
desc : "The number of milliseconds of each tick."
4454+
get : cat /opt/zookeeper/conf/zoo.cfg | grep 'tickTime' | awk -F '=' '{print$2}'
4455+
set : sed -i "s/tickTime.*/tickTime=$value/" /opt/zookeeper/conf/zoo.cfg
4456+
needrestart : "false"
4457+
type : "discrete"
4458+
scope :
4459+
- 500
4460+
- 10000
4461+
step : 500
4462+
dtype : "int"
4463+
-
4464+
name : "zookeeper.initLimit"
4465+
info :
4466+
desc : "The number of ticks that the initial synchronization phase can take."
4467+
get : cat /opt/zookeeper/conf/zoo.cfg | grep 'initLimit' | awk -F '=' '{print$2}'
4468+
set : sed -i "s/initLimit.*/initLimit=$value/" /opt/zookeeper/conf/zoo.cfg
4469+
needrestart : "false"
4470+
type : "continuous"
4471+
scope :
4472+
- 5
4473+
- 50
4474+
dtype : "int"
4475+
-
4476+
name : "zookeeper.syncLimit"
4477+
info :
4478+
desc : "The number of ticks that can pass between sending a request and getting an acknowledgement."
4479+
get : cat /opt/zookeeper/conf/zoo.cfg | grep 'syncLimit' | awk -F '=' '{print$2}'
4480+
set : sed -i "s/syncLimit.*/syncLimit=$value/" /opt/zookeeper/conf/zoo.cfg
4481+
needrestart : "false"
4482+
type : "continuous"
4483+
scope :
4484+
- 1
4485+
- 50
4486+
dtype : "int"
4487+
-
4488+
name : "zookeeper.maxClientCnxns"
4489+
info :
4490+
desc : "The maximum number of client connections.."
4491+
get : cat /opt/zookeeper/conf/zoo.cfg | grep 'maxClientCnxns' | awk -F '=' '{print$2}'
4492+
set : sed -i "s/maxClientCnxns.*/maxClientCnxns=$value/" /opt/zookeeper/conf/zoo.cfg
4493+
needrestart : "false"
4494+
type : "discrete"
4495+
scope :
4496+
- 5
4497+
- 5000
4498+
step : 5
4499+
dtype : "int"
4500+
-
4501+
name : "zookeeper.maxSessionTimeout"
4502+
info :
4503+
desc : "The maximum number of session timeout."
4504+
get : cat /opt/zookeeper/conf/zoo.cfg | grep 'maxSessionTimeout' | awk -F '=' '{print$2}'
4505+
set : sed -i "s/maxSessionTimeout.*/maxSessionTimeout=$value/" /opt/zookeeper/conf/zoo.cfg
4506+
needrestart : "false"
4507+
type : "discrete"
4508+
scope :
4509+
- 100000
4510+
- 100000000
4511+
step : 100000
4512+
dtype : "int"
4513+
-
4514+
name : "zookeeper.preAllocSize"
4515+
info :
4516+
desc : "Pre-provisioned disk space for subsequent writes to the transaction log."
4517+
get : cat /opt/zookeeper/conf/zoo.cfg | grep 'preAllocSize' | awk -F '=' '{print$2}'
4518+
set : sed -i "s/preAllocSize.*/preAllocSize=$value/" /opt/zookeeper/conf/zoo.cfg
4519+
needrestart : "false"
4520+
type : "discrete"
4521+
scope :
4522+
- 65536
4523+
- 5242880
4524+
step : 65536
4525+
dtype : "int"
4526+
-
4527+
name : "zookeeper.snapCount"
4528+
info :
4529+
desc : "Trigger a snapshot after every snapCount transaction log output."
4530+
get : cat /opt/zookeeper/conf/zoo.cfg | grep 'snapCount' | awk -F '=' '{print$2}'
4531+
set : sed -i "s/snapCount.*/snapCount=$value/" /opt/zookeeper/conf/zoo.cfg
4532+
needrestart : "false"
4533+
type : "discrete"
4534+
scope :
4535+
- 10000
4536+
- 10000000
4537+
step : 10000
4538+
dtype : "int"
4539+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
project: "zookeeper"
2+
maxiterations: 100
3+
startworkload: "/opt/zookeeper/bin/zkServer.sh restart"
4+
stopworkload: "/opt/zookeeper/bin/zkServer.sh stop"
5+
object :
6+
-
7+
name : "zookeeper.autopurge_purgeInterval"
8+
-
9+
name : "zookeeper.autopurge_snapRetainCount"
10+
-
11+
name : "zookeeper.tickTime"
12+
-
13+
name : "zookeeper.initLimit"
14+
-
15+
name : "zookeeper.syncLimit"
16+
-
17+
name : "zookeeper.maxClientCnxns"
18+
-
19+
name : "zookeeper.maxSessionTimeout"
20+
-
21+
name : "zookeeper.preAllocSize"
22+
-
23+
name : "zookeeper.snapCount"

0 commit comments

Comments
 (0)
Please sign in to comment.