Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Wenn Sie einen Datenbankcluster beenden, wird er angehalten, um Ressourcen zu sparen. Sie können Datenbankcluster mit der Google Distributed Cloud (GDC) Air-Gapped Console oder mit dem gdcloud-CLI-Tool beenden und starten.
Console
Wählen Sie im Hauptmenü der GDC Console Database Service aus.
Wählen Sie den Datenbankcluster aus, den Sie starten oder stoppen möchten.
Klicken Sie auf BEENDEN oder STARTEN.
gdcloud-Befehlszeile
Verwenden Sie den folgenden Befehl, um einen Datenbankcluster zu beenden:
gdclouddatabaseclustersstopCLUSTER_NAME
Verwenden Sie den folgenden Befehl, um einen Datenbankcluster zu starten:
gdclouddatabaseclustersstartCLUSTER_NAME
Ersetzen Sie Folgendes:
CLUSTER_NAME durch den Namen des zu startenden oder zu stoppenden Datenbankclusters.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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`)."]]