Redis connection fails upon starting Angular/Node application. A sample Go app was used by Support to connect to our newly created service instance and worked. Seems the issue may be with the Redis configurations, but unable to find proper documentation, if there are any updates, for predix-cloud-cache-r2.0 Redis configurations.
Answer by oscar.miranda-cabrera@bakerhughes.com · Jul 06, 2020 at 07:26 AM
Solved by adding the following to the redisOptions configuration:
no_ready_check: true,
tls: { host: config.redis.host, port: config.redis.port }
Answer by Shailendra.Sirohi@ge.com · Jul 02, 2020 at 07:10 PM
@oscar.miranda-cabrera@bakerhughes.com Predix Cloud Cache r2.0 mandates at-rest and in-transit encryption. As such you will have to enable ssl while creating connection. Also, redis engine supported are 4.0.10 and above. So the client library must support these redis engine versions.
You can find list of supported redis clients at https://redis.io/clients#nodejs
Further ssl/tls enablement will depend on the library you are using. For a popular node client, node-redis, using 'rediss://... for the protocol in a redis_url will enable a TLS socket connection. For more details on node-redis, refer to: https://github.com/NodeRedis/node-redis