Skip to content

prb-wm – too many concurrent requests with many workers #1285

@ngrewe

Description

@ngrewe

When the new prb-wm service handles more than ~250 workers with default settings, we start seeing the following kind of error:

stopped due to error: Rpc error: RPC error: Configured max number of request slots exceeded

This error comes from jsonrpcee and occurs because some client is build with a low (default is 256) limit of concurrent requests and the prb is utilising many of them. I suspect that it's this client here, but I'm not familiar with architecture to be sure:

https://github.com/Phala-Network/phala-blockchain/blob/8fe05eb72b76f4939d0c03e62a3fc7e58b260a5c/standalone/prb/src/datasource.rs#LL555C1-L555C85

We seem to have worked around this (somewhat) by increasing CACHE_SIZE, but it would be nice to have the number of concurrent connections configurable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions