Skip to content

[Distributed] Fix init serialToParallelPool bug if cpu.cores > 100#2363

Closed
OneSizeFitsQuorum wants to merge 2 commits intoapache:masterfrom
OneSizeFitsQuorum:fix_serialToParallelPool_init_bug
Closed

[Distributed] Fix init serialToParallelPool bug if cpu.cores > 100#2363
OneSizeFitsQuorum wants to merge 2 commits intoapache:masterfrom
OneSizeFitsQuorum:fix_serialToParallelPool_init_bug

Conversation

@OneSizeFitsQuorum
Copy link
Contributor

We will encounter a exception when starting cluster server if cpu.cores > 100, so we should change the parameters for ThreadPoolExecutor. As serialToParallelPool will only do heartbeat or add/remove node, I think the coreSize can be 'allNode.size()', and the maxSize can be set to Math.max(allNodes.size(), Runtime.getRuntime().availableProcessors()).

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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.

1 participant