Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sentinel_tunnel documentation #9

Open
Win32Sector opened this issue Dec 3, 2020 · 0 comments
Open

sentinel_tunnel documentation #9

Win32Sector opened this issue Dec 3, 2020 · 0 comments

Comments

@Win32Sector
Copy link

Win32Sector commented Dec 3, 2020

Hello!
Can you explain about what means the Name in Databases?
Is it mastername from command redis-cli -p 26379 sentinel masters

1)  1) "name"
    2) "mymaster"

Or it is db0 - from command redis-cli -p 6379 info keyspace

# Keyspace
db0:keys=1,expires=0,avg_ttl=0

I try to setup sentinel tunnel for my redis with sentinels and I see in sentinel-tunnel logs

2020-12-03T11:21:20.137362659Z err:  first char in mbulk is not *
2020-12-03T11:21:20.137422559Z 2020/12/03 11:21:20 error : cannot get db address for  db0 , failed to retrieve db name from the sentinel, db_name:db0 

I tried this config

    {
        "Sentinels_addresses_list":[
          "my-redis-1:26379",
          "my-redis-2:26379",
          "my-redis-3:26379"
        ],
        "Databases":[
          {
            "Name":"db0",
            "Local_port":"6379"
          }
        ]
    }

I tried "mymaster" Name, but it doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant