Skip to content

Conversation

@fressi-elastic
Copy link
Contributor

@fressi-elastic fressi-elastic commented Aug 14, 2025

The main purpose for this is to be able to prevent using the fork function to be able to use threads for multipart downloads.

The main reason for this is that to be able to use threads in
subprocesses we have to prevemt using any kind of fork function.
@fressi-elastic fressi-elastic changed the title [WIP] Update actor module. Ask Thespian to spawn actors subprocess instead of using fork. Aug 14, 2025

This comment was marked as outdated.

@fressi-elastic fressi-elastic requested a review from Copilot August 18, 2025 14:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies the Rally actor system to use spawn instead of fork for subprocess creation, enabling thread usage in subprocesses. The main changes include:

  • Adding process startup method configuration and validation
  • Enhanced actor system detection and bootstrapping logic
  • Comprehensive test coverage for the new functionality

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
esrally/actor.py Core implementation adding process startup method support, improved type annotations, and enhanced actor system detection
esrally/rally.py Integration of process startup method configuration validation and actor system setup
esrally/types.py Added new configuration keys for actor process startup method
tests/actor_test.py Comprehensive test suite covering all actor system bootstrap scenarios and configurations
pyproject.toml Added mypy override for the actor module

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@fressi-elastic fressi-elastic changed the title Ask Thespian to spawn actors subprocess instead of using fork. Allow configuring the process startup method to be used for creating thespian actors. Aug 18, 2025
@fressi-elastic fressi-elastic marked this pull request as ready for review August 18, 2025 16:18
Copy link
Contributor

@gbanasiak gbanasiak left a comment

Choose a reason for hiding this comment

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

LGTM. I've left some minor comments and questions, but nothing blocking.

@fressi-elastic fressi-elastic enabled auto-merge (squash) August 19, 2025 14:58
@fressi-elastic fressi-elastic merged commit 81abfc3 into elastic:master Aug 19, 2025
15 checks passed
fressi-elastic added a commit to fressi-elastic/rally that referenced this pull request Sep 8, 2025
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.

2 participants