Skip to content

change: update the default value about enable_cpu_affinity#8074

Merged
spacewander merged 7 commits into
apache:masterfrom
Hazel6869:feature_enable_cpu_affinity
Oct 19, 2022
Merged

change: update the default value about enable_cpu_affinity#8074
spacewander merged 7 commits into
apache:masterfrom
Hazel6869:feature_enable_cpu_affinity

Conversation

@Hazel6869

@Hazel6869 Hazel6869 commented Oct 11, 2022

Copy link
Copy Markdown
Contributor

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
Comment thread conf/config-default.yaml Outdated
tzssangglass
tzssangglass previously approved these changes Oct 13, 2022
tokers
tokers previously approved these changes Oct 13, 2022
Comment thread t/cli/test_main.sh Outdated
Comment thread t/cli/test_main.sh Outdated
@spacewander

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: As a user, I want to set enable_cpu_affinity default to false, so that it won't affect running APISIX via container

4 participants