Cloud Native Apps

 View Only
Expand all | Collapse all

IBM Cloud Redis Service Connection String Question

  • 1.  IBM Cloud Redis Service Connection String Question

    Posted Fri June 03, 2022 02:21 PM
    IBM Cloud redis service is in sentinel mode, when cloud app connects to redis cluster through connection string, it is connected to master/slave nodes, not sentinel nodes.
    Question:
    I assume there is a load balancer in front of the master/slave nodes, client -> LB (port: 32371) -> redis cluster, when the master is down, slave is promoted to master, how the LB can redirect traffic to master node?
    If there is no LB, how this connection string is constructed?

    export REDIS_URL=rediss://admin:$PASSWORD@e6b2c3f8-54a6-439e-8d8a-aa6c4a78df49.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32371/0​

    Thanks

    ------------------------------
    TONGHUA LI
    ------------------------------


  • 2.  RE: IBM Cloud Redis Service Connection String Question

    Posted Thu July 07, 2022 02:19 AM
    Edited by Stephan Bester Thu July 07, 2022 02:19 AM
    Hi @TONGHUA LI, I believe most of your questions are addressed here: Best Practices for Redis on the IBM Cloud | IBM

    Based on the article, your assumption is correct, traffic is always routed to the leader node, and failover is handled automatically, you do not have the option to address the replica nodes directly.

    Hope that helps!

    ------------------------------
    Stephan Bester
    ------------------------------