Elasticsearch のインデックスに 43Mb のドキュメントを追加しようとしています。Python で一括 API を使用します。ここに私のコードのスニペットがあります:
from elasticsearch import helpers
from elasticsearch import Elasticsearch
document = <read a 43Mb json file, with two fields>
action = [
{
"_index":"test_index",
"_type":"test_type",
"_id": 1
}
]
action[0]["_source"]=document
es = Elasticsearch(hosts=<HOST>:9200, timeout = 30)
helpers.bulk(es, action)
このコードは常にタイムアウトします。また、さまざまなタイムアウト値を試しました。ここで何か不足していますか?