Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elasticsearch-manager

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasticsearch-manager

  • 0.1.3.pre.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status

Elasticsearch-Manager

Elasticsearch-Manager provides both a commandline utility and libraries for performing basic management activities on an Elasticsearch cluster.

For a list of all supported actions, please run: $ elasticsearch-manager --help

Installation

gem install elasticsearch-manager

List IPs for all cluster members

$ elasticsearch-manager --cluster-hostname elasticsearch.example.com \
                        --port 9200 status \
                        list-nodes
10.0.0.3 -- master
10.0.0.1
10.0.0.2

Display the count of all shard states for each node in the cluster

$ elasticsearch-manager --cluster-hostname elasticsearch.example.com \
                        --port 9200 status \
                        shard-state
10.0.0.1:   STARTED: 8       INITIALIZING: 0    RELOCATING: 0
10.0.0.2:   STARTED: 8       INITIALIZING: 0    RELOCATING: 1
10.0.0.3:   STARTED: 7       INITIALIZING: 1    RELOCATING: 0

Check the current status of a cluster

$ elasticsearch-manager --cluster-hostname elasticsearch.example.com \
                        --port 9200 status \
                        status
The Elasticsearch cluster is currently: green

Perform a rolling restart of a cluster

$ elasticsearch-manager --cluster-hostname elasticsearch.example.com \
                        --port 9200 status \
                        rolling-restart
Continue with rolling restart of cluster? (y/n) y

Restarting Elasticsearch on node: 10.0.0.1
Elasticsearch restarted on node: 10.0.0.1
Waiting for node to become available...
Node back up!
Waiting for cluster to stabilize...
Waiting for cluster to stabilize...
Cluster stabilized!
Continue with rolling restart of cluster? (y/n) y

Restarting Elasticsearch on node: 10.0.0.2
Elasticsearch restarted on node: 10.0.0.2
Waiting for node to become available...
Waiting for node to become available...
Node back up!
Waiting for cluster to stabilize...
Waiting for cluster to stabilize...
Waiting for cluster to stabilize...
Waiting for cluster to stabilize...
Cluster stabilized!

Restarting current cluster master, continue? (y/n) y

Restarting Elasticsearch on node: 10.0.0.3
Elasticsearch restarted on node: 10.0.0.3
Waiting for node to become available...
Waiting for node to become available...
Waiting for node to become available...
Waiting for node to become available...
Node back up!
Waiting for cluster to stabilize...
Cluster stabilized!

Disable routing allocation on the cluster

$ elasticsearch-manager --cluster-hostname elasticsearch.example.com \
                        --port 9200 status \
                        diable-routing
Disabling shard routing allocation... disabled!

Enable routing allocation on the cluster

$ elasticsearch-manager --cluster-hostname elasticsearch.example.com \
                        --port 9200 status \
                        enable-routing
Enabling shard routing allocation... enabled!

FAQs

Package last updated on 12 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc