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

soroban-rpc: Force On-Disk Mode by Removing --captive-core-use-db #1091

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

stellarsaur
Copy link
Contributor

What

This PR removes the --captive-core-use-db flag and forces on-disk mode.

Why

Eventually, the core working-state size will grow, and eventually get too big for RAM. This means in-memory captive-core will not work long-term. Therefore, we should force users to use on-disk mode.

@stellarsaur stellarsaur self-assigned this Nov 20, 2023
@stellarsaur stellarsaur linked an issue Nov 20, 2023 that may be closed by this pull request
@stellarsaur stellarsaur added the enhancement New feature or request label Nov 20, 2023
@2opremio
Copy link
Contributor

Maybe we shouldn't be worrying about this since we haven't reached pubnet but ... shouldn't we deprecate the parameter first? (and/or maybe change it's default value if necessary)

@stellarsaur
Copy link
Contributor Author

Maybe we shouldn't be worrying about this since we haven't reached pubnet but ... shouldn't we deprecate the parameter first? (and/or maybe change it's default value if necessary)

That's a valid point. If we were in pubnet I would want to deprecate the parameter first and set the default to true, but in this case I think simply removing it is fine. Don't feel too strongly about it though

@mollykarcher
Copy link
Contributor

While I agree in general the deprecation pattern is what we should follow, since we're technically "pre-release" here, I'd prefer to just kill this off. We've run into a lot of problems with partner support scenarios because of Horizon supporting (and until recently, defaulting to) in-memory mode, despite that not being our/core team's recommendation. There's almost no advantage to running it, and if we support it out of the gate, we likely also need to profile hardware and define scaling guidelines for both configurations.

@stellarsaur stellarsaur merged commit 7f8ad60 into main Nov 21, 2023
22 checks passed
@stellarsaur stellarsaur deleted the captive-core-use-db branch November 21, 2023 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

soroban-rpc: Remove --captive-core-use-db flag. Force on-disk mode.
4 participants