Some tips for GCE

I am compiling a small list of tricks for Google Compute Engine and the programming languages I use frequently: R and Julia. I wanted to put together something that was incredibly beginner-friendly --- both for others and myself.

I have a short guide on how to integrate Google Cloud Storage with Rstudio deployed on a GCE instance. These notes are a direct extension of what I learned in Grant McDermott's class, and I strongly suggest you head over to his notes for a more in-depth look at the basics of cloud computing. I also have included a shell script that sets up Jupyter with a Julia kernel installed. Lastly, I have included a handy script that checks to see if the desired output from one of your program exists in a storage bucket. If it exists, it shuts the instance down. I am very new to these things, so suggestions are always welcome.

  • Rstudio + Google Cloud Storage + GCE: Notes. Script.

  • Jupyter + Julia on GCE Instance: Deploy Jupyter with a Julia kernel installed on a GCE VM -- Script

  • Automatically shut-down your instance when done: Check a Cloud Storage bucket every X minutes (or hours/days) for output from your program (using cron, or something similar. When it finds the desired output (e.g your script is done running), shut the instance down. Script.

Suggestions are always welcome.