Skip to content

配置文件介绍

hummingbird-core服务配置文件

toml
[Writable]
LogLevel = 'INFO'
LogPath = 'hummingbird/logs/hummingbird-core.log'

[Service]
Host = '0.0.0.0'
ServerBindAddr = '' # Leave blank so default to Host value unless different value is needed.
Port = 58081
Protocol = 'http'
Timeout = 45000

[RpcServer]
Address = '0.0.0.0:57081'
UseTLS = false
CertFile = ''
KeyFile = ''

[Clients]
[Clients.Ekuiper]
Protocol = 'http'
Host = '127.0.0.1'
Port = 9081

[WebServer]
Host = '0.0.0.0'
Port = 3000
Timeout = 120

[Databases]
[Databases.Metadata]
[Databases.Metadata.Primary]
Type = 'sqlite'
DataSource = 'hummingbird/db-data/core-data/core.db?_timeout=5000'

[Databases.Data]
[Databases.Data.Primary]
Type = 'leveldb'
DataSource = 'hummingbird/db-data/leveldb-core-data/'

[MessageQueue]
Protocol = 'tcp'
Host = '127.0.0.1'
Port = 58090
Type = 'mqtt'
PublishTopicPrefix = 'eventbus/in'
配置名称配置值说明
[Writable]-日志
Writable.LogLevelINFO日志等级
Writable.LogPathhummingbird-core.log日志路径
[Service]-服务
Service.Host0.0.0.0主机地址
Service.ServerBindAddr''服务绑定地址
Service.Port58081端口
Service.Protocolhttp协议
Service.Timeout45000超时时间
[RpcServer]-Rpc服务
RpcServer.Address0.0.0.0:57081地址
RpcServer.UseTLSfalse是否使用TLS
RpcServer.CertFile''证书地址
RpcServer.KeyFile''证书地址
[Clients]-客户端
[Clients.Ekuiper]-ekuiper边缘计算引擎
Clients.Ekuiper.Protocolhttp协议
Clients.Ekuiper.Host127.0.0.1主机地址
Clients.Ekuiper.Port9081端口
[WebServer]-Web服务
WebServer.Host0.0.0.0主机地址
WebServer.Port3000端口
WebServer.Timeout120超时时间
[Databases]-数据库
[Databases.Metadata.Primary]-元数据库
Databases.Metadata.Primary.Typesqlite、mysql类型
Databases.Metadata.Primary.DataSource连接地址
[Databases.Data.Primary]-时序数据库
Databases.Data.Primary.Typeleveldb、tdengine类型
Databases.Data.Primary.DataSource地址
[MessageQueue]-消息队列
MessageQueue.Protocoltcp消息队列协议
MessageQueue.Host127.0.0.1主机地址
MessageQueue.Port58090端口
MessageQueue.Typemqtt类型
MessageQueue.PublishTopicPrefixeventbus/inTopic