AIStore Observability: CLI
AIStore operators and developers can use the AIS CLI to inspect cluster status, alerts, performance, and logs when investigating capacity or performance issues. For flags and syntax specific to a command, run ais COMMAND --help (for example, ais show cluster --help) or refer to the CLI reference.
Table of Contents
- Installation
- Cluster Status
- Node Alerts
- Live Performance Monitoring
- Log Management
- Common Command Examples
- Best Practices
- Troubleshooting Common Issues
- CLI Resources
- Related Documentation
Installation
There are several ways to install AIS CLI:
- Using the installation script (recommended):
This script installs aisloader and CLI from the latest or previous GitHub release and enables CLI auto-completions.
-
Follow the quick-start instructions.
-
For detailed introduction (including installation) and usage, see the CLI Overview.
After installation, configure your AIS endpoint via the ais config cli command or environment variables:
Cluster Status
Example: Node-level Alerts
Node Alerts
The following node state flags are examples of red alerts, warnings, and informational states:
-
Red Alerts - Critical issues requiring immediate attention:
OOS- Out of space conditionOOM- Out of memory conditionOOCPU- Out of CPU resourcesDiskFault- Disk failures detectedHighNumGoroutines- Critical Go scheduler latency: runnable goroutines wait too long to run (name kept for compatibility)CertificateExpired- TLS certificate has expiredCertificateInvalid- TLS certificate is invalid
-
Warning Alerts - Potential issues that may require attention:
VoteInProgress- Primary election is in progressRebalancing- Rebalance operation in progressRebalanceInterrupted- Rebalance was interruptedResilvering- Resilvering operation in progressResilverInterrupted- Resilver was interruptedNodeRestarted- Node was restarted (powercycle, crash)MaintenanceMode- Node is in maintenance modeLowCapacity- Low storage capacity (OOS possible soon)LowMemory- Low memory condition (OOM possible soon)LowCPU- Low CPU availabilityCertWillSoonExpire- TLS certificate will expire soonKeepAliveErrors- Recent keep-alive errors detectedNumGoroutines- High Go scheduler latency (name kept for compatibility)
-
Information States - Normal operational states:
ClusterStarted- Cluster has started (primary) or node has joined clusterNodeStarted- Node has started (may not have joined cluster yet)
Node state flags are also exposed via Prometheus metrics - for details, see:
For NumGoroutines and HighNumGoroutines - how scheduler latency is graded, and common causes - see Scheduler Latency Alerts.
Live Performance Monitoring
ais performance (alias ais show performance) exposes six sub‑commands. The two most used are throughput and latency.
Key Flags
See
cli-performance.mdfor sub‑command specifics.
Log Management
For more details on log configuration and analysis, see Observability: Logs.
Common Command Examples
Here are some frequently used command combinations for everyday operations:
Flags such as
--refresh <duration>,--count <n>,--regex <re>,--no-headers, and--unitsare accepted by most monitoring commands; see--helpfor the definitive list.
Best Practices
- Regular Health Checks: Run
ais show clusterandais storage summarydaily to ensure cluster health and capacity - Performance Baselines: Establish baseline performance with
ais performanceafter initial deployment - Monitoring Script: Create a shell script with key monitoring commands for daily checks
- Alert Integration: Pipe CLI output to monitoring systems for automated alerting
- Log Collection: To collect logs, integrate with a Kubernetes monitoring stack or (at least) use
ais cluster download-logs
Troubleshooting Common Issues
CLI Resources
ais help- Reference guide
- Monitoring
- Cluster and node management
- Mountpath (disk) management
- Attach, detach, and monitor remote clusters
- Start, stop, and monitor downloads
- User account and access management
- Jobs
- AIS CLI Reference