I'm maintaining a production app on GAE. The number of 'dynamic' instances we have seems very high. According to our app.yaml, these should be 'F4' instances. Some of these instances serve lots of requests - and others very few (see pic below). I have no idea why.
my questions:
- why are some instance very busy and others not?
- can I limit the number of dynamic instances?
EDIT: I'm adding some more details here:
- the pic above shows a few dynamic instances. there are a lot more - as many as 24 in total.
- In the app.yaml we configured 1 min/max idle instances. this (presumably) shows up as the single 'resident' instance I have.
- below is a portion of my app.yaml that is relevant.
- I understand that the idle machine kicks in when other machines can't handle the load. perhaps this is triggered by requests that take too long to complete (and perhaps this is why I have so many dynamic machines?)
runtime: python27
api_version: 1
threadsafe: yes
instance_class: F4
automatic_scaling:
min_idle_instances: 1
max_idle_instances: 1
....
libraries:
- name: webapp2
version: "2.5.1"
- name: ssl
version: latest
inbound_services:
- warmup