1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

adding stan config json example

This commit is contained in:
Irkham Widhi Saputro 2020-12-03 14:45:35 +07:00
parent a8952d1d45
commit c73d2e4583

View File

@ -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: