Skip to content

Add a script for running apply-load on a fixed AWS instance. - #5256

Merged
dmkozh merged 1 commit into
stellar:masterfrom
dmkozh:apply-load-aws
May 7, 2026
Merged

dmkozh merged 1 commit into
stellar:masterfrom
dmkozh:apply-load-aws

Conversation

@dmkozh

@dmkozh dmkozh commented May 7, 2026

Copy link
Copy Markdown
Contributor

Description

The primary use case is running this from an external orchestrator (Jenkins), though any machine with AWS access should be able to run this.

This supports all the modes that Core currently supports. Eventually we may want to hardcode more parameters or scenarios, but for now this is rather flexible so that we can figure out what works best.

This is based on #5056, though probably most of the apply-load-related logic has been updated to reflect more modes and recent updates.

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

Copilot AI review requested due to automatic review settings May 7, 2026 00:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an AWS-focused orchestration script and template configs to run Stellar Core apply-load on a fixed-spec EC2 instance (intended for external orchestrators like Jenkins), using SSM for remote execution and log retrieval.

Changes:

  • Add apply_load_aws.py CLI to provision/initialize an EC2 instance and run apply-load modes remotely (plus local equivalents).
  • Add template .cfg files for the supported apply-load modes (benchmark, ledger-limits, max-sac-tps) with CLI-populated placeholders.
  • Implement file transfer to the instance via S3+SSM and log download via SSM stdout chunking.

Reviewed changes

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

File Description
scripts/apply_load/aws/apply_load_aws.py New orchestration CLI for EC2/SSM-based apply-load runs, plus config rendering and log download.
scripts/apply_load/aws/apply-load-aws-benchmark.cfg New template config for APPLY_LOAD_MODE="benchmark".
scripts/apply_load/aws/apply-load-aws-ledger-limits.cfg New template config for APPLY_LOAD_MODE="ledger-limits" with network-limit knobs.
scripts/apply_load/aws/apply-load-aws-max-sac-tps.cfg New template config for APPLY_LOAD_MODE="max-sac-tps" binary-search scenario.

@dmkozh
dmkozh force-pushed the apply-load-aws branch 2 times, most recently from 5d988c7 to 69becf9 Compare May 7, 2026 01:10
The primary use case is running this from an external orchestrator (Jenkins), though any machine with AWS access should be able to run this.

This supports all the modes that Core currently supports. Eventually we may want to hardcode more parameters or scenarios, but for now this is rather flexible so that we can figure out what works best.
@dmkozh
dmkozh force-pushed the apply-load-aws branch from 69becf9 to 16d6079 Compare May 7, 2026 20:13
@dmkozh
dmkozh requested a review from marta-lokhova May 7, 2026 21:28
@dmkozh
dmkozh added this pull request to the merge queue May 7, 2026
Merged via the queue into stellar:master with commit 0204855 May 7, 2026
53 checks passed
@dmkozh
dmkozh deleted the apply-load-aws branch May 7, 2026 22:26
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.

3 participants