The taskqueue package uses PostgreSQL to manage tasks,
projects, and workers. This vignette shows how to install and configure
PostgreSQL on Ubuntu for HPC environments.
PostgreSQL should be installed on a server that all worker nodes can access.
PostgreSQL is chosen for taskqueue because:
Allow worker nodes to connect to PostgreSQL.
On all machines (daily working machines, login nodes and compute
nodes), add these environment variables to ~/.Renviron:
PGHOST=your.database.server.com
PGPORT=5432
PGUSER=taskqueue_user
PGPASSWORD=your_password
PGDATABASE=taskqueue_db
Edit .Renviron:
Restart R after editing .Renviron.
pg_hba.conf to your HPC network
only.Renviron:
chmod 600 ~/.Renviron