Systemctl reload elasticsearch.service or systemctl restart elasticsearch.service

Hi all,

I am currently working on a bash script. Whenever i make changes to elasticsearch.yml file, should i perform systemctl reload elascticsearch.service or systemctl restart elasticsearch.service?

Any difference between performing either both?

Welcome to our community! :smiley:

You will probably need to do a restart, Elasticsearch won't dynamically reload the config file, it needs to restart to read it again.