GAE Channel API - Channels Created Cost - google-app-engine

I have a paid app and can see the quota is 90,040 per day for channels created.
I have looked at all the pricing pages from cloud services and developer pricing pages and can not see any prices regarding the cost per channel created after the 100 free limit.
https://cloud.google.com/appengine/docs/quotas#Channel this page only says the daily limit is "Based on your budget" but I do not see any costs anywhere on the web.
Am I to assume that I get 90,040 free per day for having a paid app

As I understand the pricing changed recently and that's why the documentation is a little confusing. It used to be that you paid a tiny amount for each channel (something like 0.0001 - don't remember how many zeroes).
Now this tiny charge is canceled. You are just paying for CPU & bandwidth that your channels are using. That's why it says according to budget.
It's the same story with Email, and various other APIs as mentioned here: https://cloud.google.com/appengine/pricing. I'm fairly sure Channel API should be included in the last row in the resource billing table.

It costs 10,000 micropennies to create a channel (or 100 channels per 1 cent, see appstats for more).
See a more detailed answer to the same question here: https://groups.google.com/forum/#!topic/google-appengine/uQFWM6F--hY

Related

I can't seem to create any instances because of CPU quotas

I just started my free trial of GCP and I see I have CPUs (all regions) globally set to 32.
When I start an instance (ex. 8 CPUs with 16GB of RAM) it says
Quota 'N2_CPUS' exceeded. Limit: 0.0 in region europe-west4.
Now, if I go to Quotas page and look up the N2 CPUs set for each region, this is set to 0 to ALL regions and I can't upgrade it because they won't accept the request.
This happens with all the CPUs available (N2D, N2, C2) so basically I can't start any instance.
Can anyone try to help me?
Thank you!
While using 12-month, $300 free trial you have some limitations like:
You can't have more than 8 cores (or virtual CPUs) running at the same time.
You can't request a quota increase. For an overview of Compute Engine quotas, see Resource quotas.
You must upgrade your account to perform any of the actions in
the preceding list.
To request an increase in quotas you should follow steps below:
Enable billing for your account.
Go to Quotas page.
Select the quotas you want to change.
Click the Edit Quotas button and follow instructions to submit your request.
A support representative from the Compute Engine team will respond to your request within 24 to 48 hours. After that you'll get a confirmation that your request was approved, but in some cases your request could be declined for some reasons:
Please be informed that we are unable to proceed with your request,
for this resource was quite high and needs capacity planning with our
sales team. We recommend for you to contact sales team for capacity
planning.
Accordingly to this reply, N2 vCPUs are on high demand at the moment and you should contact with Google Sales Team to get your quota increased. There's no other way. Unfortunately, Stack Overflow community can do nothing in such cases.

Google App Engine Billing inconsistent with Usage History

I am sorry if this is not the right place to ask this question, but Google has moved customer support for Bronze Tier to Community Forum aka Stackoverflow... So here I am, stuck with a bill that I can't figure out. Just to give you the context, I am running an Android app sending videos averaging 2 megabytes per video to users. There are around 70 daily users downloading 2 videos a day.
Image here: http://postimg.org/image/cytlw3rzx/ (Sorry I don't have 10 reputation yet)
As you can see, there are supposedly 516 Gibibyte of Cloud Storage Download APAC. However, I only have around 150 megabytes of data stored on the cloud. So it is mathematically impossible to have such traffic over this period of time. On top of this, here is the Usage History which suggests totally different usage.
Image here: http://postimg.org/image/5h1tzl49f/
Please help if you have any idea what is going on as I am stuck with no customer support and no helpful information on the internet...
The usage history you posted (your second picture) is only for the App Engine application, but does not include Cloud Storage usage. It also does not include any usage you may make of Compute Engine, Big Query etc.
That is why the usage history shows less than 1$ per day whereas your final bill shows additional charges for Cloud Storage.
You can ask billing-related questions to the Cloud Platform billing team here : https://support.google.com/code/contact/cloud_platform_billing
You can also find more info on your current usage here :
https://console.developers.google.com/project/YOUR_PROJECT_ID/billing/unbilledinvoice
If you have doubted about how your cloud storage buckets are used, set up access logging as explained here.

Google App Engine Channel API quota

I know that there are similar questions, but they aren't up to date anymore. I'd like to know how much it costs to create 1 / 10 / 100 / 1000 channels per day? I only find the pricing list, which doesn't mention channels, and the quota list, which only says "depends on your budget".
I run out of quota really fast. If users access your website only for a short time, then creating 100 channels isn't enough (all other quotas are still 0%). I also read, that reusing channels isn't possible.
Channels are available for two hours. After that they are released. Does the quota mean: "You are only allowed to create 100 channel per day" or does it mean: "You are only allowed to have 100 channels at the same time"?
There is also an API do define when a channel should be released. Does this API even make sense? Let's say I choose to release the channel after one minutes. So while using browsing my website for 5 minutes, the user would create 5 different channels. Does it make sense to decrease the release time?
Thanks!
It costs 10,000 micropennies to create a channel (or 100 channels per 1 cent, see appstats for more)
You shouldn't create more than 1 channel per user.
The free quota says you are only allowed to create 100 channels per day. Enable billing to get more.
I wasn't aware about a possibility of releasing channels and not really sure what is the purpose of doing that and since they are so expensive to create anyway - it's probably better to reuse for the same user in case they return.

any number on Google App Engine free quota in terms of total number of request and unique visitors

Does anyone have any number on Google App Engine (free quota) in terms of total number of request and unique visitors it allows per day?
Maybe someone who has live production code can tell us this?
Rough number is enough, just to get the idea.
I can not get this information from the pricing model.
Thanks
I had this question when I first started using App Engine, but it's impossible to answer with the information in your question.
You must have an estimate on the individual API quota usages, then calculate based on that.
You might be able to simplify it by trying to figure out which API quota you're likely to hit first, and then figuring out the number of requests you can serve before that quota runs out. ie:
Storing photos or other large data for users? You'll probably hit the blobstore quota first. Daily/unique visitor counts probably won't matter.
Serving lots of photos or large data? You'll probably hit the bandwidth quota first.
Need to start a channel for every view? You'll probably hit the channel quota first and get 100 views per day.
Need to send an email for every view? You'll probably hit the mail quota first.
Need to query the datastore a lot? You'll probably hit the datastore limit first.
The datastore limit is the hardest to calculate. You get 50k read and 50k write ops. Most likely you'd read more than write.
If you need 2 read ops per page, you might could do 25k views per day.
If you need 2 read ops per page, but you're smart and you memcache them, and memcache is effective 80% of the time, you could get 125k views per day.
If you need 500 read ops per page and you can't cache it, you can do 100 views per day. That's provided you don't run out of one of the other quotas.
Do your own math.
The quotas and rates (for free and paid apps) are listed on https://developers.google.com/appengine/docs/quotas.

how is Billing for Channel API done?

I've chosen google-app-engine because of its scalability, and now I try to understand how much I will have to pay once I release the product.
I've looked back and forth in the google app engine documentation to find an answer for question and couldn't find. I found few details in the "Quotas" page, I found how much I can get for free and how much is the Billing Default Quota.
In Billing Page there are number for CPU, etc with Resource and Unit and how much it cost. But no where could I find how much will it cost me per channel calls/created, etc.
I can't even try to make calculations with what's in the Admin console, because the current numbers there now are 0 (since there are 2 users which are the programmers).
How can I be ready for the releasing of the product that (hopefully) will have a huge number of channels created daily?
Is there a page I missed, or is there a tool for calculating?
Thanks!
EDIT:
Moishe, thanks for the quick and readable answer. So here are some more questions:
1. Do you think - if needed - that I will be able to get even more quota for the number of channels? I saw there's a special form to ask for more quotas, but I'm not sure that includes the Channel-API feature...
2. Are there any posts you've made for "how to use channel-API efficiently"? I saw some stuff about reusing the tokens per user. Is there more?
Thanks again.
Creating a channel costs about 2.7 CPU-seconds. A CPU-hour costs $0.10. So, each channel created costs
(2.7 / 3 600) * $0.10 = $7.5 × 10^-5
So creating 1000 channels will cost $0.075, or 7.5 cents.
You'll also get charged the normal outgoing bandwidth costs for any data sent over a channel.
The CPU cost probably isn't the biggest concern; you're more likely to run into quota caps then running out of money. Paid apps are limited to 86400 channel creations/day (1/second).

Resources