I am working on indexing firebase data for elastic search with a firebase flashlight . After running app.js (indexer) in the library, it stops after throwing 30000ms:
failed to index indexname/resource/ffd5517e-cab0-4bec-8989-4f6d760f18eb: Error: Request Timeout after 30000ms
because of which most bomb data are not indexed.
I set requestTimeout parameter in app.js when initializing elastic search
var esc = new ElasticSearch.Client({
hosts: [
{
host: conf.ES_HOST,
port: conf.ES_PORT,
auth: (conf.ES_USER && conf.ES_PASS) ? conf.ES_USER + ':' + conf.ES_PASS : null
}
],
requestTimeout: 1200000
});
in this case, the query is always executed, and the indexer timers after 30 seconds when the queries are executed.
This happens when indexing the dev database, which I can control by giving the heafty timeout duration, but for production data I cannot decide the timeout.
Can someone tell me how to handle requestTimeout so that it does not die out when indexing firebase data.
, Elasticsearch : ,
Elasticsearch Firebase ()
.