# Elasticsearch write performance

**URL:** <https://discuss.elastic.co/t/elasticsearch-write-performance/290646>\
**Category:** Elasticsearch\
**Created:** [December 1, 2021, 10:39am UTC](https://discuss.elastic.co/t/elasticsearch-write-performance/290646 "2021-12-01T10:39:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![qixian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qixian/32/97437_2.png) [@qixian](https://discuss.elastic.co/u/qixian)\
**Post date:** [December 1, 2021, 10:39am UTC](https://discuss.elastic.co/t/elasticsearch-write-performance/290646/1 "2021-12-01T10:39:09Z")

</div>

helllo,when i write data to Elasticsearch using the bulk api,which process is flink consume the data of kafka then write to Elasticsearch.sometimes the write performance has Large fluctuations，I want to kown when the elasticearch master node to publish the clusterstate to other nodes which maybe block the write performance? I konw when the no master block param value is write will block the write. I want to have a help about the question how to improve the writing performance. and the picture is the log from the elasticearch master node.

 ![thumbnail_c213383009ad16438931b2b31264158c](https://us1.discourse-cdn.com/elastic/original/3X/f/7/f7fc8c9b59a03dd2977f7b66895e8f84ee318cd6.png)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 1, 2021, 11:34am UTC](https://discuss.elastic.co/t/elasticsearch-write-performance/290646/2 "2021-12-01T11:34:34Z")

</div>

What is the full output of the [cluster stats API](https://www.elastic.co/guide/en/elasticsearch/reference/7.15/cluster-stats.html)? What is the size and structure of the cluster? What type of hardware and storage is used?

---

<div class="post-metadata">

**Author:** ![qixian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qixian/32/97437_2.png) [@qixian](https://discuss.elastic.co/u/qixian)\
**Post date:** [December 1, 2021, 11:40am UTC](https://discuss.elastic.co/t/elasticsearch-write-performance/290646/3 "2021-12-01T11:40:26Z")

</div>

thanks ,I just want to kown the case,then the master publish the clusterstate data will block or reduce the writing rate?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 1, 2021, 12:18pm UTC](https://discuss.elastic.co/t/elasticsearch-write-performance/290646/4 "2021-12-01T12:18:45Z")

</div>

If you are creating a new index to write to it has to be created and made available before it can be written to, which requires the cluster state to be updated. Any requests writing to the new index would therefore be delayed, which could affect the write rate.

---

<div class="post-metadata">

**Author:** ![qixian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qixian/32/97437_2.png) [@qixian](https://discuss.elastic.co/u/qixian)\
**Post date:** [December 1, 2021, 1:20pm UTC](https://discuss.elastic.co/t/elasticsearch-write-performance/290646/5 "2021-12-01T13:20:56Z")

</div>

Thanks for your answer

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 29, 2021, 1:21pm UTC](https://discuss.elastic.co/t/elasticsearch-write-performance/290646/6 "2021-12-29T13:21:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
