简体中文
Appearance
简体中文
Appearance
本章节详细介绍如何根据系统资源情况对 Datalayers 进行参数调优,以提升系统性能与稳定性。合理的配置能够充分发挥硬件潜力,确保系统在高负载下仍能保持优异的性能表现。
在 Datalayers 的架构设计中,系统线程被明确划分为两类
# The configurations of runtime.
[runtime]
# The configurations of default runtime
#[runtime.default]
# Isolate number of CPU, float value
# >=1 means absolute number of CPU
# 0 means do not use isolate cpu for this runtime
# >0 and <1 means percentage of all CPU cores, 0.2 means 20% e.g.
# Default: 0.0
#cpu_cores = 0.0
# The configurations of background runtime
[runtime.background]
cpu_cores = 4以上配置表示 CPU 的最后4个 Core 用于后台任务,其余的为前台线程。详见:runtime
在通过 InfluxDB 行协议写入时,Datalayers 支持根据行协议约定进行自动建表与改表,系统在高负载情况下,改表过程中可能会对写入性能产生一定影响,因此在生产环境中我们建议将自动改表功能关闭掉。 配置示例:
[ts_engine.schemaless]
# When using schemaless to write data, is automatic table modification allowed.
# Default: false.
auto_alter_table = false