# Elasticsearch dynamic scripting vs static script - deployment

**URL:** <https://discuss.elastic.co/t/elasticsearch-dynamic-scripting-vs-static-script-deployment/18604>\
**Category:** Elasticsearch\
**Created:** [July 11, 2014, 2:56pm UTC](https://discuss.elastic.co/t/elasticsearch-dynamic-scripting-vs-static-script-deployment/18604 "2014-07-11T14:56:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_S\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_s_v/32/1317_2.png) [@Alex\_S\_V](https://discuss.elastic.co/u/Alex_S_V)\
**Post date:** [July 11, 2014, 2:56pm UTC](https://discuss.elastic.co/t/elasticsearch-dynamic-scripting-vs-static-script-deployment/18604/1 "2014-07-11T14:56:55Z")

</div>

Hi,

We've been also hacked on our staging server because of opened ports 🙂  
I find dynamic scripting flexible for applications, but static scripting  
causes bunch of problems:

1. I should deploy it in special directory at elasticsearch node? We are  
using capistrano for web-app deployment and it's easy procedure, though we  
should provide additional access to elasticsearch node filesystem
2. I don't know, how to support script versions? just append \_v1, \_v2, etc.  
suffixes in filename?
3. Should I deploy on one node, or on each node? If I must deploy on each  
node - what happens if one node has a script, and other doesn't have?

Regards,  
Alex

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/20681e2f-bb8b-4602-8b19-ed27b661a88b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/20681e2f-bb8b-4602-8b19-ed27b661a88b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:16am UTC](https://discuss.elastic.co/t/elasticsearch-dynamic-scripting-vs-static-script-deployment/18604/2 "2017-07-06T01:16:31Z")

</div>


