From c73d2e4583ea5f7d1d470a345dd19ac6e1c145f4 Mon Sep 17 00:00:00 2001 From: Irkham Widhi Saputro Date: Thu, 3 Dec 2020 14:45:35 +0700 Subject: [PATCH] adding stan config json example --- nats-streaming-server/configuring/cfgfile.md | 28 ++++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/nats-streaming-server/configuring/cfgfile.md b/nats-streaming-server/configuring/cfgfile.md index 8d9d76e..61a9667 100644 --- a/nats-streaming-server/configuring/cfgfile.md +++ b/nats-streaming-server/configuring/cfgfile.md @@ -102,6 +102,17 @@ Note that the Streaming Server uses a connection to a NATS Server, and so the NA ## Store Limits Configuration +```text +{ + streaming: { + cluster_id: my_cluster + store_limits { + max_msgs: 10000 + } + } +} +``` + | Parameter | Meaning | Possible Values | Usage Example | Default Value | | :--- | :--- | :--- | :--- | :--- | | max\_channels | Maximum number of channels, 0 means unlimited | Number >= 0 | `max_channels: 100` | `100` | @@ -117,11 +128,18 @@ Note that the Streaming Server uses a connection to a NATS Server, and so the NA The `channels` section is a map with the key being the channel name. For instance: ```text - channels: { - "foo": { - max_msgs: 100 - } - } +{ + streaming: { + cluster_id: my_cluster + store_limits { + channels: { + "foo": { + max_msgs: 100 + } + } + } + } +} ``` For a given channel, the possible parameters are: