简体   繁体   English

Elasticsearch 索引文档到现有索引 504 超时

[英]Elasticsearch index document to existing index 504 timeout

When I try to index a document that I made an index for using当我尝试索引我为使用创建索引的文档时

curl -vvv -XPUT 'https://es/existing_index/existing_or_nonexsitgin_mapping/1?timeout=999h ...document

I get a 504 (despite the timeout I set. The index is currently empty).我得到一个 504(尽管我设置了超时。索引当前为空)。 But when I try to index the document into a nonexisting index it returns successfully immediately:但是,当我尝试将文档索引到不存在的索引中时,它会立即成功返回:

curl -vvv -XPUT 'https://es/NONEXISTING_index/existing_or_nonexsitgin_mapping/1?timeout=999h ...document

But the index is created incorrectly because I didn't create it.但是索引创建不正确,因为我没有创建它。

I use elastic search version 2.3.我使用弹性搜索 2.3 版。

Thanks!谢谢!

I found the problem - the index had a property for amount of shards and replicas which exceeded the actual amount of available shards on the host.我发现了问题 - 索引具有超过主机上实际可用分片数量的分片和副本数量的属性。 Too bad there was no error when creating the index.太糟糕了,创建索引时没有错误。

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

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