Blog Content

  • [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
  • [Script] Split to Rows

    Category MYSQL on 2017. 2. 9. 07:01

    http://stackoverflow.com/questions/17942508/sql-split-values-to-multiple-rows numbers 라는 테이블에 약 8,000개 정도의 일련번호 값을 넣어 둡니다. (MSSQL 과 비슷한 방식) I have table : id | name 1 | a,b,c 2 | b i want output like this : id | name 1 | a 1 | b 1 | c 2 | If you can create a numbers table, that contains numbers from 1 to the maximum fields to split, you could use a solution like this: select tablename.id, SUBSTR..

    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
  • [nGrinder] 설치작업

    Category OpenSource on 2017. 1. 31. 12:39

    ngrinder는 NHN에서 오픈 소스 기반인 The Grinder를 확장하여 만든 부하 테스트툴 로써 WAS 기반으로 동작 하며, jython/groovy/groovy+maven을 지원 Controller : WAS를 통해 UI 기반으로 동작 하며, 성능 테스트를 위한 웹인터페이스/테스트 프로세스 조정/표시 통계 테스트 기능이 제공 됩니다. Agent : Controller로부터 테스트 코드를 받아 실행에 옮기는 Worker 개념 입니다. Target : 테스트 대상으로, Target 서버에 nGrinder-Monitor가 설치 및 실행 되면 테스트 간 상황 정보를 Controller에서 모니터링이 가능 합니다. nGrinder 메뉴얼 https://naver.github.io/ngrinder/ htt..

    Read more
  • MariaDB Galera Cluster 10.0.14 - GTID Replication

    Category MARIADB on 2014. 11. 28. 15:50

    https://mariadb.com/blog/mariadb-10-gtid-explained 선행작업으로 총 3대의 노드로 MariaDB Galera Cluster 를 구축해 놓아야 합니다. 이 후 특정 MASTER에 SLAVE 를 복제로 연결하는 작업을 아래에서 진행 하겠습니다. 참고로 SLAVE 서버역시 부모노드들과 동일한 MariaDB Galera 10.0.14 버전을 설치해야 하며 WSREP 옵션은 my.cnf 파일에서 모두 주석처리 합니다. -- STEP1. SLAVE 서버 설치 및 환경설정 (설치작업 정보 생략) [my.cnf - SLAVE 정보] ############################################################### # my.cnf # ########..

    Read more
  • 테스트

    Category 삶의여행 on 2014. 11. 28. 12:16

    테스트

    Read more