Skip to content

[Functions] Need a way to disable message batching between functions #9986

Closed as not planned

Description

@devinbost

Is your feature request related to a problem? Please describe.
It has been identified that there is a major stability issue that appears to be associated with message batching. As Pulsar functions currently always have .enableBatching(true) set during instance creation, there needs to be a way to disable message batching per user config.

Describe the solution you'd like
I'm proposing the ability to set a default function batching setting in WorkerConfig that will affect the entire cluster. Then, if individual functions need to be set more specifically during deployment, a setting in their FunctionDetails will allow that customization as well.

Describe alternatives you've considered
Although an ideal PR would fix the underlying stability issues with message batching, we need a working solution ASAP for high-traffic Pulsar function-heavy workloads, so allowing users to disable message batching will give them that flexibility in case they are having issues with it in their function workloads. This PR should get those users to a working state quickly and buy more time to create a fix for the underlying issues with message batching.

Additional context
In the event that message batching actually isn't the cause of the freezing topic issue (#6054), well, this will still be a nice feature and will help us rule that out.

Activity

  1. added
    type/feature
    on Mar 20, 2021
  2. added a commit that references this issue on Mar 20, 2021
  3. added this to the 2.8.0 milestone on Mar 22, 2021
  4. added 11 commits that reference this issue on Mar 24, 2021
  5. 16 remaining items

  6. added 5 commits that reference this issue on Apr 3, 2021
  7. modified the milestones: 2.8.0, 2.9.0 on Jun 1, 2021
  8. modified the milestones: 2.9.0, 2.10.0 on Oct 6, 2021
  9. modified the milestones: 2.10.0, 2.11.0 on Feb 14, 2022
  10. modified the milestones: 2.11.0, 2.12.0 on Jul 26, 2022
  11. tisonkun commented on Dec 10, 2022

    @tisonkun
    Member

    Closed as stale. Please create a new issue if it's still relevant to the maintained versions.

    It seems the discussion on mailing list had no consensus.

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

Metadata

Metadata

Assignees

Labels

type/feature

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions