I have an app deployed on a wildfly server on the Jelastic PaaS. This app functions normally with a few users. I’m trying to do some load tests, by using JMeter, in this case calling a REST api 300 times in 1 second.
This leads to around 60% error rate on the requests, all of them being 503 (service temporarily unavailable). I don’t know what things I have to tweak in the environment to get rid of those errors. I’m pretty sure it’s not my app’s fault, since it is not heavy and i get the same results even trying to test the load on the Index page.
The topology of the environment is simply 1 wildfly node (with 20 cloudlets) and a Postgres database with 20 cloudlets. I had fancier topologies, but trying to narrow the problem down I cut the load balancer (NGINX) and the multiple wildfly nodes.
2
Answers
we don’t know either and as your question doesn’t provide sufficient level of details we can come up only with generic suggestions like:
Requests via the shared load balancer (i.e. when your internet facing node does not have a public IP) face strict QoS limits to protect platform stability. The whole point of the shared load balancer is it’s shared by many users, so you can’t take 100% of its resources for yourself.
With a public IP, your traffic goes straight from the internet to your node and therefore those QoS limits are not needed or applicable.
As stated in the documentation, you need a public IP for production workloads (a load test should be considered ‘production’ in this context).