简体   繁体   English

Elasticsearch中缺少的文档

[英]Documents missing in Elasticsearch

I am using elasticsearch 0.90.10 . 我正在使用0.90.10 Using mongodb river I indexed the documents from mongodb. 我使用mongodb river索引了mongodb中的文档。 The initial load and indexing are working fine. 初始加载和索引工作正常。 But after some time the count of documents starts decreasing gradually (losing the documents). 但是一段时间后,文档数量开始逐渐减少(丢失文档)。 I am using mongodb-river version 1.7.4 我正在使用mongodb-river版本1.7.4

These are the configs in my elasticsearch.yml. 这些是我的elasticsearch.yml中的配置。

Cluster Properties 集群属性

cluster.name: 192.168.31.50:9300
index.store.type: niofs
node.max_local_storage_nodes: 1
transport.tcp.port: 9300
http.port: 9200
path.logs: /home/test/Test/scripts/../logs/search
discovery.zen.ping.multicast.enabled: false

Search pool 搜索池

threadpool.search.type: fixed
threadpool.search.size: 5
threadpool.search.queue_size: 200

Bulk pool 散水池

threadpool.bulk.type: fixed
threadpool.bulk.size: 5
threadpool.bulk.queue_size: 300

Index pool 索引池

threadpool.index.type: fixed
threadpool.index.size: 5
threadpool.index.queue_size: 200

Indices settings 指数设定

indices.memory.index_buffer_size: 30%
indices.memory.min_shard_index_buffer_size: 12mb
indices.memory.min_index_buffer_size: 96mb

Cache Sizes 快取大小

indices.fielddata.cache.size: 15%
indices.fielddata.cache.expire: 6h
indices.cache.filter.size: 15%
indices.cache.filter.expire: 6h

Indexing Settings for Writes 写入的索引设置

index.refresh_interval: 30s
index.translog.flush_threshold_ops: 50000

These configurations are causing document loss in my production environment. 这些配置在我的生产环境中导致文档丢失。 What can I do to pinpoint the exact problem? 我该怎么做才能找出确切的问题?

Thanks in advance! 提前致谢!

Is it possible the ttl property being set? 是否可以设置ttl属性? That's the only thing I've ever heard of "removing" documents. 这是我听说过的“删除”文档的唯一内容。

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-ttl-field.html http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-ttl-field.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM