Headers-cache deployment
What's the Header-cache
The headers-cache is a component that stores the header of each block. The block header includes important information such as previous block hash, timestamp, nonce, and so on, representing all the transactions in the block.
Caching block headers can improve efficiency when downloading and synchronizing with the network, once you are using a pherry or PRB to sync the pRuntime, add a headers-cache between them will significantly reduce the sync period.
Headers-cache requirements
2GB of memory
200GB NVME - for Phala headers-cache; 500GB NVME for Khala headers-cache
A completely synced full node is necessary
Steps for deployment
Preparations
Create a folder locally, and create a docker-compose document within it.
Document Editing
Use the following command to edit the docker-compose.yml document.
Enter a
and you will start editing the document. Paste the following content into the document. (Please note that the file content remains consistent and the indentation alignment of each line is consistent with this document)
After entering, complete the following steps to finish the text editing and save successfully.
Program Execution
Inside the newly created folder headers-cache
, run the docker-compose, and the essential components for PRB will run successfully.
Last updated