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:
		
							parent
							
								
									a8952d1d45
								
							
						
					
					
						commit
						c73d2e4583
					
				@ -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:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user