我正在使用具有以下配置的 EventStore:
---
RunProjections: All
ClusterSize: 2
Db: /opt/eventstore/db
DiscoverViaDns: false
GossipSeed: 10.0.100.11:1113
GossipOnExt: false
Log: /opt/eventstore/logs
Index: /opt/eventstore/indexes
IntIp: 10.0.100.10
IntTcpPort: 1112
IntHttpPort: 1113
ExtIp: 10.0.100.10
ExtTcpPort: 2112
ExtHttpPort: 2113
ExtIpAdvertiseAs: xx.xx.xx.xx (public ip)
AdminOnExt: true
我的集群按预期工作,但 UI 不可用,显示错误
Bad Request (Invalid host)
如果我将配置更改为单个节点:
---
RunProjections: All
Db: /opt/eventstore/db
DiscoverViaDns: false
Log: /opt/eventstore/logs
Index: /opt/eventstore/indexes
IntIp: 10.0.100.10
IntTcpPort: 1112
IntHttpPort: 1113
ExtIp: 0.0.0.0
ExtTcpPort: 2112
ExtHttpPort: 2113
ExtIpAdvertiseAs: xx.xx.xx.xx (public ip)
AdminOnExt: true
webui 可用。因此,我尝试将集群配置的 ExtIp 设置为 0.0.0.0,如许多博客文章和论坛讨论中所述,但集群无法启动:
eventstored[22658]: [22658,13,10:02:10.495] ELECTIONS: (V=11) SHIFT TO LEADER ELECTION.
eventstored[22658]: [22658,13,10:02:10.495] ELECTIONS: (V=11) VIEWCHANGE FROM [10.0.100.10:1113, {a9c8292f-e342-4c53-b62c-fe82bac2d450}].
eventstored[22658]: [22658,07,10:02:11.407] Verifying hash for TFChunk '/opt/eventstore/db/chunk-000013.000000'...
eventstored[22658]: [22658,13,10:02:11.500] ELECTIONS: (V=11) TIMED OUT! (S=ElectingLeader, M=).
eventstored[22658]: [22658,13,10:02:11.500] ELECTIONS: (V=12) SHIFT TO LEADER ELECTION.
eventstored[22658]: [22658,13,10:02:11.500] ELECTIONS: (V=12) VIEWCHANGE FROM [10.0.100.10:1113, {a9c8292f-e342-4c53-b62c-fe82bac2d450}].
知道如何让集群和 webUI 正常工作吗?
谢谢。