Skip to content

Commit

Permalink
Fixing default shard values
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpert committed Dec 22, 2022
1 parent c56d0c4 commit 6f673fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cfg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ var Config = &Configuration{
},

ReplicationLog: ReplicationLogConfiguration{
Shards: 8,
Shards: 1,
MaxEntries: 1024,
Replicas: 1,
Compress: true,
Expand Down
4 changes: 2 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ bucket="marmot"
# Change log that is published and persisted in JetStreams by Marmot.
# Marmot auto-configures missing JetStreams when booting up for you.
[replication_log]
# Number of replicas per log to configure
# Number of replicas per log to configure (user > 1 for failover and redundancy).
replicas=1
# Number of shards to divide the logs over, each JetStream and subject will be prefixed
# by the configured `subject_prefix` and `stream_prefix` under nats
shards=8
shards=1
# Max log entries JetStream should persist, JetStream is configured to drop older entries
# Each JetStream is configured to persist on file.
max_entries=1024
Expand Down

0 comments on commit 6f673fc

Please sign in to comment.