Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Pemberi rekomendasi keandalan
Pemberi rekomendasi Keandalan mendukung rekomendasi Aktifkan pencadangan terjadwal yang merupakan bagian dari Rencana Pemulihan dari Bencana untuk melindungi data Anda dari bencana data seperti penghapusan atau modifikasi data yang tidak disengaja.
Dokumen ini menjelaskan cara mengaktifkan dan melihat rekomendasi serta insight untuk meningkatkan keandalan database Anda.
Sebelum memulai
Sebelum Anda dapat melihat rekomendasi dan insight keandalan Firestore dengan kompatibilitas MongoDB, lakukan tindakan berikut:
Aktifkan Recommender API seperti yang dijelaskan di
Mengaktifkan API.
Pastikan Anda memiliki izin yang memadai.
Anda harus memiliki salah satu peran berikut, yang memberikan izin yang diperlukan:
Memilih tidak ikut serta dalam rekomendasi/insight di Pusat Transparansi dan Kontrol.
Untuk mengetahui informasi selengkapnya, lihat
Memilih tidak ikut.
roles/dataprocessing.admin
Peran Recommender ini memberikan izin API berikut:
Anda dapat mencantumkan rekomendasi Keandalan dengan berbagai cara.
Anda dapat melihat rekomendasi keandalan hanya jika memiliki database yang tidak kosong dan sedang digunakan yang tidak mengaktifkan cadangan terjadwal atau PITR.
Google Cloud console
Anda dapat melihat rekomendasi dengan melakukan hal berikut:
Buka konsol Google Cloud , atau gunakan tombol berikut:
[[["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,["# 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)."]]