Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #87 from nats-io/set_limits
Browse files Browse the repository at this point in the history
support setting server limits in config
  • Loading branch information
ripienaar authored Jan 31, 2020
2 parents b84a575 + 2cb3a1d commit 74f38ee
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,16 @@ $ ./nats-server -js -sd /tmp/test
These options can also be set in your configuration file:

```
// enables jetstream, an empty block will enable and use defaults
jetstream {
// jetstream data will be in /data/nats-server/jetstream
store_dir: "/data/nats-server"
// 1GB
max_memory_store: 1073741824
// 10GB
max_file_store: 10737418240
}
```

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d // indirect
github.com/dustin/go-humanize v1.0.0
github.com/google/go-cmp v0.4.0
github.com/nats-io/nats-server/v2 v2.1.3-0.20200130162036-756b923a21b2
github.com/nats-io/nats-server/v2 v2.1.3-0.20200131104944-2a31b54be0b8
github.com/nats-io/nats.go v1.9.1
github.com/xlab/tablewriter v0.0.0-20160610135559-80b567a11ad5
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ github.com/nats-io/jwt v0.3.0 h1:xdnzwFETV++jNc4W1mw//qFyJGb2ABOombmZJQS4+Qo=
github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg=
github.com/nats-io/jwt v0.3.2 h1:+RB5hMpXUUA2dfxuhBTEkMOrYmM+gKIZYS1KjSostMI=
github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU=
github.com/nats-io/nats-server/v2 v2.1.3-0.20200130162036-756b923a21b2 h1:6q9zo9hvFWYNj6Q02i/o937ppJuoXTM5rEhMJdQqQ9E=
github.com/nats-io/nats-server/v2 v2.1.3-0.20200130162036-756b923a21b2/go.mod h1:FBtPk+0dj8JdsLJ1eiXh7OLXnJiwjO6VpJkzjYo7lro=
github.com/nats-io/nats-server/v2 v2.1.3-0.20200131104944-2a31b54be0b8 h1:exteWsZb2pHST5i5mSn23ne/77NK1hcf+uaW0G4Uy7U=
github.com/nats-io/nats-server/v2 v2.1.3-0.20200131104944-2a31b54be0b8/go.mod h1:FBtPk+0dj8JdsLJ1eiXh7OLXnJiwjO6VpJkzjYo7lro=
github.com/nats-io/nats.go v1.9.1 h1:ik3HbLhZ0YABLto7iX80pZLPw/6dx3T+++MZJwLnMrQ=
github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w=
github.com/nats-io/nkeys v0.1.0 h1:qMd4+pRHgdr1nAClu+2h/2a5F2TmKcCzjCDazVgRoX4=
Expand Down

0 comments on commit 74f38ee

Please sign in to comment.