-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writes failing under high load with Error: 8 RESOURCE_EXHAUSTED: Bandwidth exhausted and Error: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error) #167
Comments
I'm seeing the same error on a recently upgraded instance on EventStore Cloud (20.10.2). |
Update: issue is reproducible on a non-EventStore-Cloud instance as well and single node. Version is still 20.10.2 LTS. |
Workaround is to limit the number of open requests at any point in time. |
|
This appears to be fixed by #305 as it now correctly applies backpressure, preventing the bandwidth exhaustion.
Using batch append:
Forcing single append:
|
Reproduction steps:
yarn start wrfl --connection-string="esdb+discover://admin:changeit@uri:2113" --client_count=10 --request_count=30000 --stream_count=5000 --size=10 --worker_count=1
Note this has been tested on a t2.micro instance on AWS.
WORKER 0 TOTALS: 30000 WRITES IN 31262.554757ms (959.6144727513895/s)
CLIENT 0: 3000 WRITES IN 22811.676039ms (131.51159936126777/s)
CLIENT 1: 3000 WRITES IN 21562.335408ms (139.13149680840917/s)
CLIENT 2: 3000 WRITES IN 24160.856734ms (124.16778233605828/s)
CLIENT 3: 3000 WRITES IN 24975.396275ms (120.1182142204068/s)
CLIENT 4: 3000 WRITES IN 25664.61686ms (116.89245221796777/s)
CLIENT 5: 3000 WRITES IN 26430.558514ms (113.50497941278579/s)
CLIENT 6: 3000 WRITES IN 27084.961592ms (110.76257168797687/s)
CLIENT 7: 3000 WRITES IN 28198.875177ms (106.38722222675413/s)
CLIENT 8: 3000 WRITES IN 29487.788001ms (101.73703093288188/s)
CLIENT 9: 3000 WRITES IN 30235.139748ms (99.22229647370638/s)
DONE TOTAL 30000 WRITES IN 31597.491925ms (949.4424453437059/s)
SUCCESS: 7717 FAILURE: 22283
failures:
21685x | Error: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error)
598x | Error: 8 RESOURCE_EXHAUSTED: Bandwidth exhausted
Done in 32.99s.
The text was updated successfully, but these errors were encountered: