Skip to content
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

Remove the explicit on-disk mode setting from Horizon configuration #163

Merged
merged 1 commit into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 0 additions & 2 deletions docs/run-api-server/configuring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ As outlined at the beginning, we presume you are interested in starting an inges
| --- | --- | --- |
| `--captive-core-config-path` | `CAPTIVE_CORE_CONFIG_PATH` | /etc/default/stellar-captive-core.toml |
| `--stellar-core-binary-path` | `STELLAR_CORE_BINARY_PATH` | /usr/bin/stellar-core |
| `--captive-core-use-db` | `CAPTIVE_CORE_USE_DB` | true |

Note that **ingestion is enabled by default**.

- The first parameter, `--captive-core-config-path`, points to a Captive Core configuration file. This TOML file only requires a few fields (explained [below](#configuring-captive-core)) to get up and running.
- The second parameter, `--stellar-core-binary-path`, is a filesystem path to a Stellar Core binary. Horizon will actually search your PATH for `stellar-core` by default, so if your environment is configured appropriately, you don't need to pass this.
- The third parameter, `--captive-core-use-db`, by default this value is false, which means Captive Core ingestion will run with ledger states stored in RAM. When set to true, enables Captive Core ingestion to store ledger states in local SQLite database rather than in memory (RAM). As of this writing, ledger states require approximately 8GB, but this will continue to increase as the ledger grows over time. The database location is determined by the `DATABASE` parameter within the `--captive-core-config-path` file. By default, it is set to `sqlite3://stellar.db`, which resolves to runtime directory location derived from `--captive-core-storage-path`.

#### Without Ingestion

Expand Down
3 changes: 0 additions & 3 deletions docs/run-api-server/ingestion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@ export RETRY_BACKOFF_SECONDS=20
# If not enabled, stellar-horizon would download data in the current working directory.
# export CAPTIVE_CORE_STORAGE_PATH="/var/lib/stellar"

# For stellar-horizon to use local disk file for ledger states rather than in memory(RAM), approximately
# 8GB of space and increasing as size of ledger entries grows over time.
# export CAPTIVE_CORE_USE_DB=true
```

</CodeExample>
Expand Down