--
You received this message because you are subscribed to the Google Groups "nats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to natsio+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[97361] 2018/07/05 08:15:14.606332 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.10.2
[97361] 2018/07/05 08:15:14.606407 [INF] STREAM: ServerID: 5XC0QVzYXeyvh5AMmZ0pLg
[97361] 2018/07/05 08:15:14.606410 [INF] STREAM: Go version: go1.10.3
[97361] 2018/07/05 08:15:14.607455 [INF] Starting nats-server version 1.1.0
[97361] 2018/07/05 08:15:14.607464 [INF] Git commit [not set]
[97361] 2018/07/05 08:15:14.607656 [INF] Listening for client connections on 0.0.0.0:4222
[97361] 2018/07/05 08:15:14.607662 [INF] Server is ready
[97361] 2018/07/05 08:15:14.638756 [INF] STREAM: Recovering the state...
[97361] 2018/07/05 08:15:14.638777 [INF] STREAM: No recovered state
[97361] 2018/07/05 08:15:14.890471 [INF] STREAM: Message store is MEMORY
[97361] 2018/07/05 08:15:14.890523 [INF] STREAM: ---------- Store Limits ----------
[97361] 2018/07/05 08:15:14.890528 [INF] STREAM: Channels: 100 *
[97361] 2018/07/05 08:15:14.890531 [INF] STREAM: --------- Channels Limits --------
[97361] 2018/07/05 08:15:14.890533 [INF] STREAM: Subscriptions: 1000 *
[97361] 2018/07/05 08:15:14.890536 [INF] STREAM: Messages : 1000000 *
[97361] 2018/07/05 08:15:14.890539 [INF] STREAM: Bytes : 976.56 MB *
[97361] 2018/07/05 08:15:14.890542 [INF] STREAM: Age : unlimited *
[97361] 2018/07/05 08:15:14.890544 [INF] STREAM: Inactivity : unlimited *
[97361] 2018/07/05 08:15:14.890547 [INF] STREAM: ----------------------------------
```
Then publish a message:
```
IvanMBP:go-nats-streaming ivan$ go run examples/stan-pub/main.go foo msg1
Published [foo] : 'msg1'
```
You see the channel being created
```
[97361] 2018/07/05 08:15:26.507766 [INF] STREAM: Channel "foo" has been created
```
You can even start the subscriber after the fact. Here, we ask the subscriber to receive all messages in the channel:
```
Connected to nats://localhost:4222 clusterID: [test-cluster] clientID: [me]
subscribing with DeliverAllAvailable
Listening on [foo], clientID=[me], qgroup=[] durable=[]
[#1] Received on [foo]: 'sequence:1 subject:"foo" data:"msg1" timestamp:1530800142653817095 '
```
Let me know if that helps.
Ivan.
# NATS specific configuration
port: 4222
cluster {
listen: 0.0.0.0:6222
routes: ["nats://host2:6222", "nats://host3:6222"]
}
# NATS Streaming specific configuration
streaming {
id: mycluster
store: file
dir: store
cluster {
node_id: "a"
peers: ["b", "c"]
}
}