Google Groups discussion forum is meant for open-ended discussions. This requires technical support, so posting on stack overflow is recommended. However, I can notice that you already posted there <https://stackoverflow.com/questions/45719144/502-server-error-in-google-app-engine-flexible-when-load-testing-with-jmeter> .
On Monday, August 21, 2017 at 12:08:50 PM UTC-4, Karikalan Kumaresan wrote: > > down vote > favorite > <https://stackoverflow.com/questions/45719144/502-server-error-in-google-app-engine-flexible-when-load-testing-with-jmeter#> > > I have deployed a simple Spring boot app in Google App Engine Flexible. > The app. has two APIs, one to add the user data into the DB ( > xxx.appspot.com/add) the other to get all the user data from the DB ( > xxx.appspot.com/all), it connects to the Cloud SQL MySQL instance. > > I wanted to see how GAE scales for the load, hence used JMeter to create a > load with 100 user concurrency ramped up in 100 seconds which calls these > two APIs in half a second delay, forever. While it runs fine for sometime > (with just one instance), it starts to fail after 30 seconds or so with a > "java.net.SocketException" or "The server responded with a status of 502". > > After this error, when I try to access the same API from the browser, it > displays, > > Error: Server Error > > The server encountered a temporary error and could not complete your > request. Please try again in 30 seconds. > > The service is back to normal after 30 mins or so, and whenever the load > test happens it repeats the same behavior as mentioned above. I expect GAE > to auto-scale based on the load coming in to handle it without any down > time (using multiple instances), instead it just crashes or blocks the > service (without any information in the log). My app.yaml configuration is, > > runtime: java > env: flex > service: hello-service > automatic_scaling: > min_num_instances: 1 > max_num_instances: 10 > > I am a bit stuck with this one, Any help would be greatly appreciated. > Thanks in advance. > I tried with manual_scaling with one instance, and it works fine. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/08ec698d-3258-4da0-8f52-69a085523055%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
