Skip to main content

R clusters on AWS

Project description

rcluster makes launching and accessing an R cluster on AWS simple and accessible.

This repository will:

  • Create a connection to your AWS account

  • Create and save an AMI with the software and configuration needed

  • Allow you to launch a manager and a stated number of worker nodes, automating the network connections between them and hosting a common NFS-based home folder under the default cluster user:

    • “/home/cluster” is shared between manager and all workers

    • “/home/cluster/hostfile” contains the IPs of accessible worker nodes and spare manager nodes, repeated based on the number of available worker cores

    • cluster user’s “.Rprofile” defines the R function defaultCluster() that automatically reference the hostfile to create a PSOCK-based cluster

After that, login to RStudio Server as normal on the manager, run defaultCluster(), and use the returned parallel cluster object with parLapply() and its peers.

Getting Started

First, you must create and save locally your AWS access key ID and secret access key (instructions).

Next, run rcluster-config from your command line. Note that this function will, by default, write your AWS access key and secret access key to a hidden folder in your user directory with no additional security.

There are currently three functions to launch and manage an R cluster:

  • rcluster - Launch an R cluster on AWS using the default configuration file. This function will open your default browser to the RStudio Server login page on the manager instance once it is live.

  • rcluster-open - Access an active R cluster (opens a new tab in your web browser to the RStudio Server instance, if available).

  • rcluster-terminate - Terminate all instances associated with your rcluster configuration.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rcluster-0.2.27.zip (17.2 kB view details)

Uploaded Source

Built Distribution

rcluster-0.2.27-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file rcluster-0.2.27.zip.

File metadata

  • Download URL: rcluster-0.2.27.zip
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rcluster-0.2.27.zip
Algorithm Hash digest
SHA256 f940ec08dce2312a14be24d1471364af303f9962ac2b36a8c125f85c107cd978
MD5 f2d80f2255dbf5c54f14cc8caf9db4af
BLAKE2b-256 7fec5544b0c53e7b4c3d990b5479ed42f77f6036424fd0c8bbbf18b26573eb36

See more details on using hashes here.

File details

Details for the file rcluster-0.2.27-py3-none-any.whl.

File metadata

File hashes

Hashes for rcluster-0.2.27-py3-none-any.whl
Algorithm Hash digest
SHA256 28f1cbeed5168dae426c18df824f566306e37e0ccf975faafa86717fcdb66dc7
MD5 9b1b8026f82fcc2369982f8cfc11185b
BLAKE2b-256 0599dc62f5df9b152274aa2a02a07b725d581580e0a679d0c1c7e532e570c15a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page