Contributing Resources
By connecting with a compatible browser to PeerMR as a worker or coordinator, you contribute resources that PeerMR uses for coordinator job processing and PMRFS. When a coordinator submits a job, it is queued for processing. If your browser meets the minimum requirements for the job and is currently not processing other PeerMR jobs, it may be selected to participate in the job. If selected, your browser will download the job and begin processing it in a web worker. During processing, your browser will use your computer's resources such as CPU, GPU, memory and network to help complete the job. When the job is complete, your browser will be given a score based on the resources it contributed to the job. At the end of the month, you will be paid for the contributions your browser(s) made to PeerMR.
Getting Paid
Payments to worker accounts are sent once a month. You will only receive a payment if you have at least one worker account that provided resources to jobs processed by PeerMR. The following are resource types that workers get paid for, all of these are aggregated on a monthly period across all of your workers and included in the payment:
PMRFS Storage per GB
, bytes are the smallest atomic unit.Cost per hour of CPU usage
, seconds are the smallest atomic unit.Cost per hour of WebGPU/WebGL
, seconds are the smallest atomic unit.Peer-to-peer network transfer per GB
, or the total ingress + egress per month, bytes are the smallest atomic unit. The "Payments" page in the dashboard will guide you through the onboarding process with Stripe to make sure you can get paid for your workers' contributions. The "Payments" page also has the latest pricing information with how much you earn for each resource.
Worker Scoring
Disconnections and other failures not related to bugs in PeerMR and/or coordinators' jobs are disruptive to the service. PeerMR adapts to these failures and finds replacement workers for failed workers. However, ensuring that your browser is connected to PeerMR is the ideal case. To help enforce this all workers are given a score per job that they participate in. These scores are aggregated for all jobs. During worker selection the workers with the highest scores are given preference. It is in your best interest to maximize the revenue of your workers by staying connected during the course of a job.
Browser Requirements
Chrome or Firefox are recommended browsers to use with PeerMR. At the time of writing Chrome has the best support for WebGPU so that is the recommended browser for jobs that require WebGPU which have the highest payouts.
Command Line Runner
The command line runner is a tool that allows you to connect a worker to PeerMR from the command line. This is useful for running workers on headless servers or for running workers in a Docker container. The tool is an executable that drives headless Chrome, a Chrome installation is required.
- Download the executable for your appropriate platform:
- Run the executable with the following flags:
./peermr-worker-chrome-0.0.1-darwin-arm64 -email=<worker_account_email> -data-dir=./worker-data