Redis连接集群出现错误

故人重来

问题描述

我这边按照社区 大佬方式搭建本地Dcoker版Redis集群(https://www.workerman.net/a/1587
我检查了集群确实正常的

 redis-cli --cluster check 127.0.0.1:6381
127.0.0.1:6381 (88f6008b...) -> 0 keys | 5461 slots | 1 slaves.
127.0.0.1:6383 (d6353fc9...) -> 0 keys | 5461 slots | 1 slaves.
127.0.0.1:6382 (dbdc4c0d...) -> 0 keys | 5462 slots | 1 slaves.
[OK] 0 keys in 3 masters.
0.00 keys per slot on average.
>>> Performing Cluster Check (using node 127.0.0.1:6381)
M: 88f6008bcf0cfe7eeac3e2fc83c7fe6ea2419268 127.0.0.1:6381
   slots:[0-5460] (5461 slots) master
   1 additional replica(s)
S: f224664c32f3cb1fc702d21e65a9ca3e93f4d706 127.0.0.1:6386
   slots: (0 slots) slave
   replicates d6353fc92a2c524b54b67d4c3d5f416553b396cf
S: c1af55218eac04300a7a2a03437d803dd1021fcc 127.0.0.1:6385
   slots: (0 slots) slave
   replicates dbdc4c0dcaaccca1c266a779187998adaf6174f8
M: d6353fc92a2c524b54b67d4c3d5f416553b396cf 127.0.0.1:6383
   slots:[10923-16383] (5461 slots) master
   1 additional replica(s)
M: dbdc4c0dcaaccca1c266a779187998adaf6174f8 127.0.0.1:6382
   slots:[5461-10922] (5462 slots) master
   1 additional replica(s)
S: e9d99597ba1ba6d8a4c0b0d25d58b83dacec136d 127.0.0.1:6384
   slots: (0 slots) slave
   replicates 88f6008bcf0cfe7eeac3e2fc83c7fe6ea2419268
[OK] All nodes agree about slots configuration.
>>> Check for open slots...
>>> Check slots coverage...
[OK] All 16384 slots covered.

程序代码

use support\Redis;

return Redis::hMSet(ANCHOR_USER . $uid, $value);

报错信息

string(70) "错误提示=====Couldn't map cluster keyspace using any provided seed"
string(15) "错误码=====0"
string(115) "错误行号=====/var/www/LiveRoom/live-room/server-anchor/vendor/illuminate/redis/Connectors/PhpRedisConnector.php"

操作系统及workerman/webman等框架组件具体版本

截图
当前环境是php8.1;下面是依赖模块

bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
json
libxml
mbstring
mongodb
msgpack
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
zip
zlib
406 0 0
0个回答

×
🔝