Skip to content

Benchmark in cluster mode fails to authenticate #6817

@IlyaVassyutovich

Description

@IlyaVassyutovich

Steps to repro:

  1. Set-up three instances (in three separate terminals or whatever) of redis-server:
$ redis-server --port 30001 --cluster-enabled yes --cluster-config-file nodes-30001.conf --cluster-node-timeout 100 --appendonly no --save "" --requirepass qwerty
$ redis-server --port 30002 --cluster-enabled yes --cluster-config-file nodes-30002.conf --cluster-node-timeout 100 --appendonly no --save "" --requirepass qwerty
$ redis-server --port 30003 --cluster-enabled yes --cluster-config-file nodes-30003.conf --cluster-node-timeout 100 --appendonly no --save "" --requirepass qwerty
  1. Configure cluster via redis-cli:
$ src/redis-cli --cluster create 127.0.0.1:30001 127.0.0.1:30002 127.0.0.1:30003 --cluster-replicas 0 -a qwerty

I'm using the most recent redis-cli and redis-benchmark from unstable-branch.

  1. Verify, that cluster is "ok":
$ src/redis-cli -h 127.0.0.1 -p 30001 -a qwerty -c cluster info
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
cluster_state:ok
cluster_slots_assigned:16384
cluster_slots_ok:16384
cluster_slots_pfail:0
cluster_slots_fail:0
cluster_known_nodes:3
cluster_size:3
cluster_current_epoch:3
cluster_my_epoch:1
cluster_stats_messages_sent:2092
cluster_stats_messages_received:2092
  1. Try to benchmark against assembled cluster:
$ src/redis-benchmark -h 127.0.0.1 -p 30001 -a qwerty -c 100 -n 100 -t set --cluster
Cluster node 127.0.0.1:30001 replied with error:
NOAUTH Authentication required.
Failed to fetch cluster configuration from 127.0.0.1:30001

If I turn off redis authentication, benchmark works like charm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions