we are seeing slowness when inserting documents in the elastic server.
we are using 6.8.5 elastic server and using 6.8.5 RestHighLevelClient.
IndexResponse resp = restHighLevelClient.index(indexRequest, RequestOptions.DEFAULT);
Above lines are executing 5-6 seconds and inside that java.util.concurrent.parkNanos method is executing for 4-5 seconds. is there any reason behind this slowness ? We are running 2 threads parallelly to insert the documents. is there a way to debug this issue from elastic side ?
We tried with Restarting elastic VM's & monitored network traffic as well. what we noticed is There is some thing wrong with that index. Suddenly Insertion on that particular index taking too much time. Appreciate any help on identify the reason for this problem.