Soru

Zorluk: ZorManaging Compute Engine Resources

A cloud administrator manages a Compute Engine virtual machine running a stateful database application on a standard persistent disk (`pd-standard`). Due to increasing transaction volume, the database is experiencing disk I/O bottlenecks. The administrator needs to increase both disk IOPS and throughput with minimal operational impact and without recreating the VM or detaching the disk. Which action should the administrator take to achieve this requirement following Google Cloud best practices?

  1. Increase the size of the existing persistent disk while it remains attached to the VM, and then expand the file system within the guest operating system.Cevap
  2. B
    Reconfigure the VM instance provisioning model to Spot VM to automatically unlock higher baseline IOPS tiers for standard persistent disks.
  3. C
    Submit a quota increase request for Compute Engine Disk IOPS in the IAM & Admin Console prior to expanding disk capacity.
  4. D
    Grant the primitive Owner role to the VM instance service account to allow dynamic hypervisor IOPS allocation.

Cevap

Increase the size of the existing persistent disk while attached to the running VM, and then expand the file system from within the guest operating system.
In Compute Engine, persistent disk performance (IOPS and throughput) scales linearly with the size of the disk. Disks can be expanded online without detaching them or stopping the virtual machine. Once the disk capacity is increased via the Cloud Console or gcloud CLI, the administrator only needs to resize the file system within the guest OS to gain the additional capacity and higher I/O performance limits.

Adım Adım Çözüm

1
Identify the storage performance scaling mechanism in Compute Engine.
Recognize that persistent disk performance (IOPS and throughput) increases linearly with provisioned disk size up to specified per-disk limits.
Standard persistent disks scale performance based on disk capacity rather than API settings or IAM configurations.
2
Resize the persistent disk using Google Cloud tools (Cloud Console or `gcloud compute disks resize`).
The disk capacity and corresponding IOPS/throughput limits are expanded immediately while the disk remains attached to the running VM.
Compute Engine supports online persistent disk expansion without requiring instance shutdown or disk detachment.
3
Resize the partition and file system inside the guest OS.
The operating system detects and utilizes the additional disk space and improved I/O limits.
Increasing the GCP disk size makes raw storage available, but file system utilities (such as `resize2fs` or `xfs_growfs`) are necessary to make the extra space usable by applications.

Anahtar Kavram

Online Persistent Disk Resizing and Performance Scaling
Tahmini Süre:2m 0s
Bu soruyu puanla