Artur O
Artur O

Reputation: 184

Configure yaml for standard env

I have deleted env:flex from my .yaml file and deployed to app engine with some other changes in other files. So now I'm switched to STANDARD env with instance_class F1.

With this instance class I'm not even able to upload a picture/image to my app, in debugger it shows the following error:

Exceeded soft memory limit of 128 MB with 129 MB after servicing 34 requests total. Consider setting a larger instance class in app.yaml.

Please someone from Google or who knows how to configure .yaml file correctly advice me:

  1. how do i change instance class?
  2. do i need to specify any other parameters like:

    resources:   
    cpu: 2   
    memory_gb: 2.3   
    disk_size_gb: 10
    

What is the practice?

And one more thing: I don't think my app has suddenly become so popular. I'm unexpectedly receiving 3000 request per day. Is someone hitting my app every 30 seconds?

Upvotes: 1

Views: 2428

Answers (1)

Dan Cornilescu
Dan Cornilescu

Reputation: 39834

The standard environment doesn't support as granular resource specification as the flexible environment, there is no resources config in its app.yaml Reference. It only supports selecting pre-defined instance classes. From the same doc:

instance_class

Optional. The instance class for this service.

The following values are available depending on your service's scaling:

Automatic scaling

F1, F2, F4, F4_1G

Default: F1 is assigned if you do not specify an instance class along with the automatic_scaling element.

Basic and manual scaling

B1, B2, B4, B4_1G, B8

Default: B2 is assigned if you do not specify an instance class along with the basic_scaling element or the manual_scaling element.

For the traffic, it's really hard to say without seeing the request patterns, there can be many, many reasons.

Upvotes: 1

Related Questions