The Foundation Check
Every diagnostic journey begins with cluster info. This fundamental check establishes cluster identity, version compatibility, and basic operational status—the cornerstone upon which all other diagnostics build.
The cluster info check is the first and most fundamental diagnostic in ElasticDoctor's arsenal. By querying the root API endpoint, it establishes the cluster's identity, determines version compatibility, and validates basic connectivity—essential groundwork for all subsequent health checks.
Why This Check Matters
Think of this check as showing your ID card when entering a building. Just like security needs to verify who you are before letting you in, ElasticDoctor needs to understand what kind of cluster it's dealing with before it can run the right diagnostic tests.
Establishes Context
- • Identifies cluster name and purpose
- • Determines Elasticsearch version
- • Validates basic connectivity
- • Sets up routing for other checks
Prevents Issues
- • Catches connection problems early
- • Identifies version incompatibilities
- • Detects naming conflicts
- • Validates authentication setup
The Root API Endpoint
GET /
Understanding the Response
When you make a simple GET request to the root endpoint of your Elasticsearch cluster, you receive a JSON response that contains essential information about your cluster. This response is like an ID card for your cluster—it tells you who it is, what version it's running, and basic details about its configuration.
Key Information Included:
- • Cluster Name: The unique identifier for your cluster
- • Node Name: The name of the node you're connected to
- • Version Details: Elasticsearch version, build info, and Lucene version
- • Cluster UUID: Unique identifier that persists across restarts
Common Issues and Solutions
🚨 Critical: Default Cluster Name
Your cluster is using the default name "elasticsearch" instead of a descriptive, environment-specific name. This is like having multiple people named "John" in the same office—it becomes impossible to tell them apart.
Why This Matters:
- • Makes it impossible to distinguish between different clusters
- • Can cause accidental connections to wrong clusters
- • Complicates monitoring and alerting setup
- • Indicates lack of proper cluster configuration
How to Fix:
- • Set cluster.name in elasticsearch.yml
- • Use descriptive names like "logs-production" or "search-staging"
- • Include environment and purpose in the name
- • Restart all nodes after changing the name
⚠️ Warning: Version Mismatch
Different nodes in your cluster are running different versions of Elasticsearch. This is like having team members speaking different languages—communication breaks down and things don't work as expected.
Potential Problems:
- • Cluster instability and unexpected behavior
- • Communication issues between nodes
- • Features may not work consistently
- • Difficult to troubleshoot issues
Resolution Steps:
- • Plan a coordinated upgrade to align all nodes
- • Use rolling restart procedure for zero downtime
- • Test the upgrade in staging first
- • Monitor cluster health during the process
ℹ️ Info: Connection Successful
Great news! ElasticDoctor can successfully connect to your cluster and retrieve essential information. This means your cluster is responding properly and ready for comprehensive health analysis.
What This Means:
- • Network connectivity is working properly
- • Authentication (if enabled) is properly configured
- • Elasticsearch service is running and responding
- • Ready to proceed with additional health checks
How to Check Your Cluster Info
Basic Request
# Simple request to get cluster information curl -X GET "localhost:9200/?pretty" # With authentication (if security is enabled) curl -u username:password -X GET "https://localhost:9200/?pretty" # Using Kibana Dev Tools GET /
Example Response
{ "name" : "elasticsearch-node-01", "cluster_name" : "production-logs-cluster", "cluster_uuid" : "ABC123DEF456GHI789JKL012MNO345P", "version" : { "number" : "9.15.0", "build_flavor" : "default", "build_type" : "docker", "build_hash" : "1a77947", "build_date" : "2024-12-10T09:35:21.782467Z", "build_snapshot" : false, "lucene_version" : "9.11.1" }, "tagline" : "You Know, for Search" }
Foundation for Success
Why This Check is Critical
- • Version Detection: Ensures compatibility with diagnostic tools
- • Cluster Identity: Establishes context for all analysis
- • Connectivity Validation: Confirms basic operational status
- • Foundation Building: Sets up routing for other health checks
Next Steps
- • Review and improve cluster naming conventions
- • Document version upgrade timeline and procedures
- • Implement automated cluster info monitoring
- • Proceed to comprehensive cluster health validation