cloud 에서 Atlas 클러스터를 배포 하고 관리 데 사용하는 Atlas CLI 명령의 경우 --autoScalingMode
옵션을 사용하여 클러스터 리소스 확장 처리하는 방법을 구성할 수 있습니다. 다음 명령에 이 옵션을 사용하여 클러스터 노드를 함께 확장하다 또는 독립적으로 확장할지 여부를 지정할 수 있습니다.
--autoScalingMode
옵션은 다음 값을 사용합니다.
atlas setup --clusterName symmetricShardCluster --provider AWS --autoScalingMode clusterWideScaling --projectId 5e2211c17a3e5a48f5497de3 --tier M10
clusterWideScaling
로 구성된 클러스터의 경우 JSON 출력은 다음과 유사합니다.
샘플 clusterWideScaling 출력
{ "clusterType": "SHARDED", "name": "symmetricShardCluster", "diskSizeGB": 0, "replicationSpecs": [ { "id": "internalId", "numShards": 2, "regionConfigs": [ { "electableSpecs": { ... },the "readOnlySpecs": { ... }, ... } ], "zoneName": "string" } ], ... }
출력에 대해 자세히 학습 getCluster 엔드포인트를 참조하세요. --autoScalingMode
옵션을 생략하면 명령은 기본적으로 clusterWideScaling
모드 로 설정됩니다.
atlas setup --clusterName asymmetricShardCluster --provider AWS --autoScalingMode independentShardScaling --projectId 5e2211c17a3e5a48f5497de3 --tier M10
independentShardScaling
로 구성된 클러스터의 경우 JSON 출력은 다음과 유사합니다.
샘플 standaloneShardScaling 출력
{ "clusterType": "SHARDED", "name": "asymmetricShardCluster", "replicationSpecs": [ { "id": "externalId", "regionConfigs": [ { "electableSpecs": { "diskSizeGB": 10, ... }, "readOnlySpecs": { "diskSizeGB": 10, ... }, } ], "zoneId": "string",// for GET/UPDATE "zoneName": "string" }, ... ] }
JSON 출력에는 단일 샤드의 속성을 설명하는 replicationSpecs
객체가 포함되어 있습니다. replicationSpecs
요소는 numShards
필드 대신 샤드 수를 정의합니다. diskSizeGB
필드 각 샤드의 replication_specs.regionConfig
객체 내부에 있습니다. 글로벌 클러스터 의 구역 식별하는 zoneId
필드 출력에 반환됩니다. 출력에 대해 자세히 학습하려면 getCluster 엔드포인트를 참조하세요.