How do you check the current version, uptime, and general health information for a running Redis instance?
Short answer
You use the INFO command, which returns a comprehensive set of information organized into sections covering the server version, uptime, memory usage, connected clients, replication status, and many other useful operational details, giving you a single command to quickly assess…
Advertisement
AModel answer
You use the INFO command, which returns a comprehensive set of information organized into sections covering the server version, uptime, memory usage, connected clients, replication status, and many other useful operational details, giving you a single command to quickly assess the overall health of a Redis instance.
Example
redis-cli info server redis-cli info memory
Real-world example
A database administrator quickly checks a Redis instance's version and uptime using the INFO command as part of a routine health check, confirming everything is running as expected before a planned maintenance window.
Likely follow-ups
- What are the different sections available within the INFO command's output?
- How do you retrieve just a specific section of information instead of everything at once?
Related topics