limited-data-loss 모드는 장애 조치를 시작하기 전에 기본 노드와 복제본 간의 데이터 차이가 30MB 미만인지 확인하여 데이터 손실을 최소화합니다. 복제본과 동기화되어야 하는 데이터 바이트마다 기본 노드의 오프셋이 증가합니다. limited-data-loss 모드에서는 기본 노드와 각 복제본 간의 가장 큰 오프셋 델타가 30MB 이상인 경우 장애 조치가 취소됩니다. 더 많은 데이터 손실을 허용하고 장애 조치를 적극적으로 실행하려면 데이터 보호 모드를 force-data-loss로 설정해 보세요.
force-data-loss 모드는 장애 조치 전략 체인을 사용하여 장애 조치를 적극적으로 실행합니다. 장애 조치를 시작하기 전에 기본 노드와 복제본 간의 오프셋 델타를 확인하지 않습니다. 30MB 이상의 데이터 변경사항이 손실될 수 있습니다.
[[["이해하기 쉬움","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-05(UTC)"],[],[],null,["# Initiate a manual failover\n\n| **Note:** You can only initiate a manual failover using the gcloud CLI tool.\n\nThis page describes how to initiate a **manual failover** for a standard tier Memorystore for Redis instance. The manual failover feature allows you to test how normal failovers affect your application.\n\nFor an overview of this feature, see [Manual failover](/memorystore/docs/redis/manual-failover-overview).\n\nInitiating a failover\n---------------------\n\n| **Warning:** Using the `--data-protection-mode=force-data-loss` mode may cause significant data loss. See [Manual failover](/memorystore/docs/redis/manual-failover-overview) to learn the appropriate scenarios for using the `force-data-loss` mode.\n\n1. Open a terminal window\n\n2. Use the `gcloud config` command to set your default project:\n\n\n ```\n gcloud config set core/project PROJECT_ID\n ```\n\n \u003cbr /\u003e\n\n3. Use the following command to initiate a failover:\n\n\n ```\n gcloud redis instances failover INSTANCE_NAME\n ```\n\n \u003cbr /\u003e\n\nOptional data protection mode\n-----------------------------\n\nThe two available data protection modes are:\n\n- `limited-data-loss` mode (default).\n- `force-data-loss` mode.\n\nTo set the data protection mode, use one of the following commands: \n\n gcloud redis instances failover INSTANCE_NAME --data-protection-mode=limited-data-loss\n\nor \n\n gcloud redis instances failover INSTANCE_NAME --data-protection-mode=force-data-loss\n\nHow data protection modes work\n------------------------------\n\nThe `limited-data-loss` mode minimizes data loss by verifying that the\ndifference in data between the primary and replica is below 30 MB before\ninitiating the failover. The offset on the primary is incremented for each byte\nof data that must be synchronized to its replicas. In the `limited-data-loss`\nmode, the failover will abort if the greatest offset delta between the primary\nand each replica is 30MB or greater. If you can tolerate more data loss and want\nto aggressively execute the failover, try setting the data protection mode to\n`force-data-loss`.\n\nThe `force-data-loss` mode employs a chain of failover strategies to\naggressively execute the failover. It does not check the offset delta between\nthe primary and replicas before initiating the failover; you can potentially\nlose more than 30MB of data changes.\n\nSee [Manual failover](/memorystore/docs/redis/manual-failover-overview)\nfor additional information."]]