Giter VIP home page Giter VIP logo

study-mongo-elastic's Introduction

mongoDB 및 elasticsearch 연동

last update 2021.07.29


구성요소

  • MongoDB
  • Monstache
  • Docker-compose
  • Elasticsearch
  • 쉘 스크립트

파일시스템 구조

es-mongo-sync
├ elasticsearch                 
    └ monstache.config.toml     # monstache 동기화 세팅 설정파일
├ setup-rspl
    ├ Dockerfile                # replicaset 구성을 위한 build파일
    ├ replicaSet.js             # replicaset 구성 설정
    └ setup.sh                  # docker 몽고 커맨드용 스크립트
├ docker-compose.yaml           # docker-comopse 구성
└ readme.md

내용

  1. 컨테이너 시작
$ docker-compose up -d
  1. mongoDB에 데모데이터 삽입 캐글데이터 예시
$ docker exec -i mongo sh -c 'mongoimport -u root -p factory!root -d test --authenticationDatabase admin -c test --type csv --headerline' < library-collection-inventory.csv

please image please image please image

  1. mongoDB 인증 이슈 해결 (계정 생성 또는 keyFile 생성) 참고자료


이슈

mongoDB 인증 관련 오류

please image

  • keyFile 생성
  • keyFile 권한 문제 발생 please image

replSet 문제

데이터 삽입 시 속도저하 발생

please image

study-mongo-elastic's People

Contributors

e7217 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.