- 博客(1)
- 资源 (2)
- 收藏
- 关注
原创 mongodb分片集群报couldn`t find valid index for shard key
环境:mongodb 4.4.1,三副本三shard的分片集群问题:对一个已存在的集合(>2000w数据)进行分片,创建分片索引之后执行sh.shardCollection("data_platform.mongo_api_user_info",{client_id:"hashed"})报错,分片不成功,提示couldn't find valid index for shard key这里能看到几个比较关键的点分片键已经创建索引,索引类型是hashed,分片模式也是hashed该索引
2020-11-23 15:49:02 662
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人