除非重启 monstache,否则 Mongo 数据不会同步到 Elasticsearch

问题描述 投票:0回答:1

`我正在使用 Monstache 6.7.11、Elasticsearch 7.17 和 Mongodb 4.0 版本。

在我们重新启动 monstache 之前无法将 Mongodb 数据同步到 elasticsearch。

Below is my monstache.toml file

mongo-url = "mongodb://localhost:27017"

elasticsearch-urls = ["http://localhost:9200"]

elasticsearch-max-conns = 100

replay = true

resume = true

resume-name = "andes"

resume-strategy = 1

config-database-name = "andes"

enable-oplog = false

direct-read-namespaces = ["andes.SS_AA_Test","andes.qmf__source","andes.qmf__dashboard"] 

change-stream-namespaces = ["andes.SS_AA_Test","andes.qmf__source","andes.qmf__dashboard"] 

index-as-update = true 

gzip = false

verbose = true 

cluster-name = 'andes'

exit-after-direct-reads = false

[[mapping]]
namespace = "andes.SS_AA_Test" 
index = "SS_AA" 

[[mapping]]
namespace = "andes.qmf__dashboard" 
index = "andes" 
[[mapping]]
namespace = "andes.qmf__message" 
index = "andes" 
[[mapping]]
namespace = "andes.qmf__notification" 
index = "andes" 
[[mapping]]
namespace = "andes.qmf__package" 
index = "andes" 
[[mapping]]
namespace = "andes.qmf__query" 
index = "andes" 
[[mapping]]
namespace = "andes.qmf__resource" 
index = "andes" 
[[mapping]]
namespace = "andes.qmf__schedule" 
index = "andes" 
[[mapping]]
namespace = "andes.qmf__slog" 
index = "andes"
[[mapping]]
namespace = "andes.qmf__source" 
index = "andes"
[[mapping]]
namespace = "andes.qmf__story" 
index = "andes"
[[mapping]]
namespace = "andes.qmf__subset" 
index = "andes"

[logs]
info = "C:/Users/dsureshbhirud/Desktop/Elasticsearch_7.17/Mon_longs/monstache/logs/info.log"
warn = "C:/Users/dsureshbhirud/Desktop/Elasticsearch_7.17/Mon_longs/monstache/logs/warn.log"
error = "C:/Users/dsureshbhirud/Desktop/Elasticsearch_7.17/Mon_longs/monstache/logs/error.log"
trace = "C:/Users/dsureshbhirud/Desktop/Elasticsearch_7.17/Mon_longs/monstache/logs/trace.log"

关于如何解决这个问题的任何建议

谢谢

尝试更改流命名空间和其他 monstache 配置。

期望:- Monstache 应该在不重启 monstache 的情况下将数据从 mongodb 同步到 elasticsearch `

mongodb elasticsearch data-synchronization monstache
1个回答
0
投票

我也面临着同样的问题,你有解决这个问题的方法吗?

© www.soinside.com 2019 - 2024. All rights reserved.