To do load testing, I would prefer a simple load test module (https://www.npmjs.com/package/loadtest) rather than setting up the entirety of Jmeter. Install the module by simply installing npm install loadtest -g.
Next, just to run the stress test, we can hit the following command:
loadtest -c 100 --rps 250 <my-aws-load-balancer-url>
Here, -c means concurrent requests and --rps means requests per second for each client. This will trigger an alarm to increase the CPU count by 2. Go to the AWS console after the alert time/wait period has elapsed to check your newly created instances. You will be able to see instances when the load has increased and after the load has decreased, it will automatically start to drain and terminate. ...