建立 Dataproc Metastore 服務時,您可以選擇使用 Dataproc Metastore 2 服務或 Dataproc Metastore 1 服務。
本文說明如何控管 Dataproc Metastore 2 的資源耗用量。
縮放比例係數和版本
Dataproc Metastore 2 會使用縮放比例和版本 (工作負載),處理不同程度的穩定性和工作負載。建立 Dataproc Metastore 服務時,請選取縮放比例和版本。
建立 Dataproc Metastore 服務後,您可以修改縮放比例,向上或向下調整服務規模。縮放比例係數範圍從 small
到 XLarge
,並以介於 0.1
到 6.0
之間的數字表示。
如要進一步瞭解版本和縮放比例,請參閱「縮放比例和工作負載」。
自動調度資源
Dataproc Metastore 2 也支援自動調度資源。如果開啟自動調度資源功能,您可以設定最低和最高縮放比例係數。設定這些參數後,服務就會自動增加或減少資源耗用量,以執行工作負載。自動調度資源功能僅適用於單一區域的 Dataproc Metastore 執行個體。
如要進一步瞭解如何設定自動調度資源,請參閱「建立自動調度服務」。
資源受限的區域
Dataproc Metastore 位於多個區域,這些區域的可用資源比其他區域少。這些區域會將最大縮放比例限制為 1
,且不支援自動調度資源。Dataproc Metastore 會將下列區域視為資源受限區域:
australia-southeast2
europe-southwest1
europe-west8
europe-west9
europe-west12
southamerica-west1
us-east5
us-south1
me-central1
me-central2
me-west1