8000 [core] Track the number of connection and use shared pool whenever possible for grpc clients. · Issue #11445 · ray-project/ray · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[core] Track the number of connection and use shared pool whenever possible for grpc clients. #11445
Open
@rkooo567

Description

@rkooo567

Describe your feature request

cc @ericl This is to fix those too many open file issues.

We should track the number of connection and try to reduce them. It is very typical that gcs_server has more than 500~600 open files, and when the cluster gets bigger, it can be worse easily. This always caused errors like too many open files. We should

  1. Use shared pool whenever possible to reduce the number of duplicating grpc client
  2. Aggressively remove clients that are not needed.
  3. Track the number of connections to detect the leak (@ffbin will create a PR to report internal state of gcs server soon).
  4. Improve doc to encourage people to use ulimit.
  5. Raise a better message (write an action item instead of failing with too many open files)

More aggressive thing we can do is to use some sort of proxy to limit the number of ports for inter-node communication (ex, kubeproxy), but it is a little unrealistic to do this in a short time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issue, but not time-criticalenhancementRequest for new feature and/or capabilitypending-cleanupThis issue is pending cleanup. It will be removed in 2 weeks after being assigned.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0