I'm trying to follow this firebase tutorial for setting up a system to disable billing if a quota is exceeded.
https://www.youtube.com/watch?v=Dk3VvRSrQIY
The documents linked in the video description advise that the kill switch can be delayed for a few days before it takes effect:
Note: There is a delay of up to a few days between incurring costs and receiving budget notifications. Due to usage latency from the time that a resource is used to the time that the activity is billed, you might incur additional costs for usage that hasn't arrived at the time that all services are stopped. Following the steps in this capping, example is not a guarantee that you will not spend more than your budget. Recommendation: If you have a hard funds limit, set your maximum budget below your available funds to account for billing delays.
Is it possible that the switch will not activate, when billable activities continue, beyond the quota cap?
Is it possible to utilize a setting that prioritizes the switch above all other activities, so that I can be confident that I won't exceed the cap? I can't find anything in the billing documentation about how this function can be prioritized.
I have seen instances of my own code run off the charts very fast. Others have reported worse financial consequences of mistakes that have happened in less than a few days and misunderstanding how GCP and firebase caps apply.
I want to make sure my kill switch is fired immediately, to shut down billing if the quota is exceeded before I start learning how to use functions.
The firebase documentation includes a warning that if you use a kill switch to stop using firebase when a budget cap is exceeded, as follows:
Warning: This example removes Cloud Billing from your project, shutting down all resources. Resources might not shut down gracefully, and might be irretrievably deleted. There is no graceful recovery if you disable Cloud Billing. You can re-enable Cloud Billing, but there is no guarantee of service recovery and manual configuration is required.
I'm also trying to understand what this warning means. Does anyone have any insight into how the kill switch (youtube.com/watch?v=Dk3VvRSrQIY) works?
I'm trying to investigate what gets irretrievably deleted. Does the datastore get deleted when the kill switch is activated? Is there any opportunity to save data previously stored in a cloud firestore, before the deletion takes place? Is there a way to download the database so that I can keep a backup in this scenario?