[nats-streaming-server] Release v0.12.0

Details can be found [here](https://github.com/nats-io/nats-streaming-server/releases/tag/v0.12.0)

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic 2019-02-07 18:38:36 -07:00
parent 1cec58218a
commit 7edbe3dc34
1 changed files with 75 additions and 72 deletions

View File

@ -62,26 +62,26 @@ $ docker run -d -p 4222:4222 -p 8222:8222 %%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/10/17 20:37:59.532333 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.11.2 [1] 2019/02/08 01:29:49.332181 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.12.0
[1] 2018/10/17 20:37:59.532375 [INF] STREAM: ServerID: kQij7lusLtgQHuB6bV5tNp [1] 2019/02/08 01:29:49.332240 [INF] STREAM: ServerID: WVh1bi2UrTRHpLIQhHsNhy
[1] 2018/10/17 20:37:59.532401 [INF] STREAM: Go version: go1.11.1 [1] 2019/02/08 01:29:49.332244 [INF] STREAM: Go version: go1.11.5
[1] 2018/10/17 20:37:59.533014 [INF] Starting nats-server version 1.3.0 [1] 2019/02/08 01:29:49.332861 [INF] Starting nats-server version 1.4.1
[1] 2018/10/17 20:37:59.533026 [INF] Git commit [not set] [1] 2019/02/08 01:29:49.332893 [INF] Git commit [not set]
[1] 2018/10/17 20:37:59.533112 [INF] Starting http monitor on 0.0.0.0:8222 [1] 2019/02/08 01:29:49.332966 [INF] Starting http monitor on 0.0.0.0:8222
[1] 2018/10/17 20:37:59.533159 [INF] Listening for client connections on 0.0.0.0:4222 [1] 2019/02/08 01:29:49.333031 [INF] Listening for client connections on 0.0.0.0:4222
[1] 2018/10/17 20:37:59.533190 [INF] Server is ready [1] 2019/02/08 01:29:49.333036 [INF] Server is ready
[1] 2018/10/17 20:37:59.560131 [INF] STREAM: Recovering the state... [1] 2019/02/08 01:29:49.361092 [INF] STREAM: Recovering the state...
[1] 2018/10/17 20:37:59.560144 [INF] STREAM: No recovered state [1] 2019/02/08 01:29:49.361106 [INF] STREAM: No recovered state
[1] 2018/10/17 20:37:59.811504 [INF] STREAM: Message store is MEMORY [1] 2019/02/08 01:29:49.613488 [INF] STREAM: Message store is MEMORY
[1] 2018/10/17 20:37:59.811563 [INF] STREAM: ---------- Store Limits ---------- [1] 2019/02/08 01:29:49.613601 [INF] STREAM: ---------- Store Limits ----------
[1] 2018/10/17 20:37:59.811585 [INF] STREAM: Channels: 100 * [1] 2019/02/08 01:29:49.613612 [INF] STREAM: Channels: 100 *
[1] 2018/10/17 20:37:59.811587 [INF] STREAM: --------- Channels Limits -------- [1] 2019/02/08 01:29:49.613616 [INF] STREAM: --------- Channels Limits --------
[1] 2018/10/17 20:37:59.811590 [INF] STREAM: Subscriptions: 1000 * [1] 2019/02/08 01:29:49.613621 [INF] STREAM: Subscriptions: 1000 *
[1] 2018/10/17 20:37:59.811592 [INF] STREAM: Messages : 1000000 * [1] 2019/02/08 01:29:49.613627 [INF] STREAM: Messages : 1000000 *
[1] 2018/10/17 20:37:59.811594 [INF] STREAM: Bytes : 976.56 MB * [1] 2019/02/08 01:29:49.613633 [INF] STREAM: Bytes : 976.56 MB *
[1] 2018/10/17 20:37:59.811596 [INF] STREAM: Age : unlimited * [1] 2019/02/08 01:29:49.613639 [INF] STREAM: Age : unlimited *
[1] 2018/10/17 20:37:59.811599 [INF] STREAM: Inactivity : unlimited * [1] 2019/02/08 01:29:49.613646 [INF] STREAM: Inactivity : unlimited *
[1] 2018/10/17 20:37:59.811601 [INF] STREAM: ---------------------------------- [1] 2019/02/08 01:29:49.613651 [INF] STREAM: ----------------------------------
``` ```
To use a file based store instead, you would run: To use a file based store instead, you would run:
@ -89,26 +89,26 @@ To use a file based store instead, you would run:
```bash ```bash
$ docker run -d -p 4222:4222 -p 8222:8222 %%IMAGE%% -store file -dir datastore $ docker run -d -p 4222:4222 -p 8222:8222 %%IMAGE%% -store file -dir datastore
[1] 2018/10/17 20:38:19.302010 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.11.2 [1] 2019/02/08 01:30:11.766757 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.12.0
[1] 2018/10/17 20:38:19.302062 [INF] STREAM: ServerID: 6pEEj1QcNAOjTM6TJUfnwQ [1] 2019/02/08 01:30:11.766857 [INF] STREAM: ServerID: k3UBKNLDdc9YHyQTcAXZad
[1] 2018/10/17 20:38:19.302067 [INF] STREAM: Go version: go1.11.1 [1] 2019/02/08 01:30:11.766885 [INF] STREAM: Go version: go1.11.5
[1] 2018/10/17 20:38:19.302688 [INF] Starting nats-server version 1.3.0 [1] 2019/02/08 01:30:11.768340 [INF] Starting nats-server version 1.4.1
[1] 2018/10/17 20:38:19.302707 [INF] Git commit [not set] [1] 2019/02/08 01:30:11.768361 [INF] Git commit [not set]
[1] 2018/10/17 20:38:19.302827 [INF] Listening for client connections on 0.0.0.0:4222 [1] 2019/02/08 01:30:11.768447 [INF] Listening for client connections on 0.0.0.0:4222
[1] 2018/10/17 20:38:19.302937 [INF] Server is ready [1] 2019/02/08 01:30:11.768451 [INF] Server is ready
[1] 2018/10/17 20:38:19.332398 [INF] STREAM: Recovering the state... [1] 2019/02/08 01:30:11.797755 [INF] STREAM: Recovering the state...
[1] 2018/10/17 20:38:19.332774 [INF] STREAM: No recovered state [1] 2019/02/08 01:30:11.798102 [INF] STREAM: No recovered state
[1] 2018/10/17 20:38:19.586269 [INF] STREAM: Message store is FILE [1] 2019/02/08 01:30:12.050741 [INF] STREAM: Message store is FILE
[1] 2018/10/17 20:38:19.586296 [INF] STREAM: Store location: datastore [1] 2019/02/08 01:30:12.050762 [INF] STREAM: Store location: datastore
[1] 2018/10/17 20:38:19.586323 [INF] STREAM: ---------- Store Limits ---------- [1] 2019/02/08 01:30:12.050933 [INF] STREAM: ---------- Store Limits ----------
[1] 2018/10/17 20:38:19.586327 [INF] STREAM: Channels: 100 * [1] 2019/02/08 01:30:12.051001 [INF] STREAM: Channels: 100 *
[1] 2018/10/17 20:38:19.586329 [INF] STREAM: --------- Channels Limits -------- [1] 2019/02/08 01:30:12.051009 [INF] STREAM: --------- Channels Limits --------
[1] 2018/10/17 20:38:19.586330 [INF] STREAM: Subscriptions: 1000 * [1] 2019/02/08 01:30:12.051013 [INF] STREAM: Subscriptions: 1000 *
[1] 2018/10/17 20:38:19.586332 [INF] STREAM: Messages : 1000000 * [1] 2019/02/08 01:30:12.051017 [INF] STREAM: Messages : 1000000 *
[1] 2018/10/17 20:38:19.586334 [INF] STREAM: Bytes : 976.56 MB * [1] 2019/02/08 01:30:12.051021 [INF] STREAM: Bytes : 976.56 MB *
[1] 2018/10/17 20:38:19.586337 [INF] STREAM: Age : unlimited * [1] 2019/02/08 01:30:12.051026 [INF] STREAM: Age : unlimited *
[1] 2018/10/17 20:38:19.586368 [INF] STREAM: Inactivity : unlimited * [1] 2019/02/08 01:30:12.051030 [INF] STREAM: Inactivity : unlimited *
[1] 2018/10/17 20:38:19.586384 [INF] STREAM: ---------------------------------- [1] 2019/02/08 01:30:12.051034 [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:
@ -122,22 +122,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/10/17 20:38:36.962800 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.11.2 [1] 2019/02/08 01:31:14.171222 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.12.0
[1] 2018/10/17 20:38:36.962834 [INF] STREAM: ServerID: BPUbk9Fef5zzXrPz4EKwph [1] 2019/02/08 01:31:14.171320 [INF] STREAM: ServerID: 8rxCgFN6q3qUHadgdiyP1Q
[1] 2018/10/17 20:38:36.962836 [INF] STREAM: Go version: go1.11.1 [1] 2019/02/08 01:31:14.171324 [INF] STREAM: Go version: go1.11.5
[1] 2018/10/17 20:38:36.991459 [INF] STREAM: Recovering the state... [1] 2019/02/08 01:31:14.261330 [INF] STREAM: Recovering the state...
[1] 2018/10/17 20:38:36.991623 [INF] STREAM: No recovered state [1] 2019/02/08 01:31:14.261501 [INF] STREAM: No recovered state
[1] 2018/10/17 20:38:37.243157 [INF] STREAM: Message store is FILE [1] 2019/02/08 01:31:14.518261 [INF] STREAM: Message store is FILE
[1] 2018/10/17 20:38:37.243238 [INF] STREAM: Store location: datastore [1] 2019/02/08 01:31:14.518300 [INF] STREAM: Store location: datastore
[1] 2018/10/17 20:38:37.243280 [INF] STREAM: ---------- Store Limits ---------- [1] 2019/02/08 01:31:14.518369 [INF] STREAM: ---------- Store Limits ----------
[1] 2018/10/17 20:38:37.243292 [INF] STREAM: Channels: 100 * [1] 2019/02/08 01:31:14.518375 [INF] STREAM: Channels: 100 *
[1] 2018/10/17 20:38:37.243301 [INF] STREAM: --------- Channels Limits -------- [1] 2019/02/08 01:31:14.518379 [INF] STREAM: --------- Channels Limits --------
[1] 2018/10/17 20:38:37.243359 [INF] STREAM: Subscriptions: 1000 * [1] 2019/02/08 01:31:14.518384 [INF] STREAM: Subscriptions: 1000 *
[1] 2018/10/17 20:38:37.243370 [INF] STREAM: Messages : 1000000 * [1] 2019/02/08 01:31:14.518388 [INF] STREAM: Messages : 1000000 *
[1] 2018/10/17 20:38:37.243379 [INF] STREAM: Bytes : 976.56 MB * [1] 2019/02/08 01:31:14.518393 [INF] STREAM: Bytes : 976.56 MB *
[1] 2018/10/17 20:38:37.243388 [INF] STREAM: Age : unlimited * [1] 2019/02/08 01:31:14.518396 [INF] STREAM: Age : unlimited *
[1] 2018/10/17 20:38:37.243397 [INF] STREAM: Inactivity : unlimited * [1] 2019/02/08 01:31:14.518398 [INF] STREAM: Inactivity : unlimited *
[1] 2018/10/17 20:38:37.243405 [INF] STREAM: ---------------------------------- [1] 2019/02/08 01:31:14.518401 [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.
@ -160,8 +160,11 @@ Streaming Server Options:
-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
-hbt, --hb_timeout <duration> How long server waits for a heartbeat response -hbt, --hb_timeout <duration> How long server waits for a heartbeat response
-hbf, --hb_fail_count <int> Number of failed heartbeats before server closes the client connection -hbf, --hb_fail_count <int> Number of failed heartbeats before server closes the client connection
--ft_group <string> Name of the FT Group. A group can be 2 or more servers with a single active server and all sharing the same datastore. --ft_group <string> Name of the FT Group. A group can be 2 or more servers with a single active server and all sharing the same datastore
-sl, --signal <signal>[=<pid>] Send signal to nats-streaming-server process (stop, quit, reopen) -sl, --signal <signal>[=<pid>] Send signal to nats-streaming-server process (stop, quit, reopen)
--encrypt <bool> Specify if server should use encryption at rest
--encryption_cipher <string> Cipher to use for encryption. Currently support AES and CHAHA (ChaChaPoly). Defaults to AES
--encryption_key <sting> Encryption Key. It is recommended to specify it through the NATS_STREAMING_ENCRYPTION_KEY environment variable instead
Streaming Server Clustering Options: Streaming Server Clustering Options:
--clustered <bool> Run the server in a clustered configuration (default: false) --clustered <bool> Run the server in a clustered configuration (default: false)