Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Elasticsearch – Best practices to reboot Database on Linux

Solved822 views29th May 2023database Elastic Elasticsearch Linux OS restart
1
Daniel Martinez [DevOps Advocate]835 25th May 2023 0 Comments

Hi Dojo,

Are there any requirements or recommendations to do a Elasticsearch Database rebooting? I have some recommendations about Cassandra but I have no information about Elastic.

Note that we’re running Elastic on Linux OS.

Daniel Martinez [DevOps Advocate] Selected answer as best 29th May 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
6
Chris Glover [DevOps Advocate]1.13K Posted 25th May 2023 1 Comment

Hi Daniel,

It’s best to disable shard allocation before doing any reboots

(it’s going to mangle the json I’m going to put below)

Send the following to http://<cluster node>:9200/_cluster/settings

{
  “transient” : {
    “cluster.routing.allocation.enable”: “none”,
    “cluster.routing.rebalance.enable” : “none”
  }
}

You can then reboot each node in turn as required.

Replace
“none” with null (note no quotes on null)
to renable

Once your nodes have all been restarted, send a retry shard allocation HTTP POST request
http://<cluster node>:9200/_cluster/reroute?retry_failed=true

You’ll see after a few minutes any indicies with yellow status turn green

Hope that helps
Chris

Daniel Martinez [DevOps Advocate] Selected answer as best 29th May 2023
Daniel Martinez [DevOps Advocate] commented 29th May 2023

Thanks a lot Chris!

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs