이 페이지에서는 인스턴스를 확장하는 방법과 Memorystore for Memcached에서 확장이 어떤 방식으로 작동하는지를 설명합니다.
클러스터의 노드 수를 최소 1개 노드로 축소하거나 최대 20개 노드로 확장할 수 있습니다. 노드의 메모리 용량 또는 vCPU 수를 확장할 수 없습니다.
수평 확장
클러스터를 수평 확장할 때 자동 검색을 사용하지 않으면 애플리케이션에서 새 노드의 IP 주소에 액세스할 수 있도록 애플리케이션에 이 주소를 수동으로 추가해야 합니다. 또한 Memorystore for Memcached는 노드의 데이터를 재조정하지 않으므로, 수행하려는 모든 데이터 재조정을 관리해야 합니다.
수평 축소
인스턴스를 수평 축소하면 노드에 저장되었지만 클러스터에서 삭제된 데이터가 손실됩니다.
수평 축소 작업 중에 Memorystore는 노드 목록 끝부터 노드를 삭제합니다. 예를 들어 노드 12개에서 노드 8개로 축소하는 경우 9~12번째 노드가 인스턴스에서 삭제됩니다.
Google Cloud 콘솔에서 Memcached 인스턴스의 노드 목록 탭에서 노드 목록을 볼 수 있습니다.
다음 명령어를 실행하여 노드 목록을 확인할 수도 있습니다. 이때 variables를 적절한 값으로 바꿉니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[],[],null,["# Scale Memcached instances\n\nThis page explains how to scale instances, and how scaling works for\nMemorystore for Memcached.\n\nYou can scale the number of nodes in a cluster down to a minimum of 1 node or\nup to a maximum of 20 nodes. You cannot scale a node's memory capacity or\nnumber of vCPUs.\n\n### Scaling out\n\nWhen you scale out your cluster, unless you use [Auto Discovery](/memorystore/docs/memcached/auto-discovery-overview)\nyou must manually add the IP addresses of the new nodes to your application so\nthe application can access them. Also, Memorystore for Memcached does not rebalance the\ndata in your nodes. You must manage any data rebalancing you wish to perform.\n\n### Scaling in\n\nIf you scale in your instance, you will lose the data that is stored in the\nnodes that are deleted from your cluster.\n\nDuring a scale in operation, Memorystore removes nodes from the end of the\nnode list. For example, if you are scaling from 12 nodes to 8 nodes, nodes 9-12\nwill be deleted from the instance.\n\nYou can view the node list on your Memcached instance's **node list**\ntab in the Google Cloud console.\n\nYou can also view the node list by running the following command, replacing\n\u003cvar translate=\"no\"\u003evariables\u003c/var\u003e with appropriate values: \n\n```\ngcloud memcache instances describe instance-id --region=us-region\n```\n\n#### Managing nodes when scaling in\n\nYour application's node management strategy affects what actions you need to\ntake when scaling in your cluster.\n\nIf you manually manage the addition and removal of Memcached nodes in your\napplication, you must adjust your code by removing references to the nodes that\nwill be deleted before scaling in the cluster.\n\nIf you use [Auto Discovery](/memorystore/docs/memcached/auto-discovery-overview),\nnode addition and removal is handled for you automatically.\n\nScaling the number of nodes in your cluster\n-------------------------------------------\n\n### Console\n\n1. Go to the Memorystore for Memcached page in the Google Cloud console.\n\n \u003cbr /\u003e\n\n [Memorystore for Memcached](https://console.cloud.google.com/memorystore/memcached/instances)\n2. Click the Instance ID of the instance you want to resize.\n\n3. Click **Edit**.\n\n4. In the **Nodes** field, enter your desired number of nodes.\n\n5. Click **Save**.\n\n### Gcloud\n\nEnter the following command, replacing the \u003cvar translate=\"no\"\u003evariables\u003c/var\u003e\nwith the appropriate values: \n\n```\ngcloud memcache instances update instance-id --region=region --node-count=desired-number-of-nodes\n```\n\nFor example: \n\n```\ngcloud memcache instances update myinstance --region=us-central1 --node-count=6\n```\n\nWhat's next\n-----------\n\n- View available [Memcached configurations](/memorystore/docs/memcached/memcached-configs).\n- [Monitor your Memcached instances](/memorystore/docs/memcached/monitoring-instances)."]]