PRB Worker Deployment
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 programs
Then create a folder locally, and create a docker-compose document within it.
Document Editing
Edit the docker-compose document using the following commands:
After entering, you will access the document.
At this point, 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)
A parameter needs to be customized by yourself: In phala-pruntime, change βcores={core_num} to the number of cores of your machine, such as βcores=4.
After entering, complete the following steps to finish the text editing and save successfully.
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:
You can determine whether the synchronization is proceeding normally by checking the synchronized height and progress.
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.
Then Use this command to search the IP
The result will look like this:
You can find your public or private IP after each inet
.
Create a connection between Worker and PRB
For more details, please refer to the Using PRBv3
Last updated