管理和监控你的NATS服务基础架构

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 use nats.

    • nats cheat

    • nats cheat server

    • nats stream --help to monitor, manage and interact with streams

    • nats consumer --help to monitor, manage stream consumers

    • nats 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:

  • Gracefully shut down a server with Lame Duck Mode

最后更新于