resize: Resize a droplet by power off, snapshot, and create new...

View source: R/resize.R

resizeR Documentation

Resize a droplet by power off, snapshot, and create new droplet

Description

Resize a droplet by power off, snapshot, and create new droplet

Usage

resize(droplet, delete_original = TRUE, ...)

Arguments

droplet

A droplet, or something that can be coerced to a droplet by as.droplet.

delete_original

(logical) Delete original droplet. Default: TRUE

...

Named options passed on to droplet_create.

Details

Note that you can not resize a droplet while it is powered on. Thus, this function powers off your droplet, makes a snapshot, then creates a new droplet from that snapshot. We use droplet_wait in between these steps to wait for each to finish. You can optionally delete the original droplet.

Value

A droplet

Examples

## Not run: 
d <- droplet_create()
d # current size is 512mb
d %>% resize(size = "2gb")

## End(Not run)

analogsea documentation built on April 20, 2023, 1:34 a.m.