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

fix: edgex component creation cause registration errors and core-command crash #2030

Conversation

LavenderQAQ
Copy link
Member

What type of PR is this?

/kind bug
/sig iot

What this PR does / why we need it:

The default maxSurge value for k8s deployment is 25%, and when replicas is 1, maxSurge is 1 after rounding up. This results in the existence of 2 identical edgex components at the same time after a quick create + update operation, and edgex components use a registration mechanism. If a component preregisters and is terminated by workload, this causes the metadata component to scramble. This chaos manifests itself in the form of other components crashing all the time.

I updated auto-collector to directly inject the default maxSurge value of 0 into the config file and the issue was resolved.

Which issue(s) this PR fixes:

Fixes #2028

…and crash

Signed-off-by: LavenderQAQ <lavenderqaq.cs@gmail.com>
@LavenderQAQ LavenderQAQ added kind/bug kind/bug sig/iot sig/iot backport release-v1.4 backport release-v1.4 labels Apr 19, 2024
@LavenderQAQ LavenderQAQ assigned rambohe-ch and unassigned rambohe-ch Apr 19, 2024
@LavenderQAQ
Copy link
Member Author

/rerun

1 similar comment
@LavenderQAQ
Copy link
Member Author

/rerun

Signed-off-by: LavenderQAQ <lavenderqaq.cs@gmail.com>
Copy link

sonarcloud bot commented Apr 22, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@rambohe-ch rambohe-ch added approved approved lgtm lgtm labels Apr 24, 2024
@rambohe-ch rambohe-ch merged commit 32febf4 into openyurtio:release-v1.4 Apr 24, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved approved backport release-v1.4 backport release-v1.4 kind/bug kind/bug lgtm lgtm sig/iot sig/iot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants