goInception run by ./goInception -config=config/config.toml
, this document show the detail of the configuration file.
goInception based on some TiDB source code, so some config parameters can check TiDB documents
config.toml
contains general config such as host
and port
, and group config block such as [inc]
and [log]
etc.
Demo(the demo blow just shows the structure of config file, see details)
host = "0.0.0.0"
port = 4000
path = "/tmp/tidb"
[log]
# log setting
level = "info"
format = "text"
[log.file]
# log file setting
filename = ""
max-size = 300
[inc]
# audit option
enable_nullable = true
enable_drop_table = false
check_table_comment = false
check_column_comment = false
[osc]
# pt-osc options
osc_on = false
osc_min_table_size = 16
[ghost]
# gh-ost options
ghost_allow_on_master = true
IP address, default 0.0.0.0
Service port, default 4000
TiDB date path, create some TiDB system table. If null, create in memory. Advice to set a specific data path for speed up start.
all audit options in here
all pt-osc options in here
all gh-ost options in here
log level,default info
option: debug
, info
, warn
, error
.
log format,default text
option: json
, text
, console
Diable timestamp, default false
log file name, default "", advice to set specific log file name for tracing.
Max size of log file, default 300MB
Max days of log file keep. default 0
, it means keep all log files..
Max numbers of log file keep. default 0
, it means keep all log files.
If turn on log rotate, default true
, it means turn on.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Комментарий ( 0 )