Load testing

Nancy Chacko · Friday Demos · January 3, 2025 · 4:07

Some detail into recent load testing for high concurrency deployments, plus a bunch of the fixes we put in place to improve response time with high concurrency.

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. I can do some load testing excitement um see if this works so this out of here um the the goal of this initial load testing was to see if we can handle the potential load that bamboo HR is is hopefully going to be sending our way in not too long and so the focus was on and embed dashboard um and we went through a lot of iterations around what made sense a test and where we want to kind of limit things so that we know we're focused mainly on our system as opposed to client database so just to show this is the super exciting dashboard that we're starting with it's really just a bunch of select one panels um and then from there uh I

  2. took a lot of the work that Johnny and ghostoff and Nate and folks had done previously and Ed a tooling uh called k6 we were able to model out the flow like the three requests that are made when you're loading an embedded dashboard so doing a login pulling the dashboard and then doing the query and what's nice with this is that k6 gives us some really clean ways to be able to describe load over and over so we can have a similar load profile that we run we can try a whole bunch of different things so we started out with you know just 10 users running it uh you know a steady Pace we can do things where we're attempting to Target a rate so

  3. we can say send 25 requests every minute or every second or whatever it happens to be and so with all of this we're also using Graf's um Cloud product to be able to run the test and they give us really nice pretty graphs as a result of all of this so we went through a handful of iterations where essentially it's find the first bottleneck knock it down find the next one knock it down so I'll just walk through a little bit of a story over the most recent one that we're working on right now um so the Gray Line in the back here is the the virtual users so we're kind of just ramping up load as we go by 10 users every minute and

  4. seeing what happens to our response um so the purple is essentially our throughput and the blue here is our response time and you'll see as we ramp up the load we were you know the response time was going up and up with that and that is not what we want to happen to be able to be in a scalable situation right and so with each of these what we were starting to do also was see if we can throw Hardware at the situation so I'd run this test over and over by upping our database capacity by upping our remix containers and seeing what could change we kind of hit a point where throwing more Hardware at it wasn't making things any better and was really

  5. nice is that um there's a lot of data in uh in the responses that we're getting back that let us see where problem areas might be occurring so this is the login request this is the dashboard request and this is the query request and you'll see login and dashboard are actually relatively stable across that entire load run whereas query was ramping up and of that the notification latency was the one that was doing the most and so Johnny looked at that and immediately said I know what it is we're single threaded on processing this so made a change there to remove that as our bottleneck we did another run and now you see it looks better but different we have these weird spikes that are

  6. occurring in the middle but here at higher load profiles you do see that that uh response time has dropped down significantly and a lot of that is we removed that one bottleneck now the next one popped up right behind it and so this one behind it is uh contention over attempting to write a transaction to write out our uh query history and so that's what we're working through right now this is a not perfect result from it um but you'll see by removing that uh query history blocker we've now smoothed out this curve significantly so you'll still see it is a slight increase with time as load continues to ramp up but it is nowhere near what we were seeing before so we've gained ourselves

  7. a ton of Headroom in this process so each step it's find the next one knock it down find the next one knock it down um as well as as your doing that figure out can we also just throw money at the problem and scale up with Hardware in the short term so