AI 에이전트의 경우: 문서 인덱스는 https://www.mongodb.com/ko-kr/docs/llms.txt에서 사용할 수 있으며, 모든 페이지의 마크다운 버전은 어떤 URL 경로에 .md를 추가하여 사용할 수 있습니다.

구성 파일을 사용하여 Atlas 클러스터 만들기

이 튜토리얼에서는 Atlas CLI 명령을 사용하여 구성 파일에서 새 Atlas 클러스터를 생성하는 방법을 보여 줍니다. 구체적으로 다음과 같은 방법을 보여줍니다.

  1. 기존 Atlas 클러스터 의 구성 설정을 가져오고 Atlas cluster 설명 명령을 사용하여 구성 파일 에 설정을 저장합니다.

  2. Atlas cluster 생성 명령을 사용하여 구성 파일에서 cluster를 Atlas 생성합니다.

시작하기 전에 다음이 필요합니다.

  • 기존 클러스터 설정을 조회 하려는 위치와 새 클러스터 를 생성하려는 위치에서 Atlas 조직 및 프로젝트 의 ID가 포함 된 프로필 입니다.

이 섹션의 절차에 따라 구성 파일을 직접 수동으로 생성하는 대신 기존 클러스터에서 설정을 내보내 새 클러스터를 쉽게 생성할 수 있습니다.

1

자세한 내용 은 Atlas CLI에서 연결을 참조하세요.

2
atlas clusters describe <cluster-name> --output json > myCluster.json

앞의 명령에서 <cluster-name> 을 복제하려는 기존 클러스터의 이름으로 바꿉니다.

1

예시

다음 예시에서는 vi 편집기를 사용하여 myCluster.json 파일에서 mySandbox 라는 이름의 M10 클러스터에 대한 복제본 세트 설정을 확인합니다.

vi myCluster.json
{ "backupEnabled": true, "biConnector": { "enabled": false, "readPreference": "secondary" }, "clusterType": "REPLICASET", "connectionStrings": { "standard": "<connection-string>" }, "diskSizeGB": 10, "encryptionAtRestProvider": "NONE", "groupId": "<group-id>", "id": "<64403dd1f2a6b45e71527d5a>", "mongoDBMajorVersion": "6.0", "mongoDBVersion": "6.0.5", "name": "mySandbox", "paused": false, "pitEnabled": true, "stateName": "IDLE", "replicationSpecs": [ { "numShards": 1, "id": "64403dbb0a052449df3d04ae", "zoneName": "Zone 1", "regionConfigs": [ { "analyticsAutoScaling": { "diskGB": { "enabled": true }, "compute": { "enabled": true, "scaleDownEnabled": true, "minInstanceSize": "M10", "maxInstanceSize": "M40" } }, "analyticsSpecs": { "diskIOPS": 3000, "ebsVolumeType": "STANDARD", "instanceSize": "M10", "nodeCount": 0 }, "electableSpecs": { "diskIOPS": 3000, "ebsVolumeType": "STANDARD", "instanceSize": "M10", "nodeCount": 3 }, "readOnlySpecs": { "diskIOPS": 3000, "ebsVolumeType": "STANDARD", "instanceSize": "M10", "nodeCount": 0 }, "autoScaling": { "diskGB": { "enabled": true }, "compute": { "enabled": true, "scaleDownEnabled": true, "minInstanceSize": "M10", "maxInstanceSize": "M40" } }, "priority": 7, "providerName": "AWS", "regionName": "US_EAST_1" } ] } ], "createDate": "2023-04-19T19:15:29Z", "rootCertType": "ISRGROOTX1", "versionReleaseSystem": "LTS", "terminationProtectionEnabled": false}
2

선택적 및 필수 설정에 대해 자세히 알아보려면 클러스터 구성 파일을 참조하세요.

3
1

자세한 내용 은 Atlas CLI에서 연결을 참조하세요.

2
atlas clusters create <new-cluster-name> -f myCluster.json

앞의 명령에서 <new-cluster-name> 을 생성하려는 새 클러스터의 이름으로 바꿉니다.

3
atlas clusters watch <new-cluster-name>

앞의 명령에서 <new-cluster-name> 을(를) 새 클러스터의 이름으로 바꿉니다.

이 명령은 클러스터가 IDLE 상태에 도달할 때까지 클러스터의 상태를 주기적으로 확인합니다. cluster가 예상 상태에 도달하면 명령은 'cluster 사용 가능'을 인쇄합니다.