클라이언트 VM과 Filestore 인스턴스가 동일한 리전에 있는지 확인합니다. 리전 간에 마운트하면 성능이 저하될 뿐만 아니라 네트워킹 비용도 발생합니다.
Filestore 인스턴스가 전체 용량에 도달했거나 거의 근접하지 않았는지 확인합니다. 용량이 거의 가득 차면 남은 공간이 심하게 조각나므로 읽기 및 쓰기 작업이 느려집니다. 이 시나리오를 방지하는 데 필요한 여유 공간 양은 경우에 따라 다릅니다. 디스크 공간 알림 부족을 설정하는 것이 좋습니다.
테스트 결과에 비정상적인 성능 저하가 나타나면 비즈니스 계정 담당자에게 문의하세요. 테스트 결과가 예상과 비슷하거나 더 나은 경우 다음 섹션을 계속 진행하세요.
성능 저하를 일으키는 사용 사례
다음은 성능 저하를 일으키는 몇 가지 사용 사례 및 시나리오입니다.
작은 파일이 대량 포함된 워크로드
Filestore 파일 공유는 데이터 안전 및 NFS 프로토콜 규정 준수를 위해 sync 내보내기 옵션을 사용합니다. 대부분의 데이터 수정 작업에 대해 Filestore 인스턴스는 데이터가 스토리지에 커밋될 때까지 기다린 후 클라이언트 VM의 요청에 회신합니다. 작업에 많은 파일이 관련되어 있으면 클라이언트에서 수행되는 동기 작업이 길어지고 누적 지연 시간이 추가됩니다.
이 시나리오의 예시는 tar 파일과 같이 파일 공유에서 보관 파일을 추출할 때입니다. TAR은 많은 파일이 포함된 보관 파일을 처리할 때 일련의 많은 동기 작업을 만듭니다. 이로 인해 성능이 저하됩니다.
많은 작은 파일을 파일 공유에 복사하려는 경우 Google Cloud CLI와 같은 도구를 사용하여 파일을 동시에 생성해 보세요.
mkdir -p /mnt/nfs/many_files_rsync/
time gcloud storage rsync many_files /mnt/nfs/many_files_rsync/ --recursive
파일 공유에 저장된 파일마다 inode 하나를 사용합니다. 파일 시스템에서 inode가 부족하면 할당된 최대 용량에 도달하지 않았어도 파일 공유에 파일을 더 저장할 수 없습니다. 하지만 최대 inode 수에 도달하는 경우는 매우 드뭅니다. 많은 작은 파일을 저장해야 하는 경우에만 문제가 됩니다.
[[["이해하기 쉬움","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-04-01(UTC)"],[[["This page helps troubleshoot slow performance issues with Filestore, providing actionable steps to diagnose and resolve them."],["Slow performance can often be attributed to client VM configuration, such as incorrect machine type, mount options (avoid using `sync`), or being in a different region than the Filestore instance."],["Filestore performance can degrade when the instance is near full capacity, leading to fragmentation and slower read/write operations, so monitoring is crucial."],["Workloads involving a high volume of small files can result in slow performance due to the synchronous nature of Filestore operations, and copying data between Cloud Storage and Filestore using the gcloud CLI can be slow as well."],["Testing performance using `fio` is recommended to identify issues, and if performance is slower than expected, contacting an account representative is advised."]]],[]]