Closed piepmatz closed 5 months ago
What is the purpose of this pull request/Why do we need it?
Improve performance by having more worker goroutines per controller.
Description of changes:
Besides the actual flags for specifying the number of concurrent reconciles per controller, this change adds locks as needed for thread safety.
This applies to 3 kinds of operations:
IonosCloudCluster.Status.CurrentRequestByDatacenter
For locking, a new locker package was added.
locker
Special notes for your reviewer:
Reviewing commit by commit should be the easiest way.
Checklist:
Issues 0 New issues 0 Accepted issues
Measures 0 Security Hotspots No data about Coverage 7.6% Duplication on New Code
See analysis details on SonarCloud
What is the purpose of this pull request/Why do we need it?
Improve performance by having more worker goroutines per controller.
Description of changes:
Besides the actual flags for specifying the number of concurrent reconciles per controller, this change adds locks as needed for thread safety.
This applies to 3 kinds of operations:
IonosCloudCluster.Status.CurrentRequestByDatacenter
map, as it is shared across machines.For locking, a new
locker
package was added.Special notes for your reviewer:
Reviewing commit by commit should be the easiest way.
Checklist: