I'm writing a javascript program that will inject test data records into Elasticsearch, several thousand at a time.
It's using a hot sleep to make the program slow down so the timestamp on each record is at least a few ms different.
What I appear to be seeing is that none of the index calls are made/passed to elastic until the program finishes, at which point all of them are passed in. Almost like something is buffering them until my script has finished.
Is there any way to get a client.index() request processed immediately? I'd like to be able to look at the data in kibana while it's still being generated so I can simulate near real time processing.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.