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-05 UTC."],[[["\u003cp\u003eThis documentation version 1.2 is end of life and users should upgrade to a newer version for continued support and updates.\u003c/p\u003e\n"],["\u003cp\u003eScaling of Apigee hybrid runtime services can be managed either through the command line or by modifying the \u003ccode\u003eoverrides.yaml\u003c/code\u003e configuration file.\u003c/p\u003e\n"],["\u003cp\u003eThe method for scaling and autoscaling services depends on the type of service, with some supporting scaling through configuration, command line, or autoscaling, and some, like Cassandra, supporting scaling up only.\u003c/p\u003e\n"],["\u003cp\u003eCassandra, which is implemented as a StatefulSet, requires manual scaling in increments of three due to its default replication factor, and does not support autoscaling.\u003c/p\u003e\n"],["\u003cp\u003eServices implemented as DaemonSets, like the Logger, scale alongside the number of nodes, while services like MART, Synchronizer, Metrics, MPs and UDCA utilize Horizontal Pod Autoscalers for dynamic scaling based on CPU utilization thresholds.\u003c/p\u003e\n"]]],[],null,["# Scale and autoscale runtime services\n\n| You are currently viewing version 1.2 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.2/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:"]]