Skip to content

Commit

Permalink
feat: add static max size of 128 mb for caches
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGee <[email protected]>
  • Loading branch information
brianmcgee committed Oct 12, 2023
1 parent 7ebff40 commit acc3291
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/blob/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var (
Replicas: 1,
Discard: nats.DiscardOld,
MaxMsgsPerSubject: 1,
MaxBytes: 1024 * 1024 * 128, // todo make configurable from cli
Storage: nats.MemoryStorage,
AllowRollup: true,
AllowDirect: true,
Expand Down
1 change: 1 addition & 0 deletions pkg/directory/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var (
},
Replicas: 1,
Discard: nats.DiscardOld,
MaxBytes: 1024 * 1024 * 128, // todo make configurable from cli
MaxMsgsPerSubject: 1,
Storage: nats.MemoryStorage,
AllowRollup: true,
Expand Down
1 change: 1 addition & 0 deletions pkg/pathinfo/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var (
Replicas: 1,
Discard: nats.DiscardOld,
MaxMsgsPerSubject: 1,
MaxBytes: 1024 * 1024 * 128, // todo make configurable from cli
Storage: nats.MemoryStorage,
AllowRollup: true,
AllowDirect: true,
Expand Down

0 comments on commit acc3291

Please sign in to comment.