Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you use fractional vCPUs with GAE Flexible Environment?

I'm transitioning an application from GCE to GAE Flexible. It's currently running in a g1-small instance which is plenty for my needs, however when I try to specify a g1-small instance in my app.yaml:

resources:
  cpu: 0.5
  memory_gb: 1.7

I can deploy but there's no indication that a smaller instance is actually being used.

After deploying, there's no indication that my app is running with the smaller instance size.

How can I use fractional vCPUs with the flexible environment? Thanks!

like image 668
Mark B Avatar asked Jun 08 '17 20:06

Mark B


People also ask

What is the difference between App Engine standard and flexible?

The standard environment can scale from zero instances up to thousands very quickly. In contrast, the flexible environment must have at least one instance running for each active version and can take longer to scale up in response to traffic. Standard environment uses a custom-designed autoscaling algorithm.

What is Google App Engine flexible environment?

App Engine allows developers to focus on what they do best: writing code. Based on Compute Engine, the App Engine flexible environment automatically scales your app up and down while also balancing the load.

What is the difference between App Engine and Compute Engine?

Compute Engine delivers configurable virtual machines running in Google's data centers with access to high-performance networking infrastructure and block storage solutions. App Engine is a fully managed, serverless platform for developing and hosting web applications at scale.

Does App Engine flex support C++?

It doesn't support C++ modules, however. App Engine Flex allows any language using custom containers, but that would be a steeper learning curve than using App Engine Standard.

Which of the following version of App Engine supports the use of containers?

Solution. App Engine Flexible supports running a Docker container that can include custom runtimes or other source code written in a different programming language. Since App Engine Flexible supports running Docker containers, you will use the Flexible version of App Engine to deploy a simple Hello World.

Is Google App Engine applications run in secure sandbox environment?

Google App Engine (often referred to as GAE or simply App Engine) is a cloud computing platform as a service for developing and hosting web applications in Google-managed data centers. Applications are sandboxed and run across multiple servers.


1 Answers

There is no way to use shared (fractional) CPUs on App Engine Flexible at the moment; The number of CPUs you specify must be an even number between 2 and 96. (If it's not the default value of 1)

There is an open feature request for shared CPU instances on the Public Issue Tracker which you can star or add to in order to show your interest in that feature.

Note that there is also no existing feature that lets you directly specify App Engine Standard instance classes or Compute Engine machine types to use in App Engine Flexible.

like image 146
Yannick MG Avatar answered Oct 05 '22 03:10

Yannick MG