mirror of
https://gitee.com/openeuler/A-Tune.git
synced 2025-12-06 08:08:59 +08:00
Modifying the Usage Description of Log_dir
This commit is contained in:
@@ -532,8 +532,10 @@ tuning为系统进行离线调优时需要用到的参数信息。
|
||||
[log]
|
||||
# either "debug", "info", "warn", "error", "critical", default is "info"
|
||||
level = info
|
||||
# you can set log_dir to specify the location where the log is written. default location is /var/log/messages
|
||||
# log_dir = "/var/log/atune"
|
||||
# you can set log_dir to specify the location where the log is written,specified directory can only be under /var/log/atune,default location is /var/log/messages
|
||||
# log_dir = /var/log/atune
|
||||
|
||||
|
||||
|
||||
#################################### monitor ###############################
|
||||
[monitor]
|
||||
@@ -632,8 +634,9 @@ A-Tune engine配置文件/etc/atuned/engine.cnf的配置项说明如下:
|
||||
[log]
|
||||
# either "debug", "info", "warn", "error", "critical", default is "info"
|
||||
level = info
|
||||
# you can set log_dir to specify the location where the log is written. default location is /var/log/messages
|
||||
# log_dir = "/var/log/atune"
|
||||
# you can set log_dir to specify the location where the log is written,specified directory can only be under /var/log/atune,default location is /var/log/messages
|
||||
# log_dir = /var/log/atune
|
||||
|
||||
|
||||
#################################### database ###############################
|
||||
[database]
|
||||
|
||||
@@ -101,8 +101,6 @@ class AtunedConfig:
|
||||
ENGINE_CERT_PATH + 'client.key')
|
||||
AtunedConfig.level = get_or_default(config, 'log', 'level', 'info')
|
||||
AtunedConfig.log_dir = get_or_default(config, 'log', 'log_dir', None)
|
||||
if AtunedConfig.log_dir:
|
||||
AtunedConfig.log_dir.strip('"')
|
||||
AtunedConfig.module = get_or_default(config, 'monitor', 'module', 'mem_topo, cpu_topo')
|
||||
AtunedConfig.disk = get_or_default(config, 'system', 'disk', 'sda')
|
||||
AtunedConfig.network = get_or_default(config, 'system', 'network', 'enp5s0')
|
||||
|
||||
@@ -62,8 +62,6 @@ class EngineConfig:
|
||||
'tlsengineserverkeyfile', ENGINE_CERT_PATH + 'server.key')
|
||||
EngineConfig.level = get_or_default(config, 'log', 'level', 'info')
|
||||
EngineConfig.log_dir = get_or_default(config, 'log', 'level', None)
|
||||
if EngineConfig.log_dir:
|
||||
EngineConfig.log_dir.strip('"')
|
||||
EngineConfig.db_enable = get_or_default_bool(config, 'database', 'db_enable', False)
|
||||
if EngineConfig.db_enable:
|
||||
EngineConfig.database = get_or_default(config, 'database', 'database', 'PostgreSQL')
|
||||
|
||||
@@ -72,8 +72,8 @@ tlsengineclientkeyfile = /etc/atuned/engine_certs/client.key
|
||||
[log]
|
||||
# either "debug", "info", "warn", "error", "critical", default is "info"
|
||||
level = info
|
||||
# you can set log_dir to specify the location where the log is written. default location is /var/log/messages
|
||||
# log_dir = "/var/log/atune"
|
||||
# you can set log_dir to specify the location where the log is written,specified directory can only be under /var/log/atune,default location is /var/log/messages
|
||||
# log_dir = /var/log/atune
|
||||
|
||||
#################################### monitor ###############################
|
||||
[monitor]
|
||||
|
||||
@@ -28,6 +28,8 @@ tlsengineserverkeyfile = /etc/atuned/engine_certs/server.key
|
||||
[log]
|
||||
# either "debug", "info", "warn", "error", "critical", default is "info"
|
||||
level = info
|
||||
# you can set log_dir to specify the location where the log is written,specified directory can only be under /var/log/atune,default location is /var/log/messages
|
||||
# log_dir = /var/log/atune
|
||||
|
||||
#################################### database ###############################
|
||||
[database]
|
||||
@@ -78,4 +80,4 @@ net_stat_rxkbs = 70
|
||||
net_stat_txkbs = 70
|
||||
|
||||
# disk I/OF
|
||||
storage_stat_util = 70
|
||||
storage_stat_util = 70
|
||||
|
||||
Reference in New Issue
Block a user