목록분류 전체보기 (1395)
변군이글루(Mirror)

mongodb secondary show dbs 에러 show dbs; rs3:SECONDARY> show dbs; uncaught exception: Error: listDatabases failed:{ "topologyVersion" : { "processId" : ObjectId("62a024b73a8739206de930ae"), "counter" : NumberLong(6) }, "ok" : 0, "errmsg" : "not master and slaveOk=false", "code" : 13435, "codeName" : "NotPrimaryNoSecondaryOk" } : _getErrorWithCode@src/mongo/shell/utils.js:25:13 Mongo.prototype.get..

애플 맥북 실리콘 M1에서 도커 빌드 시 오류 [오류] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested docker buildx build --platform 플래그 추가 docker buildx build -f Dockerfile.arm --platform linux/arm64/v8 -t anti1346/mongo-arm:5.0.8 . 기본 빌더 출력 docker buildx ls $ docker buildx ls NAME/NODE DRIVER/ENDPOINT STATUS PLATFORMS defa..

몽고디비 클러스터 구성하기(mongodb shard cluster) 테스트 환경 $ cat /etc/os-release NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-po..

mongodb(router) - 3 mongodb PRIMARY docker run -it --rm --add-host=mongodb-201:1.1.1.201 --add-host=mongodb-202:1.1.1.202 --add-host=mongodb-203:1.1.1.203 anti1346/mongo:5.0.8 bash mongo mongodb-201:27017 # mongo mongodb-201:27017 MongoDB shell version v5.0.8 connecting to: mongodb://mongodb-201:27017/test?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("52..

mongodb(shard) - 2 mongodb PRIMARY docker-compose exec mongo1 bash mongo --port 27011 rs.initiate( { _id: "rs0", members: [ { _id: 0, host : "mongodb-201:27011" }, { _id: 1, host : "mongodb-202:27011" }, { _id: 2, host : "mongodb-203:27011" }, { _id: 3, host : "mongodb-201:27012" }, { _id: 4, host : "mongodb-202:27012" }, { _id: 5, host : "mongodb-203:27012" }, { _id: 6, host : "mongodb-203:2701..

mongodb(config) - 1 mongodb PRIMARY docker-compose exec config bash mongo --port 27018 ReplicaSet 초기화 rs.initiate( { _id: "configserver", members: [ { _id: 0, host : "mongodb-201:27018" }, { _id: 1, host : "mongodb-202:27018" }, { _id: 2, host : "mongodb-203:27018" } ] } ) use admin configserver:PRIMARY> use admin switched to db admin db.createUser({user:"root",pwd:"changeme",roles:[{role:"root"..

Elasticsearch와 Kibana를 Docker를 사용하여 single-node로 실행하는 방법 1. Docker 설치 Docker를 설치합니다. Docker를 설치하려면 Docker 공식 웹사이트에서 설치 지침을 따릅니다. 2. Elasticsearch Docker 컨테이너 실행 Elasticsearch를 실행하는 Docker 컨테이너를 실행합니다. docker run -d --name elasticsearch --net esnet -p 9200:9200 -p 9300:9300 -e ES_JAVA_OPTS="-Xms1g -Xmx1g" docker.elastic.co/elasticsearch/elasticsearch:8.2.1; docker logs -f elasticsearch Elasticsea..

Elasticsearch 클러스터와 Kibana를 Docker를 사용하여 실행하는 방법(elasticsearch cluster) 1. Docker 설치 Docker를 설치합니다. Docker를 설치하려면 Docker 공식 웹사이트에서 설치 지침을 따릅니다. 2. Elasticsearch Docker 컨테이너 실행 Docker Network 생성 docker network create esnet node-1 컨테이너 실행 docker run -it --name node-1 --net esnet -p 9200:9200 -p 9300:9300 -e ES_JAVA_OPTS="-Xms1g -Xmx1g" docker.elastic.co/elasticsearch/elasticsearch:8.2.1 ----------..