4

I have set up a private network. I am writing history archive in local server as of now since it is in dev phase.

I have noticed that the archive is missing few ledger/bucket as a result of which if I add new node or restart any other existing node, the node is unable to sync.

Following are my queries:

1.Is there any way I can make sure the history is not missing any data?

  1. How do I maintain network? Any particular fields I should check upon so that it runs smooth?

  2. If the archive is missing some data, how can i recover? Do we have any documentation on these?

  3. Why is few data missing from archive?

1
  • Don't have any knowledge or experience but there is a stellar-archivist tool for checking archives, maybe that helps.
    – sui
    Mar 22, 2019 at 10:17

1 Answer 1

1

I will try to answer with what I understand from setting up a production ready private network:

  1. Make sure you setup your history so that it is available to the local core and other cores in you network. From here:

A common configuration is for each peer in a group to have a single history archive that it knows how to write to, while also knowing how to read from all archives in the group.

I translated this to mean that each core in my network should put and get locally. That history archive is then also served over HTTP so it is available to other core's. Since all of the core's in our private network are full validators this makes sense to me and provides plenty of redundancy.

  1. I am planning on using the outputs of stellar-core http-command info (in particular the state field) and stellar-core http-command quorum to ensure everything is in order. These are also available using curl from localhost (or elsewhere on your network if you have set the configuration option PUBLIC_HTTP_PORT=true

3 & 4. I believe this is the same problem I had when configuring and testing a private network. You probably haven't setup and/or persisted (you did not mention if core is installed on bare metal/VM/container) the buckets correctly. See Graydon's answer here.

If you are using Docker for example you need to persist the following:

  • Database
  • History Archive
  • BUCKET_DIR_PATH

If you do this on each core and also serve the History Archive to the other cores in the validating group you should not lose any data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.