Chinaunix首页 | 论坛 | 博客
  • 博客访问: 798550
  • 博文数量: 50
  • 博客积分: 757
  • 博客等级: 上士
  • 技术积分: 1913
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-29 14:29
个人简介

DBA

文章分类

全部博文(50)

文章存档

2015年(3)

2014年(2)

2013年(14)

2012年(19)

2011年(12)

分类: Mysql/postgreSQL

2012-04-09 16:34:30

     今天搭建mongo Shard遇到一个问题
    
  1. [mongodb-user] User assertion: 15907:
  2. could not initialize sharding connection:: specified a different configdb
环境:
1、mongo2.0.4
2、9台机器,3个分片,每个分片是一个复制集,3个configsrv,3个mongos

主要是因为启动mongos时,如果已经配置过configsrv又重新搭建,更改了configsrv的顺序或者更改了configsrv的名字,就会报这个错误。因为在每个分片上会缓存configsrv的信息,所以只删除configsrv的数据时没有用的,只能重启三个片或者重新搭建。


  1. If you changed it while shards were running then they will cache
  2. (internal state) on the shards.


阅读(3812) | 评论(0) | 转发(0) |
0

上一篇:java链接mongo

下一篇:分发器 自增锁的问题

给主人留下些什么吧!~~