[nats-streaming] Release v0.9.0

Details can be found [here](https://github.com/nats-io/nats-streaming-server/releases/tag/v0.9.0)
This commit is contained in:
Ivan Kozlovic 2018-03-16 11:23:08 -06:00
parent fb8bf2f2b4
commit 793ff12d71
1 changed files with 69 additions and 63 deletions

View File

@ -47,24 +47,25 @@ $ docker run -d %%IMAGE%%
Output that you would get if you had started with `-ti` instead of `d` (for daemon): Output that you would get if you had started with `-ti` instead of `d` (for daemon):
```bash ```bash
[1] 2018/01/30 00:53:35.226503 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.8.0-beta [1] 2018/03/16 17:15:51.266497 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.9.0
[1] 2018/01/30 00:53:35.226552 [INF] STREAM: ServerID: hQz6YxauPSn21PDaayqxLO [1] 2018/03/16 17:15:51.266539 [INF] STREAM: ServerID: iCY75IanYSP5dmTW9TCXN9
[1] 2018/01/30 00:53:35.226582 [INF] STREAM: Go version: go1.9.3 [1] 2018/03/16 17:15:51.266541 [INF] STREAM: Go version: go1.9.4
[1] 2018/01/30 00:53:35.226819 [INF] Starting nats-server version 1.0.4 [1] 2018/03/16 17:15:51.267036 [INF] Starting nats-server version 1.0.4
[1] 2018/01/30 00:53:35.227108 [INF] Starting http monitor on 0.0.0.0:8222 [1] 2018/03/16 17:15:51.267127 [INF] Starting http monitor on 0.0.0.0:8222
[1] 2018/01/30 00:53:35.227582 [INF] Listening for client connections on 0.0.0.0:4222 [1] 2018/03/16 17:15:51.267182 [INF] Listening for client connections on 0.0.0.0:4222
[1] 2018/01/30 00:53:35.227629 [INF] Server is ready [1] 2018/03/16 17:15:51.267200 [INF] Server is ready
[1] 2018/01/30 00:53:35.255121 [INF] STREAM: Recovering the state... [1] 2018/03/16 17:15:51.295454 [INF] STREAM: Recovering the state...
[1] 2018/01/30 00:53:35.255157 [INF] STREAM: No recovered state [1] 2018/03/16 17:15:51.295497 [INF] STREAM: No recovered state
[1] 2018/01/30 00:53:35.508148 [INF] STREAM: Message store is MEMORY [1] 2018/03/16 17:15:51.547181 [INF] STREAM: Message store is MEMORY
[1] 2018/01/30 00:53:35.508208 [INF] STREAM: ---------- Store Limits ---------- [1] 2018/03/16 17:15:51.547245 [INF] STREAM: ---------- Store Limits ----------
[1] 2018/01/30 00:53:35.508220 [INF] STREAM: Channels: 100 * [1] 2018/03/16 17:15:51.547252 [INF] STREAM: Channels: 100 *
[1] 2018/01/30 00:53:35.508231 [INF] STREAM: --------- Channels Limits -------- [1] 2018/03/16 17:15:51.547346 [INF] STREAM: --------- Channels Limits --------
[1] 2018/01/30 00:53:35.508337 [INF] STREAM: Subscriptions: 1000 * [1] 2018/03/16 17:15:51.547362 [INF] STREAM: Subscriptions: 1000 *
[1] 2018/01/30 00:53:35.508399 [INF] STREAM: Messages : 1000000 * [1] 2018/03/16 17:15:51.547368 [INF] STREAM: Messages : 1000000 *
[1] 2018/01/30 00:53:35.508419 [INF] STREAM: Bytes : 976.56 MB * [1] 2018/03/16 17:15:51.547373 [INF] STREAM: Bytes : 976.56 MB *
[1] 2018/01/30 00:53:35.508456 [INF] STREAM: Age : unlimited * [1] 2018/03/16 17:15:51.547378 [INF] STREAM: Age : unlimited *
[1] 2018/01/30 00:53:35.508467 [INF] STREAM: ---------------------------------- [1] 2018/03/16 17:15:51.547383 [INF] STREAM: Inactivity : unlimited *
[1] 2018/03/16 17:15:51.547388 [INF] STREAM: ----------------------------------
``` ```
To use a file based store instead, you would run: To use a file based store instead, you would run:
@ -72,23 +73,25 @@ To use a file based store instead, you would run:
```bash ```bash
$ docker run -d %%IMAGE%% -store file -dir datastore $ docker run -d %%IMAGE%% -store file -dir datastore
[1] 2018/01/30 00:53:54.958785 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.8.0-beta [1] 2018/03/16 17:18:08.576859 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.9.0
[1] 2018/01/30 00:53:54.958871 [INF] STREAM: ServerID: iLmhti57q2EurDLpumt2Fm [1] 2018/03/16 17:18:08.576892 [INF] STREAM: ServerID: yj1GnF7V6sKEeknKW6mnzd
[1] 2018/01/30 00:53:54.958894 [INF] STREAM: Go version: go1.9.3 [1] 2018/03/16 17:18:08.576894 [INF] STREAM: Go version: go1.9.4
[1] 2018/01/30 00:53:54.959217 [INF] Starting nats-server version 1.0.4 [1] 2018/03/16 17:18:08.577476 [INF] Starting nats-server version 1.0.4
[1] 2018/01/30 00:53:54.959311 [INF] Listening for client connections on 0.0.0.0:4222 [1] 2018/03/16 17:18:08.577554 [INF] Listening for client connections on 0.0.0.0:4222
[1] 2018/01/30 00:53:54.959332 [INF] Server is ready [1] 2018/03/16 17:18:08.577563 [INF] Server is ready
[1] 2018/01/30 00:53:54.986810 [INF] STREAM: Recovering the state... [1] 2018/03/16 17:18:08.606094 [INF] STREAM: Recovering the state...
[1] 2018/01/30 00:53:54.987103 [INF] STREAM: No recovered state [1] 2018/03/16 17:18:08.606380 [INF] STREAM: No recovered state
[1] 2018/01/30 00:53:55.241549 [INF] STREAM: Message store is FILE [1] 2018/03/16 17:18:08.859345 [INF] STREAM: Message store is FILE
[1] 2018/01/30 00:53:55.241702 [INF] STREAM: ---------- Store Limits ---------- [1] 2018/03/16 17:18:08.859393 [INF] STREAM: Store location: datastore
[1] 2018/01/30 00:53:55.241855 [INF] STREAM: Channels: 100 * [1] 2018/03/16 17:18:08.859429 [INF] STREAM: ---------- Store Limits ----------
[1] 2018/01/30 00:53:55.241870 [INF] STREAM: --------- Channels Limits -------- [1] 2018/03/16 17:18:08.859433 [INF] STREAM: Channels: 100 *
[1] 2018/01/30 00:53:55.241885 [INF] STREAM: Subscriptions: 1000 * [1] 2018/03/16 17:18:08.859437 [INF] STREAM: --------- Channels Limits --------
[1] 2018/01/30 00:53:55.241979 [INF] STREAM: Messages : 1000000 * [1] 2018/03/16 17:18:08.859440 [INF] STREAM: Subscriptions: 1000 *
[1] 2018/01/30 00:53:55.242004 [INF] STREAM: Bytes : 976.56 MB * [1] 2018/03/16 17:18:08.859444 [INF] STREAM: Messages : 1000000 *
[1] 2018/01/30 00:53:55.242152 [INF] STREAM: Age : unlimited * [1] 2018/03/16 17:18:08.859447 [INF] STREAM: Bytes : 976.56 MB *
[1] 2018/01/30 00:53:55.242177 [INF] STREAM: ---------------------------------- [1] 2018/03/16 17:18:08.859451 [INF] STREAM: Age : unlimited *
[1] 2018/03/16 17:18:08.859455 [INF] STREAM: Inactivity : unlimited *
[1] 2018/03/16 17:18:08.859459 [INF] STREAM: ----------------------------------
``` ```
You can also connect to a remote NATS Server running in a docker image. First, run NATS Server: You can also connect to a remote NATS Server running in a docker image. First, run NATS Server:
@ -102,20 +105,22 @@ Now, start the Streaming server and link it to the above docker image:
```bash ```bash
$ docker run -d --link nats-main %%IMAGE%% -store file -dir datastore -ns nats://nats-main:4222 $ docker run -d --link nats-main %%IMAGE%% -store file -dir datastore -ns nats://nats-main:4222
[1] 2018/01/30 00:54:43.190686 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.8.0-beta [1] 2018/03/16 17:19:19.455410 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.9.0
[1] 2018/01/30 00:54:43.190746 [INF] STREAM: ServerID: TY45b34hYz2bucIKPcwsTA [1] 2018/03/16 17:19:19.455453 [INF] STREAM: ServerID: g9dDRQYIb6QE9xJFTFuIcD
[1] 2018/01/30 00:54:43.190759 [INF] STREAM: Go version: go1.9.3 [1] 2018/03/16 17:19:19.455458 [INF] STREAM: Go version: go1.9.4
[1] 2018/01/30 00:54:43.196393 [INF] STREAM: Recovering the state... [1] 2018/03/16 17:19:19.508668 [INF] STREAM: Recovering the state...
[1] 2018/01/30 00:54:43.196544 [INF] STREAM: No recovered state [1] 2018/03/16 17:19:19.508954 [INF] STREAM: No recovered state
[1] 2018/01/30 00:54:43.452232 [INF] STREAM: Message store is FILE [1] 2018/03/16 17:19:19.760344 [INF] STREAM: Message store is FILE
[1] 2018/01/30 00:54:43.452315 [INF] STREAM: ---------- Store Limits ---------- [1] 2018/03/16 17:19:19.760372 [INF] STREAM: Store location: datastore
[1] 2018/01/30 00:54:43.452344 [INF] STREAM: Channels: 100 * [1] 2018/03/16 17:19:19.760403 [INF] STREAM: ---------- Store Limits ----------
[1] 2018/01/30 00:54:43.452371 [INF] STREAM: --------- Channels Limits -------- [1] 2018/03/16 17:19:19.760422 [INF] STREAM: Channels: 100 *
[1] 2018/01/30 00:54:43.452393 [INF] STREAM: Subscriptions: 1000 * [1] 2018/03/16 17:19:19.760430 [INF] STREAM: --------- Channels Limits --------
[1] 2018/01/30 00:54:43.452455 [INF] STREAM: Messages : 1000000 * [1] 2018/03/16 17:19:19.760432 [INF] STREAM: Subscriptions: 1000 *
[1] 2018/01/30 00:54:43.452477 [INF] STREAM: Bytes : 976.56 MB * [1] 2018/03/16 17:19:19.760434 [INF] STREAM: Messages : 1000000 *
[1] 2018/01/30 00:54:43.452526 [INF] STREAM: Age : unlimited * [1] 2018/03/16 17:19:19.760436 [INF] STREAM: Bytes : 976.56 MB *
[1] 2018/01/30 00:54:43.452550 [INF] STREAM: ---------------------------------- [1] 2018/03/16 17:19:19.760438 [INF] STREAM: Age : unlimited *
[1] 2018/03/16 17:19:19.760440 [INF] STREAM: Inactivity : unlimited *
[1] 2018/03/16 17:19:19.760442 [INF] STREAM: ----------------------------------
``` ```
Notice that the output shows that the NATS Server was not started, as opposed to the first output. Notice that the output shows that the NATS Server was not started, as opposed to the first output.
@ -132,6 +137,7 @@ Streaming Server Options:
-mm, --max_msgs <int> Max number of messages per channel (0 for unlimited) -mm, --max_msgs <int> Max number of messages per channel (0 for unlimited)
-mb, --max_bytes <size> Max messages total size per channel (0 for unlimited) -mb, --max_bytes <size> Max messages total size per channel (0 for unlimited)
-ma, --max_age <duration> Max duration a message can be stored ("0s" for unlimited) -ma, --max_age <duration> Max duration a message can be stored ("0s" for unlimited)
-mi, --max_inactivity <duration> Max inactivity (no new message, no subscription) after which a channel can be garbage collected (0 for unlimited)
-ns, --nats_server <string> Connect to this external NATS Server URL (embedded otherwise) -ns, --nats_server <string> Connect to this external NATS Server URL (embedded otherwise)
-sc, --stan_config <string> Streaming server configuration file -sc, --stan_config <string> Streaming server configuration file
-hbi, --hb_interval <duration> Interval at which server sends heartbeat to a client -hbi, --hb_interval <duration> Interval at which server sends heartbeat to a client