配置文件介绍 ¶
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.LogLevel | INFO | 日志等级 |
Writable.LogPath | hummingbird-core.log | 日志路径 |
[Service] | - | 服务 |
Service.Host | 0.0.0.0 | 主机地址 |
Service.ServerBindAddr | '' | 服务绑定地址 |
Service.Port | 58081 | 端口 |
Service.Protocol | http | 协议 |
Service.Timeout | 45000 | 超时时间 |
[RpcServer] | - | Rpc服务 |
RpcServer.Address | 0.0.0.0:57081 | 地址 |
RpcServer.UseTLS | false | 是否使用TLS |
RpcServer.CertFile | '' | 证书地址 |
RpcServer.KeyFile | '' | 证书地址 |
[Clients] | - | 客户端 |
[Clients.Ekuiper] | - | ekuiper边缘计算引擎 |
Clients.Ekuiper.Protocol | http | 协议 |
Clients.Ekuiper.Host | 127.0.0.1 | 主机地址 |
Clients.Ekuiper.Port | 9081 | 端口 |
[WebServer] | - | Web服务 |
WebServer.Host | 0.0.0.0 | 主机地址 |
WebServer.Port | 3000 | 端口 |
WebServer.Timeout | 120 | 超时时间 |
[Databases] | - | 数据库 |
[Databases.Metadata.Primary] | - | 元数据库 |
Databases.Metadata.Primary.Type | sqlite、mysql | 类型 |
Databases.Metadata.Primary.DataSource | 连接地址 | |
[Databases.Data.Primary] | - | 时序数据库 |
Databases.Data.Primary.Type | leveldb、tdengine | 类型 |
Databases.Data.Primary.DataSource | 地址 | |
[MessageQueue] | - | 消息队列 |
MessageQueue.Protocol | tcp | 消息队列协议 |
MessageQueue.Host | 127.0.0.1 | 主机地址 |
MessageQueue.Port | 58090 | 端口 |
MessageQueue.Type | mqtt | 类型 |
MessageQueue.PublishTopicPrefix | eventbus/in | Topic |