title: How solve High latency in app engine caused by "This request caused a new process to be started for your application..."?
body: <p>App working with standard environment app engine, python 3.7 and cloud sql (Mysql)</p>
  
  <p>Checking the logs there are some with very high latencies (more than 4 seconds), when the expected are 800ms. All these logs are accompanied by this message:</p>
  
  <blockquote>
    <p>"This request caused a new process to be started for your application,
    and thus caused your application code to be loaded for the first time.
    This request may thus take longer and use more CPU than a typical
    request for your application."</p>
  </blockquote>
  
  <p>I understand that when it refers to a new process it refers to the deployment of a new instance (since I use automatic scaling) however the strange thing is that when comparing these logs with the deployment of instances in some cases it matches but in others it does not. </p>
  
  <p>My question is, <strong>how can these latencies be reduced?</strong></p>
  
  <p>The app engine config is: </p>
  
  <pre><code>runtime: python37
  env: standard
  instance_class: F1
  handlers:
    - url: /static/(.*)
      static_files: static/\1
      require_matching_file: false
      upload: static/.*
    - url: /.*
      script: auto
      secure: always
    - url: .*
      script: auto
  automatic_scaling:
    min_idle_instances: automatic
    max_idle_instances: automatic
    min_pending_latency: automatic
    max_pending_latency: automatic
  network: {}
  </code></pre>