На этой странице представлены ответы на часто задаваемые вопросы (FAQ) о Cloud Functions for Firebase .
Поддержка среды выполнения Cloud Functions
Убедитесь, что вы используете тарифный план Blaze с оплатой по факту использования .
Убедитесь, что вы используете последнюю версию Firebase CLI.
Обновите поле
enginesвpackage.jsonваших функций.При желании вы можете протестировать свои изменения с помощью Firebase Local Emulator Suite .
Переразверните все функции.
В консоли Firebase перейдите на панель функций , выберите функцию и проверьте язык функции в разделе «Дополнительные сведения» .
Да. Поскольку расширения используют Cloud Functions , среду выполнения ваших расширений необходимо будет обновлять одновременно с Cloud Functions.
We recommend that you periodically update to the latest version of each extension installed in your project. You can upgrade your projects' extensions via the Firebase console or Firebase CLI .
Цены Cloud Functions
Cloud Functions for Firebase использует некоторые платные сервисы Google. Новые развертывания функций с Firebase CLI 11.2.0 и выше используют Cloud Build и Artifact Registry . Развертывания более ранних версий используют Cloud Build аналогичным образом, но вместо Artifact Registry для хранения данных используют Container Registry и Cloud Storage . Использование этих сервисов будет оплачиваться дополнительно к существующим тарифам.
Место для хранения данных для Firebase CLI 11.2.0 и более новых версий.
Artifact Registry provides the containers in which functions run. Artifact Registry provides the first 500MB at no cost, so your first function deployments may not incur any fees. If you exceed that threshold, each additional GB of storage is billed at
Место для хранения данных Firebase CLI 11.1.x и более ранних версий.
For functions deployed to earlier versions, Container Registry , provides the containers in which functions run. You'll be billed for each container required to deploy a function. You may notice small charges for each container stored—for example, 1GB of storage is billed at $0.026 per month .
Чтобы лучше понять, как может измениться ваш счет, ознакомьтесь со следующей информацией.
- Цены Cloud Functions : существующий бесплатный тариф остается без изменений.
- Ценообразование Cloud Build : Cloud Build предлагает бесплатный тарифный план.
- Цены Artifact Registry .
- Цены Container Registry .
Yes. Even on the pay-as-you-go Blaze pricing plan, Cloud Functions provides a no-cost tier for invocations, compute time, and internet traffic. The first 2,000,000 invocations, 400,000 GB-sec, 200,000 CPU-sec, and 5 GB of Internet egress traffic is provided at no cost each month. You'll be charged only for usage that exceeds those thresholds.
After the first 500MB of no-cost storage, each deployment operation will incur small-scale charges for the storage space used for the function's container. If your development process depends on deploying functions for testing, you can further minimize costs by using the Firebase Local Emulator Suite during development.
Ознакомьтесь с тарифными планами Firebase и примерами ценообразования Cloud Functions .
No. There are no plans to change the quotas except for the removal of a maximum build time limit; instead of receiving errors or warnings when the daily build quota of 120 minutes is reached, you'll be billed under the terms of the pay-as-you-go Blaze pricing plan. See Quotas and limits .
Да, вы можете создать учетную запись Cloud Billing в консоли Google Cloud , чтобы получить кредит в размере 300 долларов, а затем связать эту учетную запись Cloud Billing с проектом Firebase.
Узнайте больше о кредите Google Cloud .
Обратите внимание, что в этом случае вам потребуется настроить тарифный план Blaze в консоли Firebase , чтобы ваш проект продолжал работать после того, как кредит в размере 300 долларов будет исчерпан.
No, sorry. You can use the Firebase Local Emulator Suite for development without having a Cloud Billing account. Alternatively, try applying for a Google Cloud free trial . If you're still having trouble paying your bill because of this change, contact Firebase Support.
You can set up budget alerts in the Google Cloud console to help control costs. Also, you can set limits on the number of billed instances created for each of your functions. To get an idea of costing for typical scenarios, see the Cloud Functions Pricing examples.
Просмотрите панель управления использованием и выставлением счетов в консоли Firebase .
Да. Поскольку расширения используют облачные функции , на них будут распространяться те же тарифы, что и на другие функции.
To use extensions, you will need to upgrade to the pay-as-you-go Blaze pricing plan. You will be charged a small amount (typically around $0.01 per month ) for the Firebase resources required by each extension you install (even if they are not used), in addition to any charges associated with your use of Firebase services.