-
Notifications
You must be signed in to change notification settings - Fork 226
Add galexie service for local ledger meta store #870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
5ed7ab3
add galexie service to quickstart
leighmcculloch f0bee43
add galexie integration test and configuration
leighmcculloch c5514e9
Add galexie image download step to build workflow
leighmcculloch 2ecd82f
Fix execute permissions on galexie start script
leighmcculloch 4367454
Add captive-core config for galexie
leighmcculloch 5591db3
Add debug output for config response in galexie test
leighmcculloch 8aea0e9
Fix JSON field names in ConfigFile struct to match actual response
leighmcculloch ecfaa32
Add more debug output to galexie test to diagnose file issues
leighmcculloch 7f24e64
Add partition directory listing to debug galexie test
leighmcculloch 7481313
Update galexie test to find any ledger file dynamically
leighmcculloch 4e9aea8
Remove unused metadataFile variable
leighmcculloch cc97eb5
Fix galexie test file extension from .zstd to .zst
leighmcculloch e44bbd5
Fix metadata sidecar file test - use .metadata.json suffix
leighmcculloch e4a7a74
Clean up galexie test debug output
leighmcculloch 31cb7d1
replace galexie version with image.json query
leighmcculloch 2416ffb
Remove metadata sidecar test - filesystem datastore doesn't support m…
leighmcculloch 487d6f1
Move galexie supervisor config to copy_defaults with other services
leighmcculloch faa9d31
remove galexie feature flag check
leighmcculloch d5016b2
Merge branch 'main' into galexie
leighmcculloch 74e37a8
update meta-archive path to /opt/stellar/meta-archive/data
leighmcculloch 7fe76f3
add meta-archive endpoint documentation
leighmcculloch 79f4cda
add metaarchivehome variable and update directory setup
leighmcculloch 8bd804d
reorder galexie initialization steps
leighmcculloch a952e65
add galexie to test matrix and remove duplicate configs
leighmcculloch 9ea675a
rename meta-archive to ledger-meta-store
leighmcculloch c54a5a6
pin galexie to specific commit hash
leighmcculloch 8dc55bd
Merge branch 'main' into galexie
leighmcculloch e4367f7
add galexie ledger meta exporter documentation
leighmcculloch 51a9acd
add history-archive and ledger-meta-store ports
leighmcculloch 1e38ba8
update galexie ref to v25.1.0
leighmcculloch 3f5c906
update galexie ref to galexie-v25.1.0
leighmcculloch c67bb69
parameterize galexie captive core database path
leighmcculloch 284da01
Merge branch 'main' into galexie
leighmcculloch ff4bdf8
Merge branch 'main' into galexie
leighmcculloch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #! /bin/bash | ||
|
|
||
| set -e | ||
| set -o pipefail | ||
|
|
||
| echo "starting galexie..." | ||
| exec /usr/bin/galexie append --start 2 --config-file /opt/stellar/galexie/etc/galexie.toml |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Galexie Configuration for Local Network | ||
|
|
||
| # Admin port configuration | ||
| admin_port = 6062 | ||
|
|
||
| # Datastore Configuration | ||
| [datastore_config] | ||
| type = "Filesystem" | ||
|
|
||
| [datastore_config.params] | ||
| destination_path = "/opt/stellar/ledger-meta-store/data" | ||
|
|
||
| [datastore_config.schema] | ||
| ledgers_per_file = 1 | ||
| files_per_partition = 64000 | ||
|
|
||
| # Stellar-core Configuration | ||
| [stellar_core_config] | ||
| network_passphrase = "__NETWORK__" | ||
| history_archive_urls = ["http://localhost:1570"] | ||
| stellar_core_binary_path = "/usr/bin/stellar-core" | ||
| captive_core_toml_path = "/opt/stellar/galexie/etc/stellar-captive-core.cfg" |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Captive core configuration for galexie on local network | ||
| NETWORK_PASSPHRASE="__NETWORK__" | ||
| HTTP_PORT=11926 | ||
| PUBLIC_HTTP_PORT=false | ||
| PEER_PORT=11925 | ||
| DATABASE="sqlite3://__DATABASE__" | ||
| ARTIFICIALLY_ACCELERATE_TIME_FOR_TESTING=true | ||
|
|
||
| UNSAFE_QUORUM=true | ||
| FAILURE_SAFETY=0 | ||
|
|
||
| [[VALIDATORS]] | ||
| NAME="local_core" | ||
| HOME_DOMAIN="core.local" | ||
| # From "SDQVDISRYN2JXBS7ICL7QJAEKB3HWBJFP2QECXG7GZICAHBK4UNJCWK2" | ||
| PUBLIC_KEY="GCTI6HMWRH2QGMFKWVU5M5ZSOTKL7P7JAHZDMJJBKDHGWTEC4CJ7O3DU" | ||
| ADDRESS="localhost:11625" | ||
| QUALITY="MEDIUM" | ||
| HISTORY="curl -sf http://localhost:1570/{0} -o {1}" |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| location /ledger-meta { | ||
| rewrite /ledger-meta/(.*) /$1 break; | ||
| proxy_pass http://127.0.0.1:1571; | ||
| proxy_redirect off; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| [program:galexie] | ||
| user=stellar | ||
| directory=/opt/stellar/galexie | ||
| command=/opt/stellar/galexie/bin/start | ||
| autostart=false | ||
| startretries=50 | ||
| autorestart=true | ||
| priority=70 | ||
| redirect_stderr=true |
9 changes: 9 additions & 0 deletions
9
local/supervisor/etc/supervisord.conf.d/ledger-meta-store.conf
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| [program:ledger-meta-store] | ||
| user=stellar | ||
| directory=/opt/stellar/ledger-meta-store/data | ||
| command=/usr/bin/python3 -m http.server 1571 | ||
| autostart=true | ||
| autorestart=true | ||
| startretries=100 | ||
| priority=10 | ||
| redirect_stderr=true |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.