Managing and Monitoring your NATS Server Infrastructure
Managing a NATS Server is simple, typical lifecycle operations include:
- Using the
nats
CLI tool to check server cluster connectivity and latencies, as well as get account information, and manage and interact with streams (and other NATS applications). Try the following examples to learn about the most common ways to usenats
.nats cheat
nats cheat server
nats stream --help
to monitor, manage and interact with streamsnats consumer --help
to monitor, manage stream consumersnats context --help
if you need to switch between servers, clusters or user credentials
- Using the
nsc
CLI tool when using JWT based authentication and authorization, to create, revoke operators, accounts, and user (i.e. client applications) JWTs and keys. - Sending signals to a server to reload a configuration or rotate log files
- Upgrading a server (or cluster)
- Understanding slow consumers
- Monitoring the server via:
- The monitoring endpoint and tools like nats-top
- By subscribing to system events
- Gracefully shut down a server with Lame Duck Mode