Blog Content

  • MongoDB 에서 SSD DISK 사용 시 주의사항

    Category NOSQL on 2019. 8. 12. 14:55

    확인버전 : - MongoDB 3.4.2 (journal enable, chainingAllowed:1, protocolVersion:1 ) - MongoDB 3.4.10 (journal enable, chainingAllowed:1, protocolVersion:1 ) - configString: "cache_size=64GB,config_base=true,eviction_dirty_target=20,eviction_dirty_trigger=40,eviction_target=70,eviction_trigger=95,eviction=(threads_min=2,threads_max=4),checkpoint_sync=true” 문제사항 : Primary, Secondary 장비의 (SSD) disk util..

    Read more
  • [ArangoDB] Replication Overview (비동기 복제)

    Category NOSQL on 2017. 3. 3. 18:50

    참고: 내용의 end-point 는 노출을 방지하기 위해 변경처리 하였습니다. ■ ArangoDB Replication Overview ▶ OverviewArangoDB에서 복제의 주요 목적은 특정 데이터베이스의 읽기 확장 성 및 "핫 백업"을 제공하는 것입니다.복제설정은 슬레이브 데이터베이스에서 replication applier 를 활성화 해야 합니다.복제는 동기, 비동기 방식을 모두 지원 합니다.복제는 데이터베이스 단위로 발생 합니다.복제는 컬렉션 단위로 설정 가능 합니다. (syncCollection)복제시 ChunkSize 를 조정하여 동기화 강약을 조정할 수 있습니다. (사이즈가 적으면 Master 연결 요청 수가 증가)복제 중지 후 자동 재시작 설정이 가능 합니다. ■ ArangoDB Asy..

    Read more
  • [ArangoDB] Basic Guide Overview

    Category NOSQL on 2017. 3. 2. 12:38

    ■ ArangoDB Overview ▶ Architecture https://docs.arangodb.com/3.1/Manual/Architecture/ AppendOnly / MVCC 모든 수정, 삭제 작업은 새로운 Document 를 생성함으로 객체가 보존되고 쓰기 읽기 트랜잭션이 분리 됩니다. Mostly Memory/Durability 데이터베이스 문서는 메모리 맵 파일에 저장되며 스토리지에 즉시 동기화 되지 않습니다. Write-ahead log (미리쓰기 로그파일) - 서버 크래시 후 데이터 복구를 실행하는 데 사용되며 복제 설정에서도 사용할 수 있습니다. - 기본적으로 각 미리 쓰기 로그 파일의 크기는 32MB입니다. (--wal.logfile-size) - write-ahead log 파일..

    Read more
  • [MongoDB] copyDatabase

    Category NOSQL on 2017. 2. 9. 14:34

    https://docs.mongodb.com/manual/reference/method/db.copyDatabase/ 속도는 dump 와 비슷하다. 제약사항은 Slave 에는 카피할 수 없다. file=`/bin/date '+%Y%m%d'` file='fffff' createUser="use game_${file};db.createUser({user:\"아이디\",pwd:\"패스워드",roles: [{role:\"readAnyDatabase\",db:\"${file}\"}]})" copyCommand="db.copyDatabase("game","game_${file}","192.168.0.1:31001","아이디","패스워드","SCRAM-SHA-1")" copyDatabase 명령어는 복사해오려는 서버..

    Read more
  • [MongoDB] 3.4.2 버전 릴리즈 정보

    Category NOSQL on 2017. 2. 9. 14:28

    MongoDB 3.4.2 버전이 2017/2/1 릴리즈 되었습니다. 3.2.9 이후 현재 버전까지 WT의 성능관련 큰 버그는 없는 것으로 보입니다. 릴리스 내용 : https://docs.mongodb.com/manual/release-notes/3.4/?_ga=1.90247453.669056741.1420680288 WiredTiger full DB scan할 때 비효율적인 I/O 현상이 발생하는 문제가 발생했는데.. 해당 문제가 개선 되었네요 SERVER-27125: Arbiters in pv1 should vote no in elections if they can see a healthy primary of equal or greater priority to the candidate. SERVER..

    Read more
  • [MongoDB] Overflow sort stage buffered data usage exceeds internal limit

    Category NOSQL on 2017. 2. 1. 13:35

    Overflow sort stage buffered data usage exceeds internal limit 컬렉션 정렬조회 작업 시 Overflow sort stage buffered data usage of.... 에러가 발생하는 경우 대부분의 원인은 해당 컬렉션에 인덱스가 누락되어 발생한 부분이며 (인덱스를 추가하여도 발생 가능성은 존재 합니다) 인덱스 생성을 통해 해결이 가능 합니다. 참고로 MongoDB 정렬조회 작업 시 32MB를 초과하는 작업의 경우 아래 화면과 같은 Overflow sort stage buffered data usage of....에러가 발생하게 됩니다. 이는 MongoDB 에서 의도적으로 설정 한 sort buffer 제한 값으로 발생하는 사항이며 가급적 결과집합을 줄..

    Read more