Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menghentikan cluster database akan menjeda cluster untuk menghemat resource. Anda dapat menghentikan
dan memulai cluster database dengan konsol air-gapped Google Distributed Cloud (GDC) atau dengan
alat gdcloud CLI.
Konsol
Dari menu utama konsol GDC, pilih Database Service.
Pilih cluster database untuk memulai atau menghentikan.
Klik HENTIKAN atau MULAI.
gdcloud CLI
Gunakan perintah berikut untuk menghentikan cluster database:
gdclouddatabaseclustersstopCLUSTER_NAME
Gunakan perintah berikut untuk memulai cluster database:
gdclouddatabaseclustersstartCLUSTER_NAME
Ganti kode berikut:
CLUSTER_NAME dengan nama cluster database yang akan dimulai atau dihentikan.
[[["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."],[],[],null,["# Start and stop database clusters\n\nStopping a database cluster pauses the cluster to save resources. You can stop\nand start database clusters with the Google Distributed Cloud (GDC) air-gapped console or with\nthe gdcloud CLI tool. \n\n### Console\n\n1. From the main menu of the GDC console, choose **Database Service**.\n2. Select the database cluster to start or stop.\n3. Click **STOP** or **START**.\n\n### gdcloud CLI\n\nUse the following command to stop a database cluster: \n\n gdcloud database clusters stop \u003cvar translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e\n\nUse the following command to start a database cluster: \n\n gdcloud database clusters start \u003cvar translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e with the name of the database cluster to start or stop.\n\n### API\n\n kubectl patch dbcluster.\u003cvar translate=\"no\"\u003eDBENGINE_NAME\u003c/var\u003e.dbadmin.gdc.goog \u003cvar translate=\"no\"\u003eDBCLUSTER_NAME\u003c/var\u003e -p '{\"spec\":{\"primarySpec\": {\"isStopped\": \u003cvar translate=\"no\"\u003eIS_STOPPED\u003c/var\u003e}}}' --type=merge -n \u003cvar translate=\"no\"\u003eUSER_PROJECT\u003c/var\u003e\n\nReplace the following variables:\n\n- \u003cvar translate=\"no\"\u003eDBENGINE_NAME\u003c/var\u003e, the name of the database engine. This is one of `alloydbomni`, `postgresql`, or `oracle`.\n- \u003cvar translate=\"no\"\u003eDBCLUSTER_NAME\u003c/var\u003e, the name of the database cluster.\n- \u003cvar translate=\"no\"\u003eUSER_PROJECT\u003c/var\u003e, the name of the user project where the database cluster was created.\n- \u003cvar translate=\"no\"\u003eIS_STOPPED\u003c/var\u003e to indicate whether the database cluster should be stopped (`true`) or not (`false`)."]]