Skip to content

Pulsar Proxy HashedWheelTimer and Frame Exception #9783

Closed

Description

@xuesongxs

Describe the bug
image

image

Activity

  1. added
    type/bug
    on Mar 3, 2021
  2. codelipenghui commented on Mar 3, 2021

    @codelipenghui
    Contributor

    Thanks @xuesongxs . Seems the problem is the proxy creates a Pulsar client for each connection since the proxy need to do the authentication by the client. Since each Pulsar client will create a HashedWheelTimer, so the error occurs and more HashedWheelTimer will waste a lot of cpu cycles(the tick time is 1ms in the Pulsar client).

    I think we should make the HashedWheelTimer static in the Pulsar client.

  3. added a commit that references this issue on Mar 29, 2021
    af6eaba
  4. added 2 commits that reference this issue on Mar 30, 2021
    a187eb7
    b363022
  5. lhotari commented on Jan 19, 2022

    @lhotari
    Member

    It turns out the PulsarClientImpl isn't needed at all in Pulsar Proxy. There's a PR #13836 to optimize the resource usage of Pulsar Proxy. This reduces 2 threads per proxied connection which will help improve Pulsar Proxy scalability. Please review #13836

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedtype/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions