Basic requirements
Apart from the reduced requirements for hard disk and memory space, the process of deploying a PRB worker is the same as deploying a solo worker. The only difference is that the PRB worker only needs to run pRuntime, while the solo worker needs to run node and pherry additionally. For details of solo worker deployment, please refer to: Solo worker deployment Therefore, the requirements for running a PRB worker are:- Support for SGX function
- Ubuntu 22.04.2 LTS system with a kernel of 5.13 and above
- 4 or more CPU cores
- 8GB memory
- 128GB NVME hard disk
Worker deployment
Preparations
After installing the OS, first install the necessary docker programsDocument Editing
Edit the docker-compose document using the following commands: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)
A parameter needs to be customized by yourself: In phala-pruntime, changeAfter entering, complete the following steps to finish the text editing and save successfully.--cores={core_num}
to the number of cores of your machine, such as--cores=4
.
Program Execution
Inside the newly created folder, run docker-compose, and the essential components for Solo worker will run successfully.Status Check
Enter the following command to get the most recent 100 lines of pRuntime log information:If you have changed the component name through customizing docker-compose.yml, please replace “phala-pruntime” to your customized name in the command.A typical pRuntime log in sync will look like this:
Configuration for adding worker to PRB server
All on-chain information configuration, including transaction accounts, pool master’s information, etc., can be done through the PRBv3 configuration interface. At this stage, you only need to record the IP of this worker to be filled into the PRB database.How to Find the Local IP Address:
Install the net-tools package.inet
.