You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document the Galexie data lake storage format - #2827
🤖 Automated message from Kaan's Automated Triage Bot.
This adds a Data Lake Storage Format page for readers who consume a Galexie data lake directly, instead of through the ingest SDK or Stellar RPC. It summarizes SEP-54 and links to it as the specification: the object key layout, the reversed-sequence hex prefix, the zstd-compressed LedgerCloseMetaBatch payload, the .config.json manifest and the per-object metadata. Three existing pages now link to it: the Galexie overview, the Data Organization settings in the Galexie admin guide, and the RPC data lake integration guide.
Every fact came from a primary source or a live read:
SEP-54 is now a numbered SEP at ecosystem/sep-0054.md, status Draft, updated 2026-01-07.
The key format matches DataStoreSchema.GetObjectKeyFromSequenceNumber in go-stellar-sdk/support/datastore/schema.go.
.config.json and the field names match DatastoreManifest and manifestFilename in the same package.
The current suffix is .xdr.zst (ZstdCompressor.Name() returns zst); .xdr.zstd is the legacy form the code still reads.
LedgerCloseMetaBatch is in stellar-xdr Stellar-exporter.x and in stellar-xdr v28.0.0, which the Stellar CLI depends on.
The worked example key was fetched from the public bucket. It returns 200 and carries the metadata headers the page lists.
Refs #1605 (and not Closes), because SEP-54 is still status Draft. Please close the issue when you are satisfied with that half.
Add a Data Lake Storage Format page for readers who consume a Galexie
data lake directly instead of through the ingest SDK or Stellar RPC.
The page summarizes SEP-54 (Ledger Metadata Storage) and links to it as
the specification: object key layout, the reversed-sequence hex prefix,
the zstd-compressed LedgerCloseMetaBatch payload, the .config.json
manifest and the per-object metadata. It also shows the layout of the
public AWS Open Data lake with a worked read of one ledger.
Link the new page from the Galexie overview, from the Data Organization
settings in the Galexie admin guide and from the RPC data lake
integration guide.
Refs #1605
This code fence is missing a language identifier. Mark the partition-name example as text so syntax handling is explicit.
**docs/data/indexers/build-your-own/galexie/data-lake-format.mdx:36**
* This code fence is missing a language identifier. Mark these batch filenames as `text` to satisfy the docs fence convention.
This code fence is missing a language identifier. Mark the S3 paths as text so the fence declares its content type.
**docs/data/indexers/build-your-own/galexie/data-lake-format.mdx:107**
* This code fence is missing a language identifier. Mark the worked object key as `text` to comply with the documentation convention.
🤖 Automated message from Kaan's Automated Triage Bot.
Verified against SEP-54, the go-stellar-sdk datastore package and the live AWS bucket. I pushed two corrections: the Testnet path holds one data store per reset, and older stores have no .config.json.
The reason will be displayed to describe this comment to others. Learn more.
this is a pretty good start. i've left some comments throughout the new page. i also want to get the eyes of someone from the data team on this, so our bases are covered.
The reason will be displayed to describe this comment to others. Learn more.
this line isn't actually necessary. it's the exact same text as the frontmatter's title field. in the absence of any <h1> tag (or the equivalent in markdown), docusaurus will automatically place an h1 element with the title's value.
The reason will be displayed to describe this comment to others. Learn more.
it feels like the testnet information above interrupts part of this configuration file section. the details about the AWS public lake could be its own section, but the config info here feels like it's more at home in the config section
The reason will be displayed to describe this comment to others. Learn more.
Overall I think it would be helpful for us to add when you should read directly from the data store yourself versus using RPC or ingest SDK. In this guide we don't make it clear when that would be the recommendation or preferred solution over other data services. Couple nits to improve readability of the page
Galexie stores ledger metadata in an object store as compressed XDR files.
Most applications never read those files directly. Read them through the [ingest SDK](../ingest-sdk/README.mdx) or through [Stellar RPC](../../../apis/rpc/admin-guide/data-lake-integration.mdx) instead. Both hide the layout described here.
The reason will be displayed to describe this comment to others. Learn more.
I think this could be written to something that is clearer, like:
Unless you are building for a highly specialized edge case, use the ingest SDK or Stellar RPC rather than reading these files directly. Both tools abstract away the underlying layout described here so your application doesn't have to manage it.
The reason will be displayed to describe this comment to others. Learn more.
🤖 Automated message from the Stellar Triage Bot.
Applied your wording in 84a3081, with the original relative links. The next line now says to read this page only when an app must read the object store itself, or builds a compatible data store.
On your wider point: I did not add a longer list of direct-read use cases. I found no source for one. If the data team has cases in mind, a short list there would help.
Thanks. The list is in 0118a62, which I already checked. The preview now shows it, and the ingest SDK page confirms the SDK is Go only. No change from me. The label stays bot:ready-to-merge.
Every batch in one data store holds the same number of ledgers. Refer to the [XDR](../../../../learn/fundamentals/data-format/xdr.mdx) documentation for more information on the encoding.
Older data stores use the `.xdr.zstd` suffix instead of `.xdr.zst`. Both suffixes mean Zstandard. A client reads the suffix from an existing object rather than assuming one.
| `ledgersPerBatch` | integer | The number of ledgers in each batch file. |
| `batchesPerPartition` | integer | The number of batch files in each partition directory. |
The Galexie configuration file names the last two values [`ledgers_per_file` and `files_per_partition`](./admin_guide/configuring.mdx#data-organization-optional).
The Galexie configuration file names the last two values [`ledgers_per_file` and `files_per_partition`](./admin_guide/configuring.mdx#data-organization-optional).
Older data stores do not hold this file. A client that reads one must get the batch and partition sizes from its own configuration. The Go `datastore` package does that when the file is absent.
The reason will be displayed to describe this comment to others. Learn more.
I would rephrase to reference the old versions of Galexie that do not include the config.json to make this less confusing. Something like "Data stores that are created by operating a version of Galexie X.X or earlier do not use a config.json file...."
The reason will be displayed to describe this comment to others. Learn more.
🤖 Automated message from the Stellar Triage Bot.
Done in 84a3081. The page now says "Data stores written by Galexie versions before v23.0.0 do not hold this file." Galexie v23.0.0 (2025-08-14) is the release that added .config.json, per its changelog.
This fixed-size claim is not true for Galexie's genesis batch when ledgersPerBatch is greater than 1. Galexie aligns that range to sequence 0 but starts its contents at Stellar's genesis ledger 2 (for example, a configured size of 64 produces entries 2–63), so direct readers must tolerate a shorter first batch.
…ct the batch size claim
Add the frontmatter description that CONTRIBUTING.md asks for.
List the cases where an application reads the data lake directly. The
data team asked for this in review.
The first batch of a data store can hold fewer ledgers than
ledgersPerBatch. Galexie aligns batch ranges to sequence 0 but exports
from ledger 2. Say so instead of claiming every batch has the same size.
Back on this because @kaankacar pushed new commits.
Verified at 0118a62: the first-batch claim matches Galexie adjustLedgerRange (align to the batch boundary, then start at ledger 2). All checks are green. The preview host was not serving, so I used the green build / build instead. Ready to merge.
New page first in the Galexie group (sidebar_position 10, before the
Admin Guide), with links to it from the Galexie landing page,
Configuring, and RPC data lake integration. routes.txt dropped.
Checks: parity clean (only link conversion), guard clean, mint
validate passed, broken-links at baseline 8, all four pages 200, and
all three new links resolve to the new page.
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
bot:ready-to-mergeBot verified and approved; waiting for a maintainer to merge
4 participants
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.
🤖 Automated message from Kaan's Automated Triage Bot.
This adds a Data Lake Storage Format page for readers who consume a Galexie data lake directly, instead of through the ingest SDK or Stellar RPC. It summarizes SEP-54 and links to it as the specification: the object key layout, the reversed-sequence hex prefix, the zstd-compressed
LedgerCloseMetaBatchpayload, the.config.jsonmanifest and the per-object metadata. Three existing pages now link to it: the Galexie overview, the Data Organization settings in the Galexie admin guide, and the RPC data lake integration guide.Every fact came from a primary source or a live read:
ecosystem/sep-0054.md, status Draft, updated 2026-01-07.DataStoreSchema.GetObjectKeyFromSequenceNumberingo-stellar-sdk/support/datastore/schema.go..config.jsonand the field names matchDatastoreManifestandmanifestFilenamein the same package..xdr.zst(ZstdCompressor.Name()returnszst);.xdr.zstdis the legacy form the code still reads.LedgerCloseMetaBatchis in stellar-xdrStellar-exporter.xand in stellar-xdr v28.0.0, which the Stellar CLI depends on.Refs #1605 (and not
Closes), because SEP-54 is still status Draft. Please close the issue when you are satisfied with that half.