# Custom master node action

**URL:** <https://discuss.elastic.co/t/custom-master-node-action/5942>\
**Category:** Elasticsearch\
**Created:** [November 22, 2011, 3:16pm UTC](https://discuss.elastic.co/t/custom-master-node-action/5942 "2011-11-22T15:16:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mustafa\_Sener](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@Mustafa\_Sener](https://discuss.elastic.co/u/Mustafa_Sener)\
**Post date:** [November 22, 2011, 3:16pm UTC](https://discuss.elastic.co/t/custom-master-node-action/5942/1 "2011-11-22T15:16:10Z")

</div>

Hi,  
I want to implement a backup action. This action will disable flushing  
first and then copy files and finally enable flushing. To do this, I should  
call ClusterUpdateSettingsRequest in my master node action. Can someone  
explain how can I do this? Do I need to inject client and call this on  
client? Or can I simply construct the request and pass it a a mechanism  
which is already injected (for example clusterService, transportService,  
etc...)?

--  
Mustafa Sener  
[http://www.ifountain.com](http://www.ifountain.com)

---

<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:** [July 6, 2017, 3:47am UTC](https://discuss.elastic.co/t/custom-master-node-action/5942/2 "2017-07-06T03:47:51Z")

</div>

Closed on July 6, 2017, 3:47am UTC


