Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Conversation

@alexjpwalker
Copy link
Member

What is the goal of this PR?

Given that Python doesn't provide an easy way of getting the number of CPUs available to the process, we decided to reduce the default parallelism of CoreClient from 3 to 2. This should ensure it continues to run smoothly on systems with fewer cores.

What are the changes implemented in this PR?

Set default parallelism of CoreClient to 2

# TODO: cores = Runtime.getRuntime().availableProcessors()
return 3
# TODO: Detect number of available CPUs
return 2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that Python doesn't provide an easy way of getting the number of CPUs available to the process, we decided to reduce the default parallelism of CoreClient from 3 to 2. This should ensure it continues to run smoothly on systems with fewer cores.

@alexjpwalker alexjpwalker merged commit 8eaae66 into typedb:master Mar 29, 2021
@alexjpwalker alexjpwalker deleted the tech-debt branch March 29, 2021 12:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants