engeeaitch
engeeaitch

Reputation: 101

Google App Engine Backend Instance Hours are double expected

I have written a Java application that I am running on GAE as a webapp. Here is an extract from my appengine-web.xml:

<version>2</version>
<threadsafe>true</threadsafe>
<manual-scaling>
    <instances>1</instances>
</manual-scaling>

My app is written to listen for changes to a Firebase database, so I am expecting it to run continuously. My problem is that I am being billed for 48 hours of 'Backend Instance Hours' per day instead of the expected 24 hours per day.

I have checked that I only have one instance running. I have not stopped or started it (I know that that adds another 15 minutes). Looking at my usage history, it clearly says that I have used 48 hours of Backend Instance Hours in a day. I have no idea where to look now. Can anyone help please?

Upvotes: 2

Views: 743

Answers (2)

hkanjih
hkanjih

Reputation: 1301

Maybe do you have more than one version running.

You could check on https://console.cloud.google.com/appengine/versions

By the way you could use Firebase Cloud functions instead of the Google App Engine Manual Scalling to listen for changes on Firebase Database.

Upvotes: 2

Shivam
Shivam

Reputation: 176

From the doc: https://cloud.google.com/appengine/pricing#standard_instance_pricing

“When you are billed for instance hours, you will not see any instance classes in your billing line items. Instead, you will see the appropriate multiple of instance hours. For example, if you use an F4 instance for one hour, you do not see "F4" listed, but you see billing for four instance hours at the F1 rate.”

I would recommend to focus on calculating the cost based on the instance class you are using and see if the bill is high or accurate. Accordingly, you may contact billing support to clear any discrepancies.

Upvotes: 5

Related Questions