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

分片模式下使用redis-cli命令连接,新增数据报错(error) ERR Partition not found #1149

Closed
chenpengyu119 opened this issue Mar 2, 2022 · 3 comments

Comments

@chenpengyu119
Copy link

问题:分片模式需要怎么部署?现在是单节点,修改配置中的instance-mode为sharding,然后启动后使用redis-cli连接,set命令报错
(error) ERR Partition not found

@kernelai
Copy link
Collaborator

在sharding模式下,table 里是没有创建分片的,需要手动创建,。因为pika实例不清楚需要创建多少分片。命令参考

@cytzrs
Copy link

cytzrs commented Nov 6, 2022

在sharding模式下,table 里是没有创建分片的,需要手动创建,。因为pika实例不清楚需要创建多少分片。命令参考

image
创建分片了,set还是报(error) ERR Partition not found

@kernelai
Copy link
Collaborator

kernelai commented Nov 7, 2022

pika 实例在sharding模式下,会校验该key 是否在本实例上。你执行下pkcluster info slot,可以查看有多少分片在本实例上。

@luky116 luky116 closed this as completed May 19, 2023
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

4 participants