Basic Requirements
To use PRBv3 (Runtime Bridge) for worker deployment, you need at least 1 additional device as the management server. The device connection is shown in the following diagram:The node service and PRB service can be run on the same server as needed (depending on the number of workers and server performance).
Server Configuration Requirements
The PRB management server needs to run 2 main components, Node and PRB. The requirements for each component are as follows:Components | RAM Space | Harddisk Space | Remark |
---|---|---|---|
Node | 4GB+ | 900GB+ NVME | harddisk requirement increasing, 2TB will be best |
PRB | 4GB+ | 0 | RAM requirement depends on worker number, 16GB+ will be better |
Totally | 32GB+ | 2TB | - |
You also need to ensure good network connectivity between the management server and PRB workers, and the network of the PRB management server needs to have more than 10TB of traffic space per month.
PRB Worker requirements
PRBβs worker only needs to run a pRuntime, so the requirements for running a PRB worker are:- Support for SGX features
- Ubuntu 22.04.2 LTS operating system and a system kernel of 5.13 or higher
- At least 4 CPU cores
- 8GB of memory
- 128GB NVME
PRB Components Deployment
Preparations
After installing the Ubuntu OS, first install the necessary Docker program.- prb-deployment folder
- docker-compose.yml
- wm.yml
- prb-wm-data folder
- ds.yml
Document Editing
You need to edit a total of 3 documents: the main PRB docker-compose.yml file; the wm.yml file (worker manager); and the ds.yml file (data source). First is the main PRB docker-compose file. In this document, the following code has been added to the configuration of the node-related components. If you donβt need to run the node service and the PRB service on the same server, you can optionally delete the unnecessary parts. Use the following command to edit the docker-compose.yml document.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
to start editing the document and paste the following content into the document.
a
to start editing the document and paste the following content into the document.
There are 2 parameters here that need to be user-defined:
ws://{node-ip}:9945
& ws://{node-ip}:9944
You need to replace {node-ip}
with the IP of the server where the node is located. If you are running the node and PRB on the same server, use your own ip there.If you donβt need the PRBv3 connect to the headers-cache, delete 2 parts of:!HeadersCacheHttpSource
endpoint: http://{headerscache-ip}:21111
Program Execution
Inside the newly created folderprb-deployment
, run the docker-compose, and the essential components for PRB will run successfully.