Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
3392f09
pull initial work from branch load-testing
cjonas9 May 9, 2026
ffe27bc
add ledger generation test adapted for RPC
cjonas9 May 4, 2026
65da3b5
add apply load config
cjonas9 May 4, 2026
34f086d
add generated ledger output to infrastructure/testdata/
cjonas9 May 4, 2026
80c982d
add basic ingestion of synthetic ledgers phase
cjonas9 May 7, 2026
94c69b7
disable debug logs for load test for timeout reasons
cjonas9 May 7, 2026
f4a16f9
add functions for snapshotting + restoring test DB
cjonas9 May 8, 2026
1d53b96
improve ad restructure db restoration helpers/API
cjonas9 May 8, 2026
baf2255
finish DB restoration logic flow and wiring
cjonas9 May 8, 2026
1647464
skip migrations/fee-stats in load test mode
cjonas9 May 8, 2026
2f14765
ingest test: refactor, minor semantic fixes
cjonas9 May 8, 2026
d7c90a9
test.go: add retention window to config, fix fake history archive for…
cjonas9 May 8, 2026
0390757
minor db restore/trim helper fixes
cjonas9 May 8, 2026
e0a86e7
rename restore backed-up ledgers function for accuracy
cjonas9 May 8, 2026
f151a35
refactor, add env vars, change DB helpers to take sequences
cjonas9 May 12, 2026
bffb101
remove db restoration functionality
cjonas9 May 15, 2026
e04d51d
add performance metrics json emission functionality
cjonas9 May 15, 2026
bd8c784
migrate to polling getHealth, change ingest test limits to 1000 ledgers
cjonas9 May 15, 2026
c7bc001
remove ledger fixtures
cjonas9 May 15, 2026
786423d
add workflow and script
cjonas9 May 15, 2026
1606829
fix yaml referencing wrong path for script
cjonas9 May 15, 2026
7d41b1a
fix yml parsing indentation bug
cjonas9 May 15, 2026
b701108
use head-object for metadata rather than tags
cjonas9 May 15, 2026
b1cec1d
refine workflow + instance script
cjonas9 May 15, 2026
b9ef27e
add apply load cfg
cjonas9 May 15, 2026
73df1e7
testing: on-push runs
cjonas9 May 15, 2026
241bdf8
minor yml syntax fixes
cjonas9 May 15, 2026
1161e3f
set test e2e.yml + add debugging info from instance to ssm
cjonas9 May 15, 2026
47437f4
skip e2e.yml for testing, add retry loop for root volume lookup
cjonas9 May 15, 2026
008f327
build-libs over build-stellar-rpc to cut time back
cjonas9 May 15, 2026
9441749
further slim build phase with no-install-recommends
cjonas9 May 15, 2026
36c0a82
make instance script best-effort if head-object or stellar-core versi…
cjonas9 May 16, 2026
4535977
temporarily modify script to work on scratch dev box; increase timeout
cjonas9 May 16, 2026
54f0b41
fix cfg path error and run ID regression
cjonas9 May 16, 2026
44e093c
improve error logging
cjonas9 May 16, 2026
1ce515e
fix error logging wrapper
cjonas9 May 16, 2026
22a8e6e
patch premature exit due to err trap bug
cjonas9 May 16, 2026
e925d3c
fix empty GOPATH/GOMODCACHE
cjonas9 May 16, 2026
ffb3299
updated apply-load config for specific core on runner
cjonas9 May 16, 2026
bae2fdc
fix version check if warning prints
cjonas9 May 16, 2026
70eb9dc
bump all timeouts to >= 2 hours
cjonas9 May 17, 2026
705edec
increase ingest phase timeout
cjonas9 May 17, 2026
c697510
extend aws role lifetime
cjonas9 May 17, 2026
caec3f4
undo session time limit increase, use pre-generated synthetic ledgers
cjonas9 May 18, 2026
b32181d
require confirmed gp3 throttling, extend GHA AWS session to 4 hours
cjonas9 May 19, 2026
3a0571f
patch logic for throttling behavior
cjonas9 May 19, 2026
2c4a004
slim needless instance bootstrapping work
cjonas9 May 20, 2026
d620450
refactor ephemeral load test runner
cjonas9 May 27, 2026
41529f4
fix minor refactor false sha-verify failure
cjonas9 May 27, 2026
2a21c73
add support for multiple ledger profiles/files
cjonas9 Jun 11, 2026
04f0fe1
change log level to warn, decrease each soroban scenario meta to 1000…
cjonas9 Jun 12, 2026
02556cc
refactored duplicate/messy code
cjonas9 Jun 12, 2026
807ca42
stop grepping to determine success status, make GHA->ec2 parameter pa…
cjonas9 Jun 12, 2026
af9f7b9
split offline ledger generation out of the ingest benchmark
cjonas9 Jun 12, 2026
e4180dd
refactor and remove old apply load cfg
cjonas9 Jun 12, 2026
4c3394c
Merge remote-tracking branch 'origin/main' into apply-load
cjonas9 Jun 12, 2026
bc2e490
Merge branch 'main' into apply-load
cjonas9 Jun 15, 2026
555483e
Merge branch 'apply-load' of https://github.com/stellar/stellar-rpc i…
cjonas9 Jun 15, 2026
a620cdc
fix linter errors
cjonas9 Jun 15, 2026
2dabdf3
add json file providing configurability for eval thresholds
cjonas9 Jun 16, 2026
3f873f7
add basic coordinator for epic's tasks
cjonas9 Jun 16, 2026
8f4f1d1
make ec2 ingest load test callable
cjonas9 Jun 16, 2026
c1c437f
propogate apply load ingest test metrics to coordinator
cjonas9 Jun 17, 2026
b031d9d
add releaseeval package for subtest tooling and execution
cjonas9 Jun 17, 2026
61d4877
make ingest load test share perf schema w/ coordinator
cjonas9 Jun 17, 2026
65cb6ff
update go version
cjonas9 Jun 17, 2026
4aca1ef
update default ledger bundle/config to existent ones for test
cjonas9 Jun 17, 2026
3d61ceb
decompose ec2 script into go programs
cjonas9 Jun 17, 2026
9bef115
reduce comment verbosity, minor clean up
cjonas9 Jun 17, 2026
8b39ed5
install jq on load-test box for build-libs; surface build-libs errors
cjonas9 Jun 18, 2026
714b1fa
throttle load-test benchmark via cgroup io.max instead of EBS ModifyV…
cjonas9 Jun 18, 2026
d9987f6
drop accidentally-committed refresh tooling and orphaned apply-load.cfg
cjonas9 Jun 18, 2026
5058ad3
fix linter errors in load-test runner
cjonas9 Jun 18, 2026
8cf9f6b
make load-test ingest frequency and ledger count configurable via env
cjonas9 Jun 18, 2026
3b33626
EXPERIMENT: run load-test benchmark un-throttled at volume-provisione…
cjonas9 Jun 18, 2026
7e60661
use SDK's maxLedgersPerFile ceiling and multiple-bundle functionality
cjonas9 Jun 18, 2026
fdb1926
simplify verification walk
cjonas9 Jun 18, 2026
1f974a4
simplify and refactor, add ledger ingest stall timeout
cjonas9 Jun 22, 2026
19a3115
simplify correctness check, delegate apply-load config work to SDK
cjonas9 Jun 22, 2026
103b648
remove ingest phase dependence on unnecessary supplied apply load con…
cjonas9 Jun 23, 2026
7e13bf3
bump go sdk to v0.6.x
cjonas9 Jun 23, 2026
8333974
bump go sdk again, merge SDK main into loadtest-patch
cjonas9 Jun 23, 2026
f3f3d58
Merge remote-tracking branch 'origin/main' into apply-load
cjonas9 Jun 23, 2026
a6241f6
update comments in light of changes
cjonas9 Jun 23, 2026
855527c
merge apply-load recent work into coordinator
cjonas9 Jun 24, 2026
8d5f523
rework handshake into instance->s3 results push, fix minor leaks + OO…
cjonas9 Jun 24, 2026
21b8045
replace polling-based ledger timing computation with daemon hook
cjonas9 Jun 24, 2026
a8931fe
remove trigger-on-push behavior
cjonas9 Jun 25, 2026
97af867
Merge branch 'apply-load' into gha-coordinator
cjonas9 Jun 25, 2026
b15e2e3
simplify significantly, refactor into on-release-push job launcher + …
cjonas9 Jun 25, 2026
fbd8b2b
moved ingest load test go programs into separate folder
cjonas9 Jun 25, 2026
237578c
refactored coordinator logic into go
cjonas9 Jun 25, 2026
4651084
Merge remote-tracking branch 'origin/main' into gha-coordinator
cjonas9 Jun 26, 2026
f1b4473
add temporary trigger and log->s3 for testing
cjonas9 Jun 26, 2026
c601be5
bring main verbosity cleanups into coordinator
cjonas9 Jun 26, 2026
d846b52
decompose shared ec2/gha programming into reusable modular components
cjonas9 Jun 29, 2026
f83c4d8
move run-load-test.sh scripting into run_leg helper in common shell s…
cjonas9 Jun 29, 2026
c57a23b
add initial backfill-specific testing and wiring
cjonas9 Jun 29, 2026
3901d85
use callable workflows in coordinator
cjonas9 Jun 29, 2026
c91c61f
refactor into callable workflow, factor out common main Run() func
cjonas9 Jun 29, 2026
f5c4f3f
Merge branch 'gha-coordinator' into backfill-test
cjonas9 Jun 30, 2026
4d7084d
add push to branch backfill-test to coordinator triggers
cjonas9 Jun 30, 2026
0d261a6
resolve the PR by head without --base main
cjonas9 Jun 30, 2026
2bbb35e
in ec2, build daemon to a path that doesn't collide with the repo dir
cjonas9 Jun 30, 2026
cda0eb4
clean up comments, increase MaxSessionDuration and backfill time limits
cjonas9 Jun 30, 2026
1624ebe
keep ec2 box alive on job cancel + upload more logs
cjonas9 Jul 6, 2026
9d0cce9
Merge remote-tracking branch 'origin/main' into backfill-test
cjonas9 Jul 10, 2026
1a50e42
revert residual testing changes
cjonas9 Jul 10, 2026
b352ba9
minor: don't hard-code binaryPath in backfill's instantiate
cjonas9 Jul 10, 2026
b8af67e
break up legs line
cjonas9 Jul 13, 2026
e908b52
remove vestigial workflow call outputs
cjonas9 Jul 14, 2026
aa52702
simplify comments
cjonas9 Jul 14, 2026
7d729bf
add scanner error check
cjonas9 Jul 14, 2026
5599a27
harden instantiate with ingested vs. want verification
cjonas9 Jul 14, 2026
5771a07
add optional pr number workflow dispatch parameter
cjonas9 Jul 14, 2026
03fde5c
remove push to backfill-test trigger
cjonas9 Jul 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ec2-leg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ jobs:
echo "::error::SSM agent never registered for $INSTANCE_ID — verify AmazonSSMManagedInstanceCore is attached to the stellar-rpc-ci-load-test role"
exit 1

# Polls S3 for the result object and relays verdict/passed + the result
# location (bucket/key) as step outputs the coordinator reads.
# Polls S3 for the result object and relays found/passed as step outputs
# for the fail gate below.
# RUN_ID must match the box preamble's: gather skips result objects from
# other attempts (a re-run shares RESULT_KEY with its predecessors).
- name: Poll for results
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/load-test-coordinator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ on:
required: false
type: string
default: ''
pr_number:
description: 'PR to report results to (default: inferred from the tested branch)'
required: false
type: string
default: ''

# Keyed on the release ref so a new push to the same branch supersedes an
# in-flight test. Each leg's self-terminate ceiling backstops its box.
Expand Down Expand Up @@ -50,14 +55,21 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
REF: ${{ inputs.target_ref || github.ref_name }}
PR: ${{ inputs.pr_number }}
run: |
SHA="$(git rev-parse HEAD)"
PR="$(gh pr list --repo "${{ github.repository }}" --state open \
--base main --head "$REF" --json number --jq '.[0].number // ""' 2>/dev/null || true)"
if [ -z "$PR" ]; then
PR="$(gh pr list --repo "${{ github.repository }}" --state open \
--head "$REF" --json number --jq '.[0].number // ""' 2>/dev/null || true)"
fi
LEGS='[
{"label":"Apply-load ingestion","run_label":"apply-load","script":"cmd/stellar-rpc/internal/integrationtest/infrastructure/perf-eval/ingest-load-test/run-load-test.sh","budget":225},
{"label":"Backfill ingestion","run_label":"backfill","script":"cmd/stellar-rpc/internal/integrationtest/infrastructure/perf-eval/backfill-test/run-backfill.sh","budget":345}
]'
{
echo "target_sha=$SHA"
echo "pr_number=$PR"
echo 'legs=[{"label":"Apply-load ingestion","run_label":"apply-load","script":"cmd/stellar-rpc/internal/integrationtest/infrastructure/perf-eval/ingest-load-test/run-load-test.sh"}]'
echo "legs=$(jq -c . <<<"$LEGS")"
} >> "$GITHUB_OUTPUT"

# The fan-out: one matrix entry per leg.
Expand All @@ -74,6 +86,7 @@ jobs:
target_ref: ${{ needs.plan.outputs.target_sha }}
run_label: ${{ matrix.leg.run_label }}
leg_script: ${{ matrix.leg.script }}
budget_minutes: ${{ matrix.leg.budget }}
Comment thread
cjonas9 marked this conversation as resolved.

report:
name: Aggregate + report
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Backfill ingestion leg. Concatenated after bootstrap-common.sh in the rendered
# EC2 user-data, so it relies on that file's env, helpers, bootstrap_box, and
# run_leg. It hands off to `runner instantiate`, which builds stellar-rpc and
# times a backfill run against the pubnet datastore. The other half, `runner
# gather`, polls S3 for the result object.
LEG_TITLE="Backfill ingestion"

bootstrap_box
run_leg ./cmd/stellar-rpc/internal/integrationtest/infrastructure/perf-eval/backfill-test/runner
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
package main

import (
"bufio"
"context"
"fmt"
"os"
"os/exec"
"path/filepath"
"regexp"
"strconv"
"time"

"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/s3"

"github.com/stellar/go-stellar-sdk/ingest/ledgerbackend"

"github.com/stellar/stellar-rpc/cmd/stellar-rpc/internal/integrationtest/infrastructure/perf-eval/harness"
)

const (
// runner runs w/ cwd = repo root, so paths are relative to there
legDir = "cmd/stellar-rpc/internal/integrationtest/infrastructure/perf-eval/backfill-test"
corePath = "/usr/local/bin/stellar-core" // fetched from S3
)

const ledgerThreshold = 384 // mirrors ingest.ledgerThreshold in backfill.go

// backfillDoneRe matches the terminal line emitted on backfill's completion
var backfillDoneRe = regexp.MustCompile(`Backfill process complete, ledgers \[(\d+) -> (\d+)\]`)

// instantiate is the instance's backfill task: it fetches + builds test fixtures,
// runs a timed backfill, then publishes the verdict.
func instantiate(ctx context.Context) error {
var (
bucket = harness.Env("BUCKET", "stellar-rpc-ci-load-test")
region = harness.Env("REGION", "us-east-1")
workDir = harness.Env("WORK_DIR", "/data")
resultsFile = harness.Env("RESULTS_FILE", "/tmp/results.md")
resultKey = os.Getenv("RESULT_KEY")
targetSHA = os.Getenv("TARGET_SHA")
runID = harness.Env("RUN_ID", "manual")
// ~1 day by default for cheap test runs; the full week is 120960.
retention = harness.Env("HISTORY_RETENTION_WINDOW", "17280")
deadline = harness.Env("BACKFILL_DEADLINE", "4h")

binaryPath = filepath.Join(workDir, "stellar-rpc-bin") // built here (the repo checkout is in WORK_DIR)
)
repoRoot, err := os.Getwd()
if err != nil {
return err
}
bail := func(format string, args ...any) error {
return harness.BailInstance(resultsFile, "Backfill ingestion", runID, targetSHA, fmt.Sprintf(format, args...))
}

want, err := strconv.Atoi(retention) // used to compare against ingested ledgers below
if err != nil {
return bail("parsing retention window %q: %v", retention, err)
}

awsCfg, err := config.LoadDefaultConfig(ctx, config.WithRegion(region))
if err != nil {
return bail("loading AWS config: %v", err)
}
fetch := &harness.S3Fetcher{Client: s3.NewFromConfig(awsCfg), Bucket: bucket}

if err := fetch.FetchVerified(ctx, "core/stellar-core.zst", corePath, true, "stellar-core"); err != nil {
return bail("%v", err)
}
if err := os.Chmod(corePath, 0o755); err != nil {
return bail("chmod stellar-core: %v", err)
}

logger.Infof("building stellar-rpc")
if err := harness.RunStreaming(ctx, repoRoot, nil, 40, "make", "build-libs"); err != nil {
return bail("make build-libs failed: %v", err)
}
if err := harness.RunStreaming(ctx, repoRoot, nil, 40,
"go", "build", "-o", binaryPath, "./cmd/stellar-rpc"); err != nil {
return bail("go build failed: %v", err)
}

// fetch + write core config from SDK
coreCfg := filepath.Join(workDir, "captive-core-pubnet.cfg")
if err := os.WriteFile(coreCfg, ledgerbackend.PubnetDefaultConfig, 0o644); err != nil {
return bail("writing captive-core config: %v", err)
}

cfgPath, err := renderConfig(repoRoot, workDir, coreCfg, retention)
if err != nil {
return bail("rendering config: %v", err)
}

dl, err := time.ParseDuration(deadline)
if err != nil {
return bail("invalid BACKFILL_DEADLINE %q: %v", deadline, err)
}
logger.Infof("starting backfill (retention=%s, deadline=%s)", retention, deadline)
elapsed, lo, hi, err := runBackfill(ctx, dl, binaryPath, cfgPath)
if err != nil {
return bail("%v", err)
}
ingested := hi - lo + 1
if ingested+ledgerThreshold < want {
return bail("backfill reported complete but ingested %d of %s ledgers", ingested, retention)
}
logger.Infof("backfill complete: %d ledgers [%d -> %d] in %s", ingested, lo, hi, elapsed.Round(time.Second))
Comment thread
cjonas9 marked this conversation as resolved.

md := renderMarkdown(targetSHA, retention, lo, hi, ingested, elapsed)
if err := os.WriteFile(resultsFile, []byte(md), 0o644); err != nil {
return bail("writing results: %v", err)
}
if err := harness.PublishResult(
ctx, fetch.Client, bucket, resultKey, "ok", runID, targetSHA, resultsFile, ""); err != nil {
return bail("publishing result: %v", err)
}
return nil
}

// renderConfig fills the config template's ${...} placeholders (box paths + the
// retention window) via os.Expand
func renderConfig(repoRoot, workDir, coreCfg, retention string) (string, error) {
tmpl, err := os.ReadFile(filepath.Join(repoRoot, legDir, "testdata", "backfill-pubnet.toml.tmpl"))
if err != nil {
return "", err
}
mapping := func(in string) string {
switch in {
case "CAPTIVE_CORE_CONFIG_PATH":
return coreCfg
case "CAPTIVE_CORE_STORAGE_PATH":
return filepath.Join(workDir, "core-storage")
case "DB_PATH":
return filepath.Join(workDir, "backfill.sqlite")
case "STELLAR_CORE_BINARY_PATH":
return corePath
case "HISTORY_RETENTION_WINDOW":
return retention
default:
return "${" + in + "}" // leave unknown placeholders intact
}
}
body := os.Expand(string(tmpl), mapping)
cfgPath := filepath.Join(workDir, "backfill-rpc.toml")
if err := os.WriteFile(cfgPath, []byte(body), 0o644); err != nil {
return "", err
}
return cfgPath, nil
}

// runBackfill launches the daemon and streams its output (teeing to the box log)
// until the backfill-complete line fires, recording the wall-clock
func runBackfill(ctx context.Context, deadline time.Duration, binary, cfgPath string) (time.Duration, int, int, error) {
Comment thread
cjonas9 marked this conversation as resolved.
runCtx, cancel := context.WithTimeout(ctx, deadline)
defer cancel()

cmd := exec.CommandContext(runCtx, binary, "--config-path", cfgPath)
// hide this box's IMDS creds as the public datalake 403s signed requests
cmd.Env = append(os.Environ(), "AWS_EC2_METADATA_DISABLED=true")
pr, pw, err := os.Pipe()
if err != nil {
return 0, 0, 0, err
}
cmd.Stdout, cmd.Stderr = pw, pw

start := time.Now()
Comment thread
cjonas9 marked this conversation as resolved.
if err := cmd.Start(); err != nil {
pw.Close()
pr.Close()
return 0, 0, 0, fmt.Errorf("starting daemon: %w", err)
}
pw.Close() // the child holds the write end and we read until it dies
defer pr.Close()

var elapsed time.Duration
var lo, hi int
scanner := bufio.NewScanner(pr)
scanner.Buffer(make([]byte, 64*1024), 1024*1024)
for scanner.Scan() {
Comment thread
cjonas9 marked this conversation as resolved.
line := scanner.Text()
fmt.Fprintln(os.Stderr, line) // tee to the box user-data log (SSM debug tail)
if m := backfillDoneRe.FindStringSubmatch(line); m != nil {
elapsed = time.Since(start)
lo, _ = strconv.Atoi(m[1])
hi, _ = strconv.Atoi(m[2])
cancel() // stop the daemon before it starts live ingestion
break
}
}
scanErr := scanner.Err()
if scanErr != nil {
cancel()
}
_ = cmd.Wait() // reap; a kill from cancel surfaces here and is expected

if elapsed == 0 {
if scanErr != nil {
return 0, 0, 0, fmt.Errorf("reading daemon output: %w", scanErr)
}
return 0, 0, 0, fmt.Errorf("daemon exited or hit the %s deadline before backfill completed", deadline)
}
return elapsed, lo, hi, nil
}

func renderMarkdown(sha, retention string, lo, hi, ingested int, elapsed time.Duration) string {
shortSHA := sha
if len(shortSHA) > 12 {
shortSHA = shortSHA[:12]
}
lps := 0.0
if s := elapsed.Seconds(); s > 0 {
lps = float64(ingested) / s
}
return fmt.Sprintf("### ⏳ Backfill ingestion — `%s`\n\n"+
"| Metric | Value |\n|---|---|\n"+
"| Ledgers ingested | %d (`[%d -> %d]`) |\n"+
"| Retention window | %s |\n"+
"| Wall-clock | %s |\n"+
"| Ledgers/sec | %.1f |\n",
shortSHA, ingested, lo, hi, retention, elapsed.Round(time.Second), lps)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Command runner runs the backfill ingestion benchmark on the box.
package main

import "github.com/stellar/stellar-rpc/cmd/stellar-rpc/internal/integrationtest/infrastructure/perf-eval/harness"

var logger = harness.NewLogger()

func main() { harness.Run(instantiate) }
Comment thread
cjonas9 marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# To fill in and use by the backfill leg's runner (instantiate.go renderConfig),
# which substitutes the placeholders below via os.Expand before the daemon reads
# it -- not a standalone config.

NETWORK_PASSPHRASE = "Public Global Stellar Network ; September 2015"
HISTORY_ARCHIVE_URLS = ["https://history.stellar.org/prd/core-live/core_live_001"]
ENDPOINT = "localhost:8000"
LOG_LEVEL = "info"

# Captive core is constructed at startup (so the binary + config must exist)
# even though backfill itself reads from the datastore below.
CAPTIVE_CORE_CONFIG_PATH = "${CAPTIVE_CORE_CONFIG_PATH}"
STELLAR_CORE_BINARY_PATH = "${STELLAR_CORE_BINARY_PATH}"
CAPTIVE_CORE_STORAGE_PATH = "${CAPTIVE_CORE_STORAGE_PATH}"
CHECKPOINT_FREQUENCY = 64

DB_PATH = "${DB_PATH}"

# Backfill the retention window from the datastore on startup, then stop (the
# leg kills the daemon at the completion log line).
BACKFILL = true
SERVE_LEDGERS_FROM_DATASTORE = true
HISTORY_RETENTION_WINDOW = ${HISTORY_RETENTION_WINDOW}
Comment thread
cjonas9 marked this conversation as resolved.
INGESTION_TIMEOUT = "50m0s"
Comment thread
cjonas9 marked this conversation as resolved.

[datastore_config]
type = "S3"

[datastore_config.params]
destination_bucket_path = "aws-public-blockchain/v1.1/stellar/ledgers/pubnet"
region = "us-east-2"

[datastore_config.schema]
FileExtension = "zst"
files_per_partition = 64000
ledgers_per_file = 1
Loading