Skip to content

Use FixedThreadPool as default executor #453

Open
@LeoBarykin

Description

@LeoBarykin

The problem

When creating default GrpcServer or ManagedChannel the library uses CachedThreadPool as executor. Under load it may lead to running out of available threads and starvation.

The solution

Use a FixedThreadPool as an executor and make a configuration property for number of threads in it.

Alternatives considered

Now it is only possible via manual configuring ChannelConfigurer/ServerConfigurer

Additional context

Here https://stackoverflow.com/questions/42408634/what-is-the-exact-use-of-the-executor-in-grpc-java-s-serverbuilder-does-it-just grpc developer mentions that FixedThreadPool is more appropriate approach then default one/

BTW it is my 1st feature request ever, don't be mad if I did it wrong somehow...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementA feature request or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions