# Save NodeClient variable to disk

**URL:** <https://discuss.elastic.co/t/save-nodeclient-variable-to-disk/278773>\
**Category:** Elasticsearch\
**Created:** [July 15, 2021, 11:33am UTC](https://discuss.elastic.co/t/save-nodeclient-variable-to-disk/278773 "2021-07-15T11:33:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daksh0225](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daksh0225/32/90336_2.png) [@daksh0225](https://discuss.elastic.co/u/daksh0225)\
**Post date:** [July 15, 2021, 11:33am UTC](https://discuss.elastic.co/t/save-nodeclient-variable-to-disk/278773/1 "2021-07-15T11:33:30Z")

</div>

Hi all,

I have been modifying the source code to accomodate some custom features that I would like to have. In doing so, I have added some new class variables to NodeClient. Currently, these variables do not persist over different sessions of elasticsearch. Is there any way to save the NodeClient's state on disk before shutdown and read it back on startup?

Thanks

---

<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 12, 2021, 11:33am UTC](https://discuss.elastic.co/t/save-nodeclient-variable-to-disk/278773/2 "2021-08-12T11:33:58Z")

</div>

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