Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Ao interromper um cluster de banco de dados, ele é pausado para economizar recursos. É possível parar e iniciar clusters de banco de dados com o console isolado do Google Distributed Cloud (GDC) ou com a ferramenta CLI gdcloud.
Console
No menu principal do console do GDC, escolha Serviço de banco de dados.
Selecione o cluster de banco de dados para iniciar ou interromper.
Clique em PARAR ou INICIAR.
CLI gdcloud
Use o comando a seguir para interromper um cluster de banco de dados:
gdclouddatabaseclustersstopCLUSTER_NAME
Use o comando a seguir para iniciar um cluster de banco de dados:
gdclouddatabaseclustersstartCLUSTER_NAME
Substitua:
CLUSTER_NAME com o nome do cluster de banco de dados a ser iniciado ou
interrompido.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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`)."]]