Breakdown Google Billing by could function / app engine? - google-app-engine

Is it possible to break down cloud billing by cloud function and app engine?
We have had a spike in cost for App Engine and also Cloud Functions.
The current breakdown just states Frontend Instances Sydney and could functions its CPU Time (tier 1).
What we need is to know which app engine instance, and which cloud function instance has caused the increase.
thanks!

Related

Google Cloud Scheduler: Cost of required App Engine instance?

I would like to use google cloud scheduler to invoke a Google Cloud Run function on a routine schedule.
On google cloud scheduler documentation it states:
Cloud Scheduler is currently available in all App Engine supported
regions. To use Cloud Scheduler your Cloud project must contain an App
Engine app that is located in one of the supported regions. If your
project does not have an App Engine app, you must create one.
I have never used app engine as a deployment target and don't really want to. This one cloud run function meets my needs.
Beyond the stated costs of cloud scheduler pricing will I also incur google app engine costs for a service I don't otherwise use?
You can definitely create an scheduler job that runs your Cloud function on a timed interval.
However, App Engine needs to be at least enabled since Cloud scheduler requires it (see point 4 of the before you begin section):
Cloud Scheduler uses App Engine cron jobs, so Cloud Scheduler requires App Engine enablement and configuration.
You would only need to set up the region of App Engine, not deploy an App Engine app which incurs costs.

How to deploy app on Google Compute engine similar to app engine?

I want to deploy and app using compute engine as my company does not provide access to app engine yet. Is there a way to deploy the same app using compute engine rather than app engine on google cloud. I have searched multiple forum but unable to find relevant answers.
Any help would be much appreciated.
With python3, I recommend you to write a Flask web application. Your web application will be similar on App Engine and on your compute.
However, you have several things to perform at the infrastructure level. I recommend you to have a look to managed Instances group with auto scaling and health check and Global load balancer.
Note: Because, it's not serverless, you have to pay at least 1 instance even if there isn't traffic on your app
Alternatively, you can have a look to GKE (easier VM management and scaling) and Cloud Run.

GeoDNS routing on Google Cloud Load Balancer with Google App Engine as backend

We are looking to use Google App Engine for one of our low latency service. We are required to provide low latency service across the globe. Since Google App Engine is a regional service and there is no straight forward way to deploy it multi-regional. So, looking at Google Load Balancer to route at DNS level, but that also does not seems to be possible as load balancer not supporting App Engine as a backend service. Is there any other way to achieve GeoDNS routing in GCP for App Engine service.
There is not an direct way to achieve GeoDNS routing since App Engine is a regional service, as you said.
Read this feature request to have further insight on this. In the second comment they state the two possible workarounds, useful for both standard and flexible environments:
The workaround is how you mentioned, using a single project with a load balancer to route requests to Compute Engine instances in
different regions. Then have each Compute Engine instance act as
proxies to an App Engine project in each of the different regions
(where you would copy your code to each App Engine project).
It may be easier in the meantime to use Google Kubernetes Engine instead of App Engine for multi-regional application serving.
You could star the FR to support it.

Pure Appengine project is heavily using compute engine API?

I discovered that my pure App-Engine project (no Compute Engine Instances at all) is heavily using Google Compute Engine API (26,165 requests) but that is not visible as API use on the dashboard. Additionally, in Quotas I find strange items:
Google Compute Engine Networks Global 1 / 15
Google Compute Engine Firewall rules Global 2 / 200
Google Compute Engine Routes 2 / 250
I could disable the Compute Engine API, but I fear consequences if I don't understand what I am doing here.
Does anyone know further details or experience something similar?
PS: I also noticed that old deployed versions of my appengine-code from 2013 showed up, which I have deleted again.
My app is a standard env python one.
I do see the quotas you mentioned in the IAM & Admin Quotas page, but with different limits:
Google Compute Engine Networks Global 1 / 5
Google Compute Engine Firewall rules Global 4 / 100
Google Compute Engine Routes 2 / 200
I suspect that these are automatically driven by the standard env GAE infra (as opposed to being configured by the app itself for the flex env). Their visibility might not be intentional, tho.
I do see a few GCE API calls as well (but then my app is not very active) on the API Manager page:
Google Compute Engine API 17
I accidentally clicked on this API's Disable button and got this warning (potentially hinting at what this API is used for):
Disable Google Compute Engine API
Code that uses this project's keys, client IDs, or service accounts
will not be able to call this API.
Do you want to disable this API: Google Compute Engine API?
By clicking on the actual Google Compute Engine API text/link and then to the Quota tab I can see:
Queries per day Unlimited
Queries per 100 seconds 2,000
Queries per 100 seconds per user 2,000
My peak over the last 30 days is 15, so I won't worry about it :)
I do not see any unexpected older app version.

I want to choose my own Server and own database in google app engine

I am very newly in google app engine.. There are three Questoins on google app engine and in google app engine i want to choose JAVA language.
Does google app engine provide private cloude ?
I want to deploy my application with my own server( E.x.glassfish or JBoss) on google app engine ?
I want to use my own database instead of cloud SQL in google app engine?
Is it possible or not?
With Google Cloud Appengine - no, it's impossible.
With Google Cloud Instances or Google Cloud Containers - all of this is possible.
Appengine is just one piece of Google Cloud, designed for very specific job, with infrastructure managed by Google. You can only write some code (with lot of restrictions too) that runs inside it. You can read some details about code restritions there: https://cloud.google.com/appengine/docs/java/#Java_The_sandbox
What you're looking for is Google Cloud Instances, that are more standard virtual machines, where you can run anything you want. See https://cloud.google.com/compute/
There is still tools for Load Balancing, Health Check, Centralized Logging for Cloud Instances, and other stuff similar to features provided by Appengine.

Resources