Global rate API Limit is not working on live server

AI-generated summary

Global rate API Limit issue on live server

Hitesh_Sharma is experiencing issues with the global rate API limit on their live Discourse server hosted on Digital Ocean. Despite successfully increasing user limits on their local setup, they encountered 429 errors when trying to upload bulk users via API on the live server.

They have tried modifying their app.yml file and referenced available settings for global rate limits and throttling, but the issue persists.

pfaffman suggested removing "templates/web.ratelimited .template.yml" from the yml file, but this did not resolve the issue. supermathie questioned the nature of the limits Hitesh_Sharma was trying to increase, as there are no inherent user limits in Discourse.

Hitesh_Sharma and Hitesh_Sharma provided additional context, explaining that the 429 errors occur when Discourse’s rate limits are exceeded, and that they have modified the app.yml file to try and override these limits.

I had a problem with increasing the maximum number of users allowed in a discussion platform called Discourse. First, I set up Discourse on my own computer and successfully increased the limits for the number of users. I added 1000 to 7000 users using a script.

But when I tried to do the same thing on the live server hosted on Digital Ocean, I followed the steps to increase the limits in the configuration file and rebuild the app. Then, I started my script, but I encountered many errors with the code “429”. The global and admin limits didn’t work as expected.

I looked for help in these articles:

Article about available settings for global rate limits and throttling: Link
Please let me know your response as soon as you can.

Thank you

Do you have

  - "templates/web.ratelimited.template.yml"

in your yml? Try removing that.

There are no such limits.

Can you explain exactly what you changed and what you are trying to do that results in 429s?

already do it but nothing works I am using only this files in templates section

templates:

  • “templates/postgres.template.yml”
  • “templates/redis.template.yml”
  • “templates/web.template.yml”

429 error means when you upload a bulk user from script to discourse using API then you get these error on the terminal because discourse have set a limit per minutes and seconds.

And limit override by discourse settings and some changes in app.yml files