集群模式配置键
针对多节点 ClickHouse 运行 Flare 的精确配置密钥
簇。见../how-to/deploy/run-cluster-mode.md
了解如何打开此功能以及 ../explanation/clustering.md
了解其中每一个的实际作用。
| 钥匙 | 环境变量(Docker 撰写) | 类型 | 默认 | 意义 |
|---|---|---|---|---|
ClickHouse:ClusterMode |
ClickHouse__ClusterMode |
bool |
false |
将 Flare.Ingest/Flare.Api 和 migrate 任务(ADR-0284)切换到 db/clickhouse-cluster/*.sql 架构集,将引导程序 DDL 包装在 ON CLUSTER 'flare_cluster' 中,使 IndexingQueryService 的自省查询在集群范围内进行 (cluster()/clusterAllReplicas()),并在按 ID 跟踪查找时启用 optimize_skip_unused_shards(请参阅 ADR-0003)。 |
LogPattern:SharedStore |
LogPattern__SharedStore |
bool |
false |
false(默认):每个 Flare.Ingest 副本保留其自己的内存中 Drain 模式簇树 (InMemoryPatternClusterStore)。 true:模式集群通过 RedisPatternClusterStore 在副本之间共享,由 (tokenCount, firstToken) 存储桶作为键控。在 docker-compose.cluster.yml 中的 ingest-1/ingest-2 上均进行设置。 |
LogPattern:SharedTemplateTtl |
LogPattern__SharedTemplateTtl |
期间 | 72h |
仅适用于 LogPattern:SharedStore=true 时。对 Redis 支持的模式存储进行基于 TTL 的逐出(内存中存储使用精确的 MaxTemplates LRU 上限)。 |
有关的
system.clusters、system.replicas— 通过索引页面实时读取 集群面板(GET /api/indexing/cluster);看../explanation/clustering.md。
最后更新: