# Bind node local files to shard

**URL:** <https://discuss.elastic.co/t/bind-node-local-files-to-shard/11712>\
**Category:** Elasticsearch\
**Created:** [April 27, 2013, 5:38am UTC](https://discuss.elastic.co/t/bind-node-local-files-to-shard/11712 "2013-04-27T05:38:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dobe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dobe/32/2152_2.png) [@dobe](https://discuss.elastic.co/u/dobe)\
**Post date:** [April 27, 2013, 5:38am UTC](https://discuss.elastic.co/t/bind-node-local-files-to-shard/11712/1 "2013-04-27T05:38:00Z")

</div>

hi

for a plugin i write i need to make sure that specific files created by my  
plugin are moved around with a specific shard - so if a relocation is  
happening, the files are moved to the other node too. the files could be  
moved like the lucene index files in Engine.RecoveryHandler (see  
snapshot.getFiles) but it seems that there is no way to hook some logic  
into this place without changing elasticsearch code.

any clues?

thx, bernd

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:39am UTC](https://discuss.elastic.co/t/bind-node-local-files-to-shard/11712/2 "2017-07-06T02:39:26Z")

</div>


