ji-devs / ji-devs/ji-cloud

Stress-test backend

Open
#2,139 9 comments 0 reactions 1 assignee View on GitHub

@johnnynotsolucky is already working on this.

Since Feb 7, 2022.

Dominant language
Rust
Stars
14
Forks
18
PR merge metrics
No merged PRs in 30d

Description

When I ran a batch process to execute a lot of backend requests concurrently, I got a 500 error. The workaround was I had to get rid of or slow down the concurrency.

I'd strongly suggest writing a simple tool that stress-tests the backend and that it should be run before going live

Here's some reference code, fwiw: https://github.com/ji-devs/ji-cloud/tree/sandbox/build-utils/legacy-player/transcode/src/create_jig

(this was written as just a one-off tool, i.e. doesn't handle errors elegantly and I sometimes adapted it with comments instead of real config options, just a reference for passing a reqwest client down to a bunch of async fns and having a max pool active at a time.)

Note that @mehcode said:

this [500] error means that the "max connections" param in the app doesn't match the max connections of your DB

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.