I am having a node application which is providing a portal for users to give online exams. Now I want to perform load testing on this server. For that I am using apache Jmeter. On the backend side I have created two node server instances(8gb ram, 4 core each ) and managing them with load balancer with Nginx. So when I am performing load testing with 500 users, I am getting gateway timeout (504) error. Also for some request I am not getting response in Jmeter. At the same time when I am checking my both node server, I see pretty normal usage of cpu and ram. so How can I solve this? What might be the cause for the issue ? Should I have to change anything in nginx configuration ?
Is there any issue with my load-testing environment ? Do I required to use anyother way or tool for Load testing ?