Skip to content

NATS Operations

For general operations it is recommended to rely on helm mechanisms to control and configure the NATS release. It is controlled via environment specific configurations like here.

For example, cluster replicas and pvc size can be increased by changing:

--- a/releases/nats/analytics-eventsdot-stg.yaml.gotmpl
+++ b/releases/nats/analytics-eventsdot-stg.yaml.gotmpl
@@ -11,7 +11,7 @@ config:
enabled: true
name: analytics-eventsdot-stg
port: 6222
- replicas: 3
+ replicas: 5
jetstream:
enabled: true
@@ -22,7 +22,7 @@ config:
pvc:
enabled: true
- size: 100Gi
+ size: 200Gi

NATS cli is also available on the deployed environments via the nats-box deployment. During troubleshooting or incidents operational tasks like restart, configuration changes can be done in the nats-box container.

NATS administration doc provide good reference on additional operational tasks.