# Load test with Discourse

**URL:** <https://meta.discourse.org/t/load-test-with-discourse/77291>\
**Category:** Development\
**Created:** [January 5, 2018, 7:31am UTC](https://meta.discourse.org/t/load-test-with-discourse/77291 "2018-01-05T07:31:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![SimonWu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonwu/32/85036_2.png) [@SimonWu](https://meta.discourse.org/u/SimonWu)\
**Post date:** [January 5, 2018, 7:31am UTC](https://meta.discourse.org/t/load-test-with-discourse/77291/1 "2018-01-05T07:31:57Z")

</div>

Hi,

I am doing a load test for Discourse.  
Here is my scenario:

1. Take [Discourse Meta](https://meta.discourse.org/latest) for example. I append a api\_key (generated from admin portal) as a query string. So the url I test is: [Discourse Meta](https://meta.discourse.org/latest?api_key=XXXXX);
2. I remove the api rate limit by disable rate.limit.template in app.yml and set DISCOURSE\_MAX\_ADMIN\_API\_REQS\_PER\_KEY\_PER\_MINUTE=10000;
3. Run the url with multiple agents.

Here is the result:

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/9/f9fda1fbfc18ec5e37fe5c32eaf83f0570dad2d0.png)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/a/4/a41cb60098f1c1fcc0efee69e2783db623a64885.png)

And the CPU of postgreSQL reach 100%.

This is the result without api\_key as query string:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/0/b05980ff92efd07db0843b2b13977264e1617e30.png)

As far as I know, the anonymous request will get cached result from Redis, while the authenticated request will not. But the load test with authenticated request is lower than my expectation.

Is there any wrong in my steps of load test? Or setting I missed?

---

_[View the full topic](https://meta.discourse.org/t/load-test-with-discourse/77291)._
