Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always set parallelism to 1 #428

Conversation

jiangpengcheng
Copy link
Member

Fixes #368

Motivation

Update the replicas shouldn't recreate pod

Modifications

Set parallelism to const 1
Another way is to add a field to set the parallelism, but I think we don't need that

Verifying this change

  • Make sure that the change passes the CI checks.

  • This change is a trivial rework / code cleanup without any test coverage.

Documentation

Check the box below.

Need to update docs?

  • no-need-doc

    bug fix

@jiangpengcheng jiangpengcheng requested review from nlu90, freeznet and a team as code owners July 14, 2022 06:44
@github-actions github-actions bot added the no-need-doc This pr does not need any document label Jul 14, 2022
Copy link
Contributor

@tpiperatgod tpiperatgod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@freeznet freeznet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, we cannot do this way, since the Parallelism in FunctionDetails is been used by https://github.com/apache/pulsar/blob/branch-2.10/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/ContextImpl.java#L302-L305, which will break this feature in function-mesh.

@jiangpengcheng
Copy link
Member Author

closing for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-need-doc This pr does not need any document
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update replicas will cause all pods been rescheduled
3 participants