Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Outil de recommandation pour la fiabilité
Le moteur de recommandation de fiabilité prend en charge la recommandation Activer les sauvegardes planifiées, qui fait partie du plan de reprise après sinistre. Elle permet de protéger vos données contre les sinistres, comme la suppression ou la modification accidentelle de données.
Ce document explique comment activer et afficher vos recommandations et vos insights pour améliorer la fiabilité de vos bases de données.
Avant de commencer
Pour pouvoir afficher les recommandations et les insights sur la fiabilité de Firestore compatible avec MongoDB, procédez comme suit :
Activez l'API Recommender comme décrit dans la page Activer l'API.
Assurez-vous de disposer des autorisations nécessaires.
Vous devez disposer de l'un des rôles suivants, qui fournissent les autorisations nécessaires :
Vous pouvez lister les recommandations de fiabilité de différentes manières.
Vous ne pouvez consulter les recommandations de fiabilité que si vous avez des bases de données non vides et en cours d'utilisation pour lesquelles les sauvegardes planifiées ou la récupération PITR ne sont pas activées.
Console Google Cloud
Pour afficher vos recommandations :
Accédez à la console Google Cloud ou utilisez le bouton suivant :
Vous pouvez afficher les insights et les recommandations détaillées concernant le plan de reprise après sinistre de différentes manières.
Console
Pour afficher des insights et des recommandations détaillées à l'aide de la console Google Cloud , cliquez sur le bouton de recommandation dans la liste des bases de données.
Les recommandations et les insights sur la fiabilité sont disponibles sans frais. Pour en savoir plus sur les autres niveaux de tarification, consultez la page Tarifs de l'outil de recommandation.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[],[],null,["# Reliability recommender\n=======================\n\nThe Reliability recommender supports the\n[Enable scheduled backups](/firestore/mongodb-compatibility/docs/backups) recommendation which is a part of [Disaster Recovery Plan](/firestore/mongodb-compatibility/docs/disaster-recovery) to protect your data against data disasters such as accidental deletion or modification of data.\n\nThis document describes how to enable and view your recommendations\nand insights to improve the reliability of your databases.\n\nBefore you begin\n----------------\n\nBefore you can view Firestore with MongoDB compatibility reliability recommendations and\ninsights, do the following:\n\n1. Enable the Recommender API as described in\n [Enable the API](/recommender/docs/enabling).\n\n2. Ensure that you have sufficient permissions.\n You must have one of the following roles, which provide the necessary\n permissions:\n\n\n \u003cbr /\u003e\n\n These Recommender roles provide the following API permissions:\n\n\n \u003cbr /\u003e\n\n For more information about roles and about granting access, see the\n following:\n - [Understanding roles](/iam/docs/understanding-roles)\n - [Managing access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access)\n\nView recommendations\n--------------------\n\nYou can list Reliability recommendations in different ways.\n\nYou can view reliability recommendations only if you have non-empty, in-use databases that don't have scheduled backups or PITR enabled. \n\n### Google Cloud console\n\n\nYou can view your recommendations by doing following:\n\n1. Go to the Google Cloud console, or use the following button:\n\n [Go to Google Cloud console](https://console.cloud.google.com/)\n2. Select the **Recommendations** tab.\n\n\u003cbr /\u003e\n\n### gcloud CLI\n\n\nTo list reliability recommendations by using `gcloud`, run the\n[`gcloud recommender recommendations list`](/sdk/gcloud/reference/recommender/recommendations/list)\ncommand as follows: \n\n gcloud recommender recommendations list \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n --recommender=google.firestore.database.\u003cvar\u003eRECOMMENDER\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: Your project ID\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: A region, such as `us-central1`\n- \u003cvar translate=\"no\"\u003eRECOMMENDER\u003c/var\u003e: The ID of the recommender as `ReliabilityRecommender`.\n\n\u003cbr /\u003e\n\n### Recommender API\n\n\nTo list your reliability recommendations by using the\n[Recommendations API](/recommender/docs/using-api), call the\n[`recommendations.list`](/recommender/docs/reference/rest/v1beta1/projects.locations.recommenders.recommendations/list)\nmethod as follows: \n\n curl -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n -H \"x-goog-user-project: \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e\" \\\n \"https://recommender.googleapis.com/v1/projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e/recommenders/google.firestore.database.\u003cvar translate=\"no\"\u003eRECOMMENDER\u003c/var\u003e/recommendations\"\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: Your project ID.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: A region, such as `us-central1`.\n- \u003cvar translate=\"no\"\u003eRECOMMENDER\u003c/var\u003e: The ID of the recommender as `ReliabilityRecommender`.\n\nFor more information, see [Using the API - Recommendations](/recommender/docs/using-api).\n\nView insights\n-------------\n\nYou can view insights and detailed recommendations about disaster recovery plan in different ways. \n\n### Console\n\nTo view insights and detailed recommendations by using the Google Cloud console,\nclick the recommendation button in the list of databases.\n\n### gcloud CLI\n\n\nTo view insights by using `gcloud`, run the\n[`gcloud recommender insights list`](/sdk/gcloud/reference/recommender/insights/list)\ncommand as follows: \n\n gcloud recommender insights list \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n --insight-type=google.firestore.database.\u003cvar translate=\"no\"\u003eINSIGHT_TYPE\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: Your project ID.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: A region, such as `us-central1`.\n- \u003cvar translate=\"no\"\u003eINSIGHT_TYPE\u003c/var\u003e: The ID of the insight type as `ReliabilityInsight`.\n\n \u003cbr /\u003e\n\n### Recommender API\n\n\nTo list your insights by using the\nRecommender API, run the following command: \n\n curl -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n \"https://recommender.googleapis.com/v1/projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e/insightTypes/google.firestore.database.\u003cvar translate=\"no\"\u003eINSIGHT_TYPE\u003c/var\u003e/insights\"\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: Your project ID.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: A region, such as `us-central1`.\n- \u003cvar translate=\"no\"\u003eINSIGHT_TYPE\u003c/var\u003e: The ID of the insight type as `ReliabilityInsight`.\n\nFor more information, see [Using the API - Insights](/recommender/docs/insights/using-api).\n\n\u003cbr /\u003e\n\nApply recommendations\n---------------------\n\nFor more information about how to improve your disaster recovery plan, see\n[Plan disaster recovery](/firestore/mongodb-compatibility/docs/disaster-recovery).\n\nPricing\n-------\n\nReliability recommendations and insights are\navailable free of charge. For information about other pricing tiers, see\n[Recommender pricing](/recommender/pricing)."]]