old_contents: import multiprocessing
  import os
  
  _port = 8080 # local dev/testing.
  workers = 1
  threads = 1
  
  max_requests = 1000
  max_requests_jitter = 50
  
  if os.getenv('GAE_ENV', '').startswith('standard'):
      _port = os.environ.get('PORT', 8081)
      workers = multiprocessing.cpu_count() * 2 + 1
      threads = multiprocessing.cpu_count() * 2 + 1
  
  bind = "0.0.0.0:{0}".format(_port)
  
  timeout = 60
  log_level = "debug"
  # Do not use "gevent" for worker class, doesn't work on App Engine.
  # worker_class = "gevent"
  raw_env = [
      "RDR_CONFIG_PROVIDER={0}".format(os.environ.get('RDR_CONFIG_PROVIDER', None)),
      "RDR_STORAGE_PROVIDER={0}".format(os.environ.get('RDR_STORAGE_PROVIDER', None)),
  ]
  
new_contents: import multiprocessing
  import os
  
  _port = 8080 # local dev/testing.
  workers = 1
  threads = 1
  
  max_requests = 1000
  max_requests_jitter = 50
  
  if os.getenv('GAE_ENV', '').startswith('standard'):
      _port = os.environ.get('PORT', 8081)
      workers = multiprocessing.cpu_count() * 2
      threads = multiprocessing.cpu_count() * 2
  
  bind = "0.0.0.0:{0}".format(_port)
  
  timeout = 60
  log_level = "debug"
  # Do not use "gevent" for worker class, doesn't work on App Engine.
  # worker_class = "gevent"
  raw_env = [
      "RDR_CONFIG_PROVIDER={0}".format(os.environ.get('RDR_CONFIG_PROVIDER', None)),
      "RDR_STORAGE_PROVIDER={0}".format(os.environ.get('RDR_STORAGE_PROVIDER', None)),
  ]
  
subject: reduce threads and workers for gunicorn. (#1580)