새소식

Database

Mongodb Replication 구성 시 Reconfig attempted to install a config that would change the implicit default write concern.. 장애 해결 방법

  • -

mongoDB PSA 구성으로 arbiter 추가 시 다음과 같은 장애 발생


MongoServerError: Reconfig attempted to install a config that would change the implicit default write concern. 

Use the setDefaultRWConcern command to set a cluster-wide write concern and try the reconfig again.

 

장애 처리 방법

 

다음 명령어 실행 후 arbiter 노드 추가 명령어 실행

db.adminCommand({
    setDefaultRWConcern : 1,
    defaultWriteConcern: { w: 1 },

})

 

arbiter 노드 추가 명령어

rs.addArb("172.16.154.157:27017")
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.