Created
January 1, 2020 18:22
-
-
Save StarpTech/d023c9a8847485d8f2ee9805996f42ed to your computer and use it in GitHub Desktop.
NATS Streaming Event Store configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
max_payload: 10485760 | |
streaming { | |
store: "SQL" | |
sql_options: { | |
no_caching: true | |
driver: "postgres" | |
source: "dbname=mydb host=roach1 port=26257 user=test sslmode=disable readTimeout=5s writeTimeout=5s" | |
} | |
store_limits { | |
max_subs: 100 | |
max_channels: 100 | |
max_msgs: 0 | |
max_inactivity: "0h" | |
max_bytes: 0 | |
max_age: "0s" | |
channels: { | |
"eventstore.events.>": { | |
max_msgs: 0 | |
max_bytes: 1MB | |
max_age: "72h" | |
max_inactivity: "0h" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment