Skip to content

redis-cli --cluster create , failing to create cluster. #10342

@satheeshaGowda

Description

@satheeshaGowda

Hello There, I have noticed that starting from Redis 7.0RC1 we can explicitly specify cluster-port rather than +10000 port..

so now i am creating the cluster using following command , but Redis still trying to connect to +10000 port , is this a bug or there is a config to override?

Ex:

export REDIS_CLUSTER_PORT_6 =6379
export REDIS_CLUSTER_BUS_PORT_6 =7379

redis-server $REDIS_CLUSTER_PORT_6.conf --port  $REDIS_CLUSTER_PORT_6  --cluster-enabled yes  --cluster-config-file /opt/ais/conf/amp-redis-cluster/$REDIS_CLUSTER_PORT_6/node.conf --dir /opt/ais/data/amp-redis-cluster/$REDIS_CLUSTER_PORT_6 --protected-mode no --requirepass $REDIS_CLUSTER_PASSWORD --masterauth $REDIS_CLUSTER_PASSWORD --cluster-node-timeout 2000  --cluster-allow-reads-when-down yes --cluster-require-full-coverage no  --cluster-port $REDIS_CLUSTER_BUS_PORT_6
redis-cli --cluster create $REDIS_CLUSTER_HOST:$REDIS_CLUSTER_PORT_1 $REDIS_CLUSTER_HOST:$REDIS_CLUSTER_PORT_2 $REDIS_CLUSTER_HOST:$REDIS_CLUSTER_PORT_3 $REDIS_CLUSTER_HOST:$REDIS_CLUSTER_PORT_4 $REDIS_CLUSTER_HOST:$REDIS_CLUSTER_PORT_5 $REDIS_CLUSTER_HOST:$REDIS_CLUSTER_PORT_6 -a $REDIS_CLUSTER_PASSWORD --cluster-replicas 1

Redis Log:

32:M 24 Feb 2022 19:54:06.837 - Connection with Node 7de445ff670148fc0240c7b65fcbe0ceb373fdd7 at 127.0.0.1:16379 failed: Connection refused

Redis CLI Cluster create stuck with

Can I set the above configuration? (type 'yes' to accept): yes
>>> Nodes configuration updated
>>> Assign a different config epoch to each node
>>> Sending CLUSTER MEET messages to join the cluster
Waiting for the cluster to join
.............................................................
```



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