I am trying to configure spring XD in distributed mode and I unfortunately I was unable to do so. I am trying to back the inter-module channels using redis and I have a 3 node redis 3.0 cluster running.
My changes to the configuration are shown below, please let me know if I am missing out anything or do I need to do any thing else to make my spring instance run in distributed mode:
servers.yml file of xd-container is configured like
spring:
profiles: container
xd:
transport: redis
embeddedHsql: false
.
.
.
.
spring:
datasource:
url: jdbc:mysql://mysql-instance01:3306/springxd
username: springxd
password: springxd
driverClassName: com.mysql.jdbc.Driver
validationQuery: select 1
.
.
.
spring:
redis:
port: 6379
host: redis-instance01
pool:
maxIdle: 8
minIdle: 0
maxActive: -1
maxWait: 30000
sentinel:
master: mymaster
nodes: redis-instance02:6379,redis-instance03:6379
If I run the xd-container with this configuration I get the error stack trace as shown here
And If I remove sentinel, sentinel:master, sentinel:nodes, the container is starting fine but failing when some stream is deployed, the error log is as shown here
But there is absolutely no problem with my redis cluster when trying to connect from java using JedisCluster.
Am I missing something in this configuration? Any thoughts or comments?
Thanks in advance.