[Issue #1277] Integrate S3QS storage backend with coordinator-managed partitioned shuffle execution - #1353
Open
vladaliii wants to merge 12 commits into
Open
[Issue #1277] Integrate S3QS storage backend with coordinator-managed partitioned shuffle execution#1353vladaliii wants to merge 12 commits into
vladaliii wants to merge 12 commits into
Conversation
… switches and worker initialization bridging.
… structured shuffle message
…he runtime protocol
…e runtime protocol.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Related to #1277.
This PR integrates the S3QS storage backend into the partitioned shuffle execution path and introduces coordinator-managed task and worker execution for S3QS shuffle stages.
The primary goal of this PR is to establish the infrastructure required for decoupled producers and consumers. Shuffle data is persisted in S3, while SQS carries data availability and producer completion messages.
This is submitted as a draft because the basic execution path is implemented and tested, while automatic scaling policy, failure recovery, and remote platform validation remain follow-up work.
Architecture
The S3QS execution path is organized as follows:
Producer workers -- write objects --> S3
Producer workers -- publish DATA / PRODUCER_END --> SQS
Consumer workers -- poll and acknowledge messages --> SQS
Consumer workers -- read persisted objects --> S3
Operators describe and activate stages. The coordinator owns logical tasks, worker registration, task assignment, completion tracking, and worker-capacity control. Runtime workers obtain tasks through the coordinator instead of each operator permanently binding one invocation to one task.
Main Changes
Shuffle Protocol
Each producer task writes partitioned Pixels objects to S3 and publishes a DATA message to the corresponding SQS partition queue. After completing all output for a partition, the producer publishes a PRODUCER_END message.
Consumers may start before all producers finish. They continuously poll their assigned queues, process available objects, acknowledge successfully processed messages, and exit after observing completion from all expected producers.
The current first version fails the stage directly on worker or protocol errors. Transparent retry and exactly-once processing are intentionally left for follow-up work.
Configuration
The new execution path is enabled by the S3QS exchange method together with the S3QS shuffle storage configuration.
Existing input and intermediate storage settings retain their previous semantics. The S3QS-specific configuration currently only affects the new shuffle path.
Testing
The following coverage was added and executed:
Final observed results:
The AWS integration tests require:
PIXELS_S3QS_IT_BUCKETPIXELS_S3QS_IT_QUEUE_PREFIXPIXELS_S3QS_IT_PREFIX(optional)Current Limitations
The following items are not completed by this PR:
The coordinator now provides the ownership and control points needed for future scaling work, but this PR should not yet be considered a complete production-grade elastic shuffle implementation.
Review Focus
Reviewers are especially invited to examine: