- Install deps with Yarn
- Install local temporal:
brew install temporal
- Start local temporal:
yarn start:temporal-server
- Start API:
yarn dev
- Start Workers:
yarn dev:workers
- Visit
http://localhost:3002
. This will kick off 4000 workflows that slam the api. You can see the RSS memory increase and then OOM. - See workflows at
http://localhost:8233/namespaces/prod/workflows?per-page=500
Once you have visited the url, it will load up 4000 workflows that will get data and smash the rate limit. Once it ooms, you don't have to visit the url again, just restart the workers and they will try again.
You can edith packages/api/src/routes/index.ts
to change the max number of
workflows if you want. If you want a slow leak, try 100.