Digital Ocean and Swap Space

Digital Ocean’s smallest droplet provides 512 MB RAM and 20G of SSD disk space. Frequently that is not enough RAM and too much disk space. A swap file could help with this. So I SSH-ed into my newly provisioned Ubuntu 14.04 droplet to see what the default swap file size was. And ta-da… there is no default swap file.

Gotta add swap file setup to Ansible. Here is a nice github repo that shows how. Of course, we want this to be idempotent. It looks like it is. I ran it a few times and can confirm that it is.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s