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

change: update the default value about enable_cpu_affinity #8074

Merged
merged 7 commits into from
Oct 19, 2022

Conversation

Hazel6869
Copy link
Contributor

@Hazel6869 Hazel6869 commented Oct 11, 2022

Description

Nowadays, more and more users deploy APISIX via container. As Nginx's worker_cpu_affinity doesn't count with cgroup, enabling worker_cpu_affinity by default will affect the behavior of APISIX, for instance, multiple instances will be bound to one CPU. To avoid this problem, it would be better to disable CPU affinity option by default in the conf/config-default.yaml.

Fixes #8042

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@Hazel6869 Hazel6869 marked this pull request as draft October 12, 2022 01:10
@Hazel6869 Hazel6869 marked this pull request as ready for review October 12, 2022 08:22
@tzssangglass tzssangglass changed the title feat: update the default value about enable_cpu_affinity change: update the default value about enable_cpu_affinity Oct 13, 2022
tzssangglass
tzssangglass previously approved these changes Oct 13, 2022
tokers
tokers previously approved these changes Oct 13, 2022
t/cli/test_main.sh Outdated Show resolved Hide resolved
t/cli/test_main.sh Outdated Show resolved Hide resolved
@spacewander
Copy link
Member

Don't forget to update the commit message like #8051 (comment) in your PRs.

@Hazel6869 Hazel6869 dismissed stale reviews from tokers and tzssangglass via 57c1e5e October 14, 2022 09:09
@Hazel6869
Copy link
Contributor Author

Don't forget to update the commit message like #8051 (comment) in your PRs.

Thank your suggestion, I have changed.

@spacewander
Copy link
Member

Don't forget to update the commit message like #8051 (comment) in your PRs.

Thank your suggestion, I have changed.

Err, it should be Fixes #8042, not Fixes (#8042)

@spacewander spacewander merged commit 02af68a into apache:master Oct 19, 2022
Liu-Junlin pushed a commit to Liu-Junlin/apisix that referenced this pull request Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants