Skip to content

Parallel node setup #1229

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

Closed
wants to merge 14 commits into from
Closed

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Jul 26, 2025

When running pytest with a high number of workers pytest -n32, I noticed a significant amount of time is just spent on initializing the nodes (2s here), since each call to self.group.makegateway(spec) takes ~0.05s. When using a pool, the total time is instead roughly the time it takes to create one Python instance (0.05s).

gw = self.group.makegateway(spec)

@sshane sshane marked this pull request as draft July 26, 2025 03:28
@sshane
Copy link
Contributor Author

sshane commented Jul 26, 2025

@nicoddemus I know you reviewed my last PR. There are a fair amount of tests that assert workers pick up tests in a specific order. Is rewriting the tests to not care about order the correct fix, or should we order the nodes to pick up tests deterministically again?

Are you interested in these optimization PRs at all?

@sshane sshane closed this Jul 26, 2025
@sshane sshane deleted the parallel-node-setup branch July 26, 2025 06:23
@sshane sshane restored the parallel-node-setup branch July 26, 2025 06:23
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