2012-03-15 2 views
0

을에서, 여기에 최신 상태입니다 다음 : 1) 중재자는 항상 0 : 0의 동일한 메시지 "초기 시작"및 "optime"을보고합니다. "초기 시작"의 의미는 무엇이며이 메시지가 변경되지 않는 것이 정상입니까? "optime"이 항상 "0 : 0"인 이유는 무엇입니까? 2) 왜곡 기둥이 전달하는 정보는 무엇입니까?MongoDB의 복제 세트 오염 로그와 중재자 "초기 시작"나는 MongoBD의 v.2.0.3과에 복제 세트를 실행 해요

MongoDB의 설명서에 따라 복제본을 설정 했으므로 데이터가 제대로 복제 될 수 있으므로 문제는 없습니다.

또 다른 것은 모든 MongoDB를 호스트에서 로그 등의 항목이 오염되어 있다는 것입니다 : 많은 연결이 설립 삭제됩니다 같은

Thu Mar 15 03:25:29 [initandlisten] connection accepted from 127.0.0.1:38599 #112781 
Thu Mar 15 03:25:29 [conn112781] authenticate: { authenticate: 1, nonce: "99e2a4a5124541b9", user: "__system", key: "417d42d26643b2c2d014b89900700263" } 
Thu Mar 15 03:25:32 [clientcursormon] mem (MB) res:12 virt:244 mapped:32 
Thu Mar 15 03:25:34 [conn112779] end connection 127.0.0.1:38586 
Thu Mar 15 03:25:34 [initandlisten] connection accepted from 127.0.0.1:38602 #112782 
Thu Mar 15 03:25:34 [conn112782] authenticate: { authenticate: 1, nonce: "a021e521ac9e19bc", user: "__system", key: "14507310174c89cdab3b82decb52b47c" } 
Thu Mar 15 03:25:36 [conn112778] end connection 127.0.0.1:38585 
Thu Mar 15 03:25:36 [initandlisten] connection accepted from 127.0.0.1:38604 #112783 
Thu Mar 15 03:25:37 [conn112783] authenticate: { authenticate: 1, nonce: "58bcf511e040b760", user: "__system", key: "24c5b20886f6d390d1ea8ea1c61fd109" } 
Thu Mar 15 03:26:00 [conn112781] end connection 127.0.0.1:38599 
Thu Mar 15 03:26:00 [initandlisten] connection accepted from 127.0.0.1:38615 #112784 
Thu Mar 15 03:26:00 [conn112784] authenticate: { authenticate: 1, nonce: "8a8f24fe012a03fe", user: "__system", key: "9b0be0c7fc790021b25aeb4511d85848" } 
Thu Mar 15 03:26:01 [conn112780] end connection 127.0.0.1:38598 
Thu Mar 15 03:26:01 [initandlisten] connection accepted from 127.0.0.1:38616 #112785 
Thu Mar 15 03:26:01 [conn112785] authenticate: { authenticate: 1, nonce: "420808aa9a12947", user: "__system", key: "90e8654a2eb3981219c370208989e97a" } 
Thu Mar 15 03:26:04 [conn112782] end connection 127.0.0.1:38602 
Thu Mar 15 03:26:04 [initandlisten] connection accepted from 127.0.0.1:38617 #112786 
Thu Mar 15 03:26:04 [conn112786] authenticate: { authenticate: 1, nonce: "b46ac4868db60973", user: "__system", key: "43cda53cc503bce942040ba8d3c6c3b1" } 
Thu Mar 15 03:26:09 [conn112783] end connection 127.0.0.1:38604 
Thu Mar 15 03:26:09 [initandlisten] connection accepted from 127.0.0.1:38621 #112787 
Thu Mar 15 03:26:10 [conn112787] authenticate: { authenticate: 1, nonce: "20fae7ed47cd1780", user: "__system", key: "f7b81c2d53ad48343e917e2db9125470" } 
Thu Mar 15 03:26:30 [conn112784] end connection 127.0.0.1:38615 
Thu Mar 15 03:26:30 [initandlisten] connection accepted from 127.0.0.1:38632 #112788 
Thu Mar 15 03:26:31 [conn112788] authenticate: { authenticate: 1, nonce: "38ee5b7b665d26be", user: "__system", key: "49c1f9f4e3b5cf2bf05bfcbb939ee422" } 
Thu Mar 15 03:26:33 [conn112785] end connection 127.0.0.1:38616 

것 같다. 그 복제본이 하트 비트를 설정 했습니까?

추가 정보

아비터의 설정 복제가 회원 설정

을 설정

dbpath=/var/lib/mongodb 
logpath=/var/log/mongodb/mongodb.log 
logappend=true 
port = 27000 
bind_ip = 127.0.1.1 
rest = true 
journal = true 
replSet = myreplname 
keyFile = /etc/mongodb/set.key 
oplogSize = 8 
quiet = true 

dbpath=/root/local/var/mongodb logpath=/root/local/var/log/mongodb.log logappend=true port = 27002 bind_ip = 127.0.1.1 rest = true journal = true replSet = myreplname keyFile = /root/local/etc/set.key quiet = true 

MongoDB의 인스턴스 서로 다른 시스템에서 실행하고 SSH를 통해 서로 연결된다 큰 술통 nels는 완전히 연결된 메시로 설치됩니다.

답변

0

중재자는 선거에 참여하는 것 외에 아무 것도하지 않으므로 시작 후 추가 작업이 없습니다. "Skew"는이 구성원과 집합 내의 다른 구성원 사이의 시간차입니다. 예, 연결/연결 해제 메시지는 하트 비트입니다.