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

[State sync] Configure localnet for dumping and downloading state to/from filesystem #11149

Open
tayfunelmas opened this issue Apr 24, 2024 · 0 comments

Comments

@tayfunelmas
Copy link
Contributor

Make sure the localnet configuration support dumping state to local filesystem and running state sync over this dump. This issue is valid for centralized state sync, which is done in mainnet/testnet via cloud storage.

One node should be configured to dump state to filesystem:

"state_sync": {
    "dump": {
      "ExternalStorage": {
        "location": {
          "Filesystem": {
            "root_dir": "state-parts"
          }
        }
      }
    }
  },

and other nodes should be configured to sync state from local filesystem.

"state_sync": {
    "sync": {
      "ExternalStorage": {
        "location": {
          "Filesystem": {
            "root_dir": "state-parts"
          }
        },
        "num_concurrent_requests": 25,
        "num_concurrent_requests_during_catchup": 5
      }
    }
  },

Related thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant