mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
Merge pull request #179 from fanadol/stan-config
adding stan config example
This commit is contained in:
commit
33dfb11002
@ -102,6 +102,17 @@ Note that the Streaming Server uses a connection to a NATS Server, and so the NA
|
|||||||
|
|
||||||
## Store Limits Configuration
|
## Store Limits Configuration
|
||||||
|
|
||||||
|
```text
|
||||||
|
{
|
||||||
|
streaming: {
|
||||||
|
cluster_id: my_cluster
|
||||||
|
store_limits {
|
||||||
|
max_msgs: 10000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
| Parameter | Meaning | Possible Values | Usage Example | Default Value |
|
| Parameter | Meaning | Possible Values | Usage Example | Default Value |
|
||||||
| :--- | :--- | :--- | :--- | :--- |
|
| :--- | :--- | :--- | :--- | :--- |
|
||||||
| max\_channels | Maximum number of channels, 0 means unlimited | Number >= 0 | `max_channels: 100` | `100` |
|
| 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:
|
The `channels` section is a map with the key being the channel name. For instance:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
channels: {
|
{
|
||||||
"foo": {
|
streaming: {
|
||||||
max_msgs: 100
|
cluster_id: my_cluster
|
||||||
}
|
store_limits {
|
||||||
}
|
channels: {
|
||||||
|
"foo": {
|
||||||
|
max_msgs: 100
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
For a given channel, the possible parameters are:
|
For a given channel, the possible parameters are:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user