# Can Elasticsearch share plugin directory

**URL:** <https://discuss.elastic.co/t/can-elasticsearch-share-plugin-directory/278523>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [July 13, 2021, 10:34am UTC](https://discuss.elastic.co/t/can-elasticsearch-share-plugin-directory/278523 "2021-07-13T10:34:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorinand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dorinand/32/70521_2.png) [@dorinand](https://discuss.elastic.co/u/dorinand)\
**Post date:** [July 13, 2021, 10:34am UTC](https://discuss.elastic.co/t/can-elasticsearch-share-plugin-directory/278523/1 "2021-07-13T10:34:36Z")

</div>

I have docker swarm of 3 nodes. I run ES with 5 nodes (3 data/master nodes and 2 coordinating nodes). I would like to use S3 bucket plugin to backup ES cluster. Plugin must be installed on all nodes, that means, plugin directory must be mounted as volume. For data nodes this is not a problem, there is only one ES data/master per node, so they can have dedicated directory per node, but coordinating nodes can move from one node to another. The problem is, if after plugin installation coordinating node move to another node, plugin will be missing in plugin directory. I start thinking about creating shared directory with plugins for all ES nodes but not sure, If this is the right way to ensure plugin will be installed on all ES nodes. Can anybody help?

Coordinating nodes run as one service with two replicas, data/master nodes has each dedicated service which specify node to run on.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [July 14, 2021, 9:01am UTC](https://discuss.elastic.co/t/can-elasticsearch-share-plugin-directory/278523/2 "2021-07-14T09:01:48Z")

</div>

Why don't you install the plugin as part of your Dockerfile setup, so that it is part of the image?

---

<div class="post-metadata">

**Author:** ![dorinand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dorinand/32/70521_2.png) [@dorinand](https://discuss.elastic.co/u/dorinand)\
**Post date:** [July 14, 2021, 9:23am UTC](https://discuss.elastic.co/t/can-elasticsearch-share-plugin-directory/278523/3 "2021-07-14T09:23:34Z")

</div>

> [@spinscale](#):
>
> Why don't you install the plugin as part of your Dockerfile setup, so that it is part of the image?

The reason is, I mount other configurations, certificates, etc... and deploy it via ansible. So then I do not have maintain pipelines for ES (we have different versions of clusters). So I pull image directly from elastic repo, I have no Dockerfile. Building own image is second option.

I tried to share plugin for coordinating nodes and it works fine for now.

---

<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:** [August 11, 2021, 9:23am UTC](https://discuss.elastic.co/t/can-elasticsearch-share-plugin-directory/278523/4 "2021-08-11T09:23:45Z")

</div>

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