diff --git a/README.md b/README.md index bbbe972..b2b96ce 100644 --- a/README.md +++ b/README.md @@ -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 } ``` diff --git a/go.mod b/go.mod index f58a997..b8fa7f0 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 5bed123..a7cc796 100644 --- a/go.sum +++ b/go.sum @@ -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=