瀏覽代碼

Merge pull request #1495 from nats-io/nats_streaming_0_15_1

[nats-streaming] Release v0.15.1
yosifkit 6 年之前
父節點
當前提交
c87a68de3e
共有 1 個文件被更改,包括 65 次插入59 次删除
  1. 65 59
      nats-streaming/content.md

+ 65 - 59
nats-streaming/content.md

@@ -4,6 +4,10 @@
 
 `nats-streaming` is a high performance streaming server for the NATS Messaging System.
 
+# Backward compatibility note
+
+Note that the Streaming server itself is backward compatible with previous releases, however, v0.15.0+ now embeds a NATS Server 2.0, which means that if you run with the embedded NATS server and want to route it to your existing v0.14.3- servers, it will fail due to NATS Server routing protocol change. You can however use v0.15.0+ and connect it to existing NATS cluster and therefore have a mix of v0.15.0 and v0.14.3- streaming servers.
+
 # Windows Docker images
 
 Due to restrictions on how the Windows Docker Image is built, running the image without argument will run the NATS Streaming server with memory based store on port 4222 and the monitoring port 8222. If you need to specify any additional argument, or modify these options, you need to specify the executable name as this:
@@ -62,27 +66,28 @@ $ 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):
 
 ```bash
-[1] 2019/05/31 18:43:11.901638 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.14.3
-[1] 2019/05/31 18:43:11.901678 [INF] STREAM: ServerID: XUSVsQH6XsJHhqLxXJ5NHP
-[1] 2019/05/31 18:43:11.901681 [INF] STREAM: Go version: go1.11.10
-[1] 2019/05/31 18:43:11.901683 [INF] STREAM: Git commit: [1ce7677]
-[1] 2019/05/31 18:43:11.902301 [INF] Starting nats-server version 1.4.1
-[1] 2019/05/31 18:43:11.902326 [INF] Git commit [3e64f0b]
-[1] 2019/05/31 18:43:11.902393 [INF] Starting http monitor on 0.0.0.0:8222
-[1] 2019/05/31 18:43:11.902448 [INF] Listening for client connections on 0.0.0.0:4222
-[1] 2019/05/31 18:43:11.902470 [INF] Server is ready
-[1] 2019/05/31 18:43:11.930343 [INF] STREAM: Recovering the state...
-[1] 2019/05/31 18:43:11.930420 [INF] STREAM: No recovered state
-[1] 2019/05/31 18:43:12.184108 [INF] STREAM: Message store is MEMORY
-[1] 2019/05/31 18:43:12.184167 [INF] STREAM: ---------- Store Limits ----------
-[1] 2019/05/31 18:43:12.184175 [INF] STREAM: Channels:                  100 *
-[1] 2019/05/31 18:43:12.184181 [INF] STREAM: --------- Channels Limits --------
-[1] 2019/05/31 18:43:12.184231 [INF] STREAM:   Subscriptions:          1000 *
-[1] 2019/05/31 18:43:12.184238 [INF] STREAM:   Messages     :       1000000 *
-[1] 2019/05/31 18:43:12.184243 [INF] STREAM:   Bytes        :     976.56 MB *
-[1] 2019/05/31 18:43:12.184247 [INF] STREAM:   Age          :     unlimited *
-[1] 2019/05/31 18:43:12.184252 [INF] STREAM:   Inactivity   :     unlimited *
-[1] 2019/05/31 18:43:12.184259 [INF] STREAM: ----------------------------------
+[1] 2019/06/05 19:03:34.571483 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.15.1
+[1] 2019/06/05 19:03:34.571521 [INF] STREAM: ServerID: 6MvmlM5UxvFK9FTU7eArAT
+[1] 2019/06/05 19:03:34.571524 [INF] STREAM: Go version: go1.11.10
+[1] 2019/06/05 19:03:34.571526 [INF] STREAM: Git commit: [f849fbf]
+[1] 2019/06/05 19:03:34.572189 [INF] Starting nats-server version 2.0.0
+[1] 2019/06/05 19:03:34.572217 [INF] Git commit [not set]
+[1] 2019/06/05 19:03:34.572281 [INF] Starting http monitor on 0.0.0.0:8222
+[1] 2019/06/05 19:03:34.572346 [INF] Listening for client connections on 0.0.0.0:4222
+[1] 2019/06/05 19:03:34.572349 [INF] Server id is NBSIZZJOQWGTWXGGXVKZLKUNWW3YY6BOZRCBJGDH2JASQ4I6EYYBE6U4
+[1] 2019/06/05 19:03:34.572370 [INF] Server is ready
+[1] 2019/06/05 19:03:34.599370 [INF] STREAM: Recovering the state...
+[1] 2019/06/05 19:03:34.599378 [INF] STREAM: No recovered state
+[1] 2019/06/05 19:03:34.853126 [INF] STREAM: Message store is MEMORY
+[1] 2019/06/05 19:03:34.853208 [INF] STREAM: ---------- Store Limits ----------
+[1] 2019/06/05 19:03:34.853250 [INF] STREAM: Channels:                  100 *
+[1] 2019/06/05 19:03:34.853289 [INF] STREAM: --------- Channels Limits --------
+[1] 2019/06/05 19:03:34.853293 [INF] STREAM:   Subscriptions:          1000 *
+[1] 2019/06/05 19:03:34.853296 [INF] STREAM:   Messages     :       1000000 *
+[1] 2019/06/05 19:03:34.853299 [INF] STREAM:   Bytes        :     976.56 MB *
+[1] 2019/06/05 19:03:34.853301 [INF] STREAM:   Age          :     unlimited *
+[1] 2019/06/05 19:03:34.853304 [INF] STREAM:   Inactivity   :     unlimited *
+[1] 2019/06/05 19:03:34.853307 [INF] STREAM: ----------------------------------
 ```
 
 To use a file based store instead, you would run:
@@ -90,27 +95,28 @@ To use a file based store instead, you would run:
 ```bash
 $ docker run -d -p 4222:4222 -p 8222:8222 %%IMAGE%% -store file -dir datastore
 
-[1] 2019/05/31 18:43:37.509441 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.14.3
-[1] 2019/05/31 18:43:37.509486 [INF] STREAM: ServerID: oe2Y5rgKk5yuY4wpYFis0S
-[1] 2019/05/31 18:43:37.509489 [INF] STREAM: Go version: go1.11.10
-[1] 2019/05/31 18:43:37.509491 [INF] STREAM: Git commit: [1ce7677]
-[1] 2019/05/31 18:43:37.510143 [INF] Starting nats-server version 1.4.1
-[1] 2019/05/31 18:43:37.510167 [INF] Git commit [3e64f0b]
-[1] 2019/05/31 18:43:37.510228 [INF] Listening for client connections on 0.0.0.0:4222
-[1] 2019/05/31 18:43:37.510251 [INF] Server is ready
-[1] 2019/05/31 18:43:37.539060 [INF] STREAM: Recovering the state...
-[1] 2019/05/31 18:43:37.539254 [INF] STREAM: No recovered state
-[1] 2019/05/31 18:43:37.793186 [INF] STREAM: Message store is FILE
-[1] 2019/05/31 18:43:37.793221 [INF] STREAM: Store location: datastore
-[1] 2019/05/31 18:43:37.793247 [INF] STREAM: ---------- Store Limits ----------
-[1] 2019/05/31 18:43:37.793249 [INF] STREAM: Channels:                  100 *
-[1] 2019/05/31 18:43:37.793251 [INF] STREAM: --------- Channels Limits --------
-[1] 2019/05/31 18:43:37.793253 [INF] STREAM:   Subscriptions:          1000 *
-[1] 2019/05/31 18:43:37.793255 [INF] STREAM:   Messages     :       1000000 *
-[1] 2019/05/31 18:43:37.793282 [INF] STREAM:   Bytes        :     976.56 MB *
-[1] 2019/05/31 18:43:37.793286 [INF] STREAM:   Age          :     unlimited *
-[1] 2019/05/31 18:43:37.793288 [INF] STREAM:   Inactivity   :     unlimited *
-[1] 2019/05/31 18:43:37.793290 [INF] STREAM: ----------------------------------
+[1] 2019/06/05 19:04:03.966479 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.15.1
+[1] 2019/06/05 19:04:03.966565 [INF] STREAM: ServerID: Oo9GZy52856Ackk5VBafRe
+[1] 2019/06/05 19:04:03.966587 [INF] STREAM: Go version: go1.11.10
+[1] 2019/06/05 19:04:03.966608 [INF] STREAM: Git commit: [f849fbf]
+[1] 2019/06/05 19:04:03.967611 [INF] Starting nats-server version 2.0.0
+[1] 2019/06/05 19:04:03.967634 [INF] Git commit [not set]
+[1] 2019/06/05 19:04:03.967683 [INF] Listening for client connections on 0.0.0.0:4222
+[1] 2019/06/05 19:04:03.967725 [INF] Server id is NBSPMZERRCFQOK37CTZU4O3DAPQ3CLGG77XJKWPTXRVCECFBPGHLGSHF
+[1] 2019/06/05 19:04:03.967728 [INF] Server is ready
+[1] 2019/06/05 19:04:03.996391 [INF] STREAM: Recovering the state...
+[1] 2019/06/05 19:04:03.996585 [INF] STREAM: No recovered state
+[1] 2019/06/05 19:04:04.251696 [INF] STREAM: Message store is FILE
+[1] 2019/06/05 19:04:04.251709 [INF] STREAM: Store location: datastore
+[1] 2019/06/05 19:04:04.251787 [INF] STREAM: ---------- Store Limits ----------
+[1] 2019/06/05 19:04:04.251864 [INF] STREAM: Channels:                  100 *
+[1] 2019/06/05 19:04:04.251869 [INF] STREAM: --------- Channels Limits --------
+[1] 2019/06/05 19:04:04.251872 [INF] STREAM:   Subscriptions:          1000 *
+[1] 2019/06/05 19:04:04.251874 [INF] STREAM:   Messages     :       1000000 *
+[1] 2019/06/05 19:04:04.251877 [INF] STREAM:   Bytes        :     976.56 MB *
+[1] 2019/06/05 19:04:04.251879 [INF] STREAM:   Age          :     unlimited *
+[1] 2019/06/05 19:04:04.251882 [INF] STREAM:   Inactivity   :     unlimited *
+[1] 2019/06/05 19:04:04.251884 [INF] STREAM: ----------------------------------
 ```
 
 You can also connect to a remote NATS Server running in a docker image. First, run NATS Server:
@@ -124,23 +130,23 @@ Now, start the Streaming server and link it to the above docker image:
 ```bash
 $ docker run -d --link nats-main %%IMAGE%% -store file -dir datastore -ns nats://nats-main:4222
 
-[1] 2019/05/31 18:44:04.203014 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.14.3
-[1] 2019/05/31 18:44:04.203054 [INF] STREAM: ServerID: UwQHifmKDNqXKBJ1rM2jgM
-[1] 2019/05/31 18:44:04.203057 [INF] STREAM: Go version: go1.11.10
-[1] 2019/05/31 18:44:04.203059 [INF] STREAM: Git commit: [1ce7677]
-[1] 2019/05/31 18:44:04.230523 [INF] STREAM: Recovering the state...
-[1] 2019/05/31 18:44:04.230669 [INF] STREAM: No recovered state
-[1] 2019/05/31 18:44:04.486903 [INF] STREAM: Message store is FILE
-[1] 2019/05/31 18:44:04.486950 [INF] STREAM: Store location: datastore
-[1] 2019/05/31 18:44:04.487044 [INF] STREAM: ---------- Store Limits ----------
-[1] 2019/05/31 18:44:04.487086 [INF] STREAM: Channels:                  100 *
-[1] 2019/05/31 18:44:04.487091 [INF] STREAM: --------- Channels Limits --------
-[1] 2019/05/31 18:44:04.487094 [INF] STREAM:   Subscriptions:          1000 *
-[1] 2019/05/31 18:44:04.487097 [INF] STREAM:   Messages     :       1000000 *
-[1] 2019/05/31 18:44:04.487099 [INF] STREAM:   Bytes        :     976.56 MB *
-[1] 2019/05/31 18:44:04.487102 [INF] STREAM:   Age          :     unlimited *
-[1] 2019/05/31 18:44:04.487195 [INF] STREAM:   Inactivity   :     unlimited *
-[1] 2019/05/31 18:44:04.487234 [INF] STREAM: ----------------------------------
+[1] 2019/06/05 19:04:20.665663 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.15.1
+[1] 2019/06/05 19:04:20.665714 [INF] STREAM: ServerID: gkzkh7CodpgaQpJRaeYZdE
+[1] 2019/06/05 19:04:20.665734 [INF] STREAM: Go version: go1.11.10
+[1] 2019/06/05 19:04:20.665737 [INF] STREAM: Git commit: [f849fbf]
+[1] 2019/06/05 19:04:20.694275 [INF] STREAM: Recovering the state...
+[1] 2019/06/05 19:04:20.694501 [INF] STREAM: No recovered state
+[1] 2019/06/05 19:04:20.945767 [INF] STREAM: Message store is FILE
+[1] 2019/06/05 19:04:20.945794 [INF] STREAM: Store location: datastore
+[1] 2019/06/05 19:04:20.945810 [INF] STREAM: ---------- Store Limits ----------
+[1] 2019/06/05 19:04:20.945812 [INF] STREAM: Channels:                  100 *
+[1] 2019/06/05 19:04:20.945813 [INF] STREAM: --------- Channels Limits --------
+[1] 2019/06/05 19:04:20.945815 [INF] STREAM:   Subscriptions:          1000 *
+[1] 2019/06/05 19:04:20.945816 [INF] STREAM:   Messages     :       1000000 *
+[1] 2019/06/05 19:04:20.945818 [INF] STREAM:   Bytes        :     976.56 MB *
+[1] 2019/06/05 19:04:20.945864 [INF] STREAM:   Age          :     unlimited *
+[1] 2019/06/05 19:04:20.945867 [INF] STREAM:   Inactivity   :     unlimited *
+[1] 2019/06/05 19:04:20.945868 [INF] STREAM: ----------------------------------
 
 ```