🏷️ 标签(1)

🗂️ 分类(1)

2.2 集群部署

2.2 集群部署

目标

搭建具备高可用能力的 Graylog 集群,适合中等规模日志量。

参考拓扑

  • 2~3 台 Graylog Server(前置 LB)

  • MongoDB 副本集(3 节点)

  • OpenSearch/Elasticsearch 集群(3+ 节点)

关键注意点

  1. 时间同步:所有节点必须 NTP 同步

  2. 一致配置:Graylog 节点配置保持一致

  3. 共享密钥password_secret 在所有节点相同

  4. 负载均衡:统一入口 9000 与 Inputs 端口

Graylog 节点示例配置

password_secret = <与其他节点一致>
root_password_sha2 = <sha256密码>
http_bind_address = 0.0.0.0:9000
elasticsearch_hosts = http://es01:9200,http://es02:9200,http://es03:9200
mongodb_uri = mongodb://mongo01,mongo02,mongo03/graylog?replicaSet=rs0

部署步骤概览

  1. 部署 MongoDB 副本集

  2. 部署 ES/OS 集群

  3. 部署多台 Graylog 并接入 LB

  4. 配置 Inputs 与 Stream

小结

集群部署提升可用性与性能。下一章介绍高可用与负载均衡设计。


下一节2.3 高可用与负载均衡

返回目录 | 返回首页