Anda dapat menskalakan sebagian besar layanan yang berjalan di Kubernetes dari
command line atau dalam penggantian konfigurasi. Anda dapat menetapkan parameter
penskalaan untuk layanan runtime hybrid Apigee di
file overrides.yaml.
Cara Anda menskalakan dan menskalakan otomatis setiap layanan bergantung pada jenis layanan.
Untuk informasi selengkapnya tentang penskalaan, lihat dokumentasi Kubernetes.
Tabel berikut merangkum layanan runtime campuran dan cara menskalakan serta menskalakan secara otomatis layanan tersebut dalam konfigurasi atau dari command line:
StatefulSet tidak mendukung penskalaan otomatis. Cassandra di-deploy dalam kumpulan 3 replika. Apigee merekomendasikan agar Anda menambahkan 3 node tambahan ke nodepool Cassandra sebagai node pekerja standby.
Untuk menskalakan di command line, Anda dapat menggunakan opsi scalekubectl.
Untuk menskalakan melalui konfigurasi, tingkatkan nilai properti konfigurasi replicaCountMin Deployment untuk objek mart, synchronizer, metrics, atau mp.
Deployment menggunakan Horizontal Pod Autoscaler untuk penskalaan otomatis. Tetapkan properti targetCPUUtilizationPercentage objek Deployment ke nilai minimum untuk penskalaan ke atas; jika nilai ini terlampaui, Kubernetes akan menambahkan pod hingga nilai replicaCountMax.
Untuk menskalakan melalui konfigurasi, tingkatkan nilai properti replicaCountMin objek udca dalam file overrides.yaml.
Layanan UDCA menggunakan Horizontal Pod Autoscaler untuk
penskalaan otomatis. Tetapkan properti targetCPUUtilizationPercentage objek udca ke nilai minimum untuk penskalaan ke atas; jika nilai ini terlampaui, Kubernetes akan menambahkan pod hingga nilai replicaCountMax.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[[["\u003cp\u003eThis documentation version 1.1 is end-of-life and users should upgrade to a newer version, as detailed in the supported versions section.\u003c/p\u003e\n"],["\u003cp\u003eMost Apigee hybrid runtime services in Kubernetes can be scaled using the command line or by modifying the \u003ccode\u003eoverrides.yaml\u003c/code\u003e file.\u003c/p\u003e\n"],["\u003cp\u003eCassandra can be scaled up using \u003ccode\u003ekubectl\u003c/code\u003e or by changing the \u003ccode\u003ereplicaCount\u003c/code\u003e in \u003ccode\u003eoverrides.yaml\u003c/code\u003e, and should be scaled in multiples of three due to the default replication factor.\u003c/p\u003e\n"],["\u003cp\u003eServices like MART, Synchronizer, Metrics, and MPs can be scaled via \u003ccode\u003ekubectl\u003c/code\u003e or by adjusting the \u003ccode\u003ereplicaCountMin\u003c/code\u003e in the configuration, and support autoscaling with Horizontal Pod Autoscaler based on CPU utilization.\u003c/p\u003e\n"],["\u003cp\u003eThe Logger service scales with the scaling of pods, as it is implemented as a DaemonSet, which manages a replica of a pod on each node.\u003c/p\u003e\n"]]],[],null,["# Scale and autoscale runtime services\n\n| You are currently viewing version 1.1 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\nYou can scale most services running in Kubernetes from the\ncommand line or in a configuration override. You can set scaling\nparameters for Apigee hybrid runtime services in the\n[`overrides.yaml` file](/apigee/docs/hybrid/v1.1/customize-services).\n\nHow you scale and autoscale each service depends on the type of service.\n| **TIP:** You can use the `-w` option to continuously watch your nodes, as the following example shows: \n|\n| ```\n| kubectl get nodes -w ...\n| ```\n\nFor more information on scaling, see the [Kubernetes](https://kubernetes.io) documentation.\n\nThe following table summarizes the hybrid runtime services and how you can scale and autoscale\nthem in configurations or from the command line:"]]