Hi ,
I am trying to deploy our service in fault tolerance mode but getting following error,
[1] 2018/10/29 05:35:03.204539 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.11.0
[1] 2018/10/29 05:35:03.204672 [INF] STREAM: ServerID: P07uuMnXfUYvWv9o0yMZAl
[1] 2018/10/29 05:35:03.204676 [INF] STREAM: Go version: go1.11
[1] 2018/10/29 05:35:03.205646 [INF] Starting nats-server version 1.3.0
[1] 2018/10/29 05:35:03.205659 [INF] Git commit [not set]
[1] 2018/10/29 05:35:03.205858 [INF] Starting http monitor on 0.0.0.0:8222
[1] 2018/10/29 05:35:03.205908 [INF] Listening for client connections on 0.0.0.0:4222
[1] 2018/10/29 05:35:03.205916 [INF] Server is ready
[1] 2018/10/29 05:35:03.206096 [INF] Listening for route connections on 0.0.0.0:6222
[1] 2018/10/29 05:35:03.232439 [INF] STREAM: Starting in standby mode
[1] 2018/10/29 05:35:04.206542 [ERR] Error trying to connect to route: dial tcp 10.254.90.19:6222: i/o timeout
[1] 2018/10/29 05:35:04.500251 [INF] STREAM: Server is active
[1] 2018/10/29 05:35:04.500306 [INF] STREAM: Recovering the state..
helm chart is below,
spec:
hostname: {{ .Values.EventBrokerHostname }} # Optional, hostname of the exampleservice , fill in values.yaml
containers:
- name: eventbroker-internal-{{ .Values.CorePaasname }} # name of container1 eg: examplecontainer1
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" # container image to be filled from values.yaml
imagePullPolicy: "{{ .Values.imagePullPolicy }}" # can take values always,IfNotPresent
ports:
- containerPort: {{ .Values.port}}
args:
- -m=8222
- -st=FILE
- --dir=./nats-datastore
- -ft_group=ft
- --cluster=nats://0.0.0.0:6222
- --routes=nats://{{ template "eventbroker.name" . }}:6222
I read from this https://github.com/nats-io/nats-streaming-server#fault-tolerance there should be two servers & each should route with others.
But in the given helm chart only 6222 is given and not the 6223.Can you anyone suggest?
Also i tried to tested this below but when one active goes down ,standby is not coming up.
nats-streaming-server -store file -dir datastore -ft_group "ft" -cluster nats://localhost:6222 -routes nats://localhost:6223 -p 4222
nats-streaming-server -store file -dir datastore -ft_group "ft" -cluster nats://localhost:6223 -routes nats://localhost:6222 -p 4223
Regards,
Solomon Alexander.T