Apache Jmeter is Java application designed to load test functional behavior and measure performance. In a previous discussion, @YohanAvishke suggested to use it for testing performance of the ScholarX backend.
We can change the states manually. Only mentee_application and mentor_application are the states we should run the tests for.
Also since the 2 thread groups will run synchronously after running the first thread group for mentors, we can change the state to mentor_application and run the second thread group.
Can you have a-look into the link. Even though in the blog they use different SSO provider the mechanism should be the same.
I set up the configuration according to this but after setting the proxy server, Google chrome can’t access internet. I’ll find another method to do so.
It worked with Firefox. So i was able to get the login records to mock the authentication process.
After running those records manually, still it throws the 403 errors when accessing the endpoints.
In most of the tutorials, it says to update the SAMLRequest, RelayState and SAMLResponse with a regex. But in our scenario, those details doesn’t show up in the login requests
Since the authentication part was not working in Jmeter, I ran a test with only using the public endpoints.
I added the 3 public endpoints to the test.
Get all programs
Get program by id
Get mentors of a program
I used 100 thread, so each endpoint runs 100 times at once. But only 86 threads completed well this time. Maybe heroku is blocking the remaining requests.
So 259 out of 300 requests succeeded. The rest was not running.
After stopping it, I ran the 100 threads again but the cleardb database reached the query limit after few requests (nearly 80). So I have to wait until the query limit resets for another attempt.
As I see the server is enough for the pilot. The problem we have is with the database.
Since clearDB has a query limit per hour, we’ll have to use either PostgreSQL or a database in another server.
Btw, I ran the tests again had the same result. So there shouldn’t be anything wrong with the server.