![]() gcloud compute instances create task2r-vm -zone=us-west1-b -machine-type=n1-standard-16 -image=debian-9-stretch-v20200420 -image-project=debian-cloud -preemptible -scopes= -tags=http-server,https-server As always, if your workflow is not fault tolerant, preemptible machines are not recommended.īelow is the gcloud command for creating my specific configuration (note that I have added a tag of http-server). ![]() That has personally never happened to me, but it is always a risk. Note: Of course, with a preemptible machine, there is always a risk that the instance will terminate while you are using it. Make sure you turn the VM off after using it, as keeping it on would increase that number. The cost of this machine came out to be $0.161 hourly - my specific task took an average of 3 hours to run once a week, totaling around $2 dollars a month. And if your workflow is fault-tolerant, preemptible machines can reduce your total expenditure significantly more.įor the purpose of this article, I will use an n1-standard-16 machine (16 vCPUs and 60 GB of memory), with a Debian GNU/Linux 9 (stretch) disk image and preemptibility configured. ![]() This pricing structure makes it feasible to run a large and intensive script for relatively cheap. The Google Cloud Platform (GCP) allows us to use Virtual Machines (VM) of various configurations and only pay for what we use. Running large, computationally intensive R scripts is often a very slow process how can we upgrade to a more powerful server, while keeping costs low? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |