Assume we have sample points: (1, 2), (2, 4), (3 ,5), (4, 4), (5, 5).
Then we have table
we will calculate: y = b0 + b1x
So, we have
A web service is deployed in GAE(google app engine). This is the loading test on GAE with different core, concurrency combinations.
1 core, 1 thread, 0.3s per reqeust
1 core, 160 threads, 12s per request
1 core, 150 threads, 8s per request
8 core, 50 threads, 5s per request
16 core, 50 threads, 3s per request
Google App Engine doesn’t support multi-thread of the application, such as multiprocessing in python.
Each GAE supports maximum of 16 cores. If we want to auto-scale, we should read google API and design properly.