The previous answer is a workaround available for GAE and it is not without issues. This route is usually taken by developers who wants to mimic the load balancing capability of Compute Engine into App Engine apps. The real solution is for your application to use
Google Compute Engine and tap capabilities like global scaling, load-balanced computing, and the flexibility to configure your environment based on your needs.
When using automatic scaling, the F1, F2, F4 and F4_1G instance classes are available. You can change/upgrade your
instance class by modifying the 'instance_class' element on your configuration file (app.yaml).