Skip to content

Latest commit

 

History

History
971 lines (587 loc) · 34.2 KB

readme.md

File metadata and controls

971 lines (587 loc) · 34.2 KB

Running VMs on Jetstream with OpenStack

Introduction

It is preferable to interface with the NSF Jetstream cloud via the Atmosphere web interface. However, this web dashboard is limited in two important ways:

  1. Users cannot obtain VMs with static IPs
  2. Users cannot open low number ports (i.e., < 1024) with the exception of ports 22, 80 and 443 which are open by default.

If you are in either of these scenarios, you have to interface with Jetstream via the OpenStack API. The problem here is that there is some initial setup which is somewhat painful but that you do only once. We provide a Docker container that hopefully eases some of the pain as it has the OpenStack command line tools and convenience scripts installed. After that setup, you can interface with the Jetstream OpenStack command line via the openstack.sh script which will launch a Docker container that will enable you to:

  • Create IP Numbers
  • Create VMs
  • Tear down VMs
  • Create Data Volumes
  • Attach Data Volumes
  • Open TCP ports

Note, you do not have to employ this Docker container. It is merely provided as a convenience. If you choose, you can go through the Jetstream OpenStack API instructions directly and ignore all that follows.

Install Docker (Do This Once)

Install Docker via the rocky-init.sh script because we will be interacting with the OpenStack Jetstream API via Docker. This step should make our lives easier.

Clone the science-gateway Repository (Do This Once)

We will be making heavy use of the Unidata/science-gateway git repository.

git clone https://github.com/Unidata/science-gateway

Pull or Build Docker Container (Do This Once)

cd science-gateway/openstack

At this point, you can either pull or build the science-gateway container:

Pull Container

docker pull unidata/science-gateway

Build Container

docker build -t unidata/science-gateway .

API Setup

We will be using the Jetstream API directly and via convenience scripts.

Download and Edit openrc.sh (Do This Once)

The next part involves downloading the openrc.sh file to work with our OpenStack allocation. You will have first login to the OpenStack TACC dashboard which will necessitate a password reset. Unfortunately, this login is not the same as the Jetstream Atmosphere web interface login. Also, follow the usual password advice of not reusing passwords as this password will end up in your OpenStack environment and you may want to add it in the openrc.sh file for convenience.

Download your openrc.sh file from the IU (not TACC) dashboard at https://iu.jetstream-cloud.org and move it to the openstack/bin directory.

  • See "Use the Horizon dashboard to generate openrc.sh" in the Jetstream API instructions.
  • From the IU dashboard, navigate to Project, API Access, then select Download OpenStack RC File at top-right.
  • Select OpenStack RC File (Identity API 3) , which will download as a script named something like TG-ATM160027-openrc.sh. You should rename it to openrc.sh.
  • Move this file to bin/openrc.sh (e.g., /home/jane/science-gateway/openstack/bin/openrc.sh).

Edit bin/openrc.sh Password (Optional)

For convenience, you may wish to add your password to the openrc.sh file. Again, follow the usual advice of not reusing passwords as this password will end up in your OpenStack environment.

Edit the openrc.sh file and the supply the TACC resource OS_PASSWORD you reset earlier:

export OS_PASSWORD="changeme!"

Comment out

# echo "Please enter your OpenStack Password: "
# read -sr OS_PASSWORD_INPUT

Fire Up Container and More Setup

openstack.sh

Start the unidata/science-gateway container with openstack.sh convenience script. The script take a -o argument for your openrc.sh file and a -s argument for the directory containing or will contain your ssh keys (e.g., /home/jane/science-gateway/openstack/ssh or a new directory that will contain contain your Jetstream OpenStack keys that we will be creating shortly). Both arguments must be supplied with fully qualified path names.

chmod +x openstack.sh
./openstack.sh -o </path/to/your openrc.sh file> -s </path/to/your/ssh directory>

Subsequently, when interacting with Jetstream via OpenStack API now and in the future, you will be using this container to create VMs, mount volumes, etc.

A wrapper script run.sh is provided, which assumes that directories bin/ and ssh/ exist in the working directory, and that bin/ contains openrc.sh:

./run.sh

You can use this run.sh script as a template for you to parameterize, perhaps for alternative openrc.sh files.

Create ssh Keys (Do This Once)

This step of ssh key generation is important. In our experience, we have not had good luck with preexisting keys. You may have to generate a new one. Be careful with the -f argument below. We are operating under one allocation so make sure your key names do not collide with other users. Name your key something like <some short somewhat unique id>-${OS_PROJECT_NAME}-api-key. Then you add your public key the TACC dashboard with openstack keypair create.

cd ~/.ssh
ssh-keygen -b 2048 -t rsa -f <key-name> -P ""
openstack keypair create --public-key <key-name>.pub <key-name>
# go back to home directory
cd

The ssh directory was mounted from outside the Docker container you are currently running. Your public/private key should be saved there. Don't lose it or else you may not be able to delete the VMs you are about to create.

Testing Setup

At this point, you should be able to run openstack image list which should yield something like:

ID Name
fd4bf587-39e6-4640-b459-96471c9edb5c AutoDock Vina Launch at Boot
02217ab0-3ee0-444e-b16e-8fbdae4ed33f AutoDock Vina with ChemBridge Data
b40b2ef5-23e9-4305-8372-35e891e55fc5 BioLinux 8

If not, check your setup.

Working with Jetstream API to Create VMs

At this point, we are past the hard work. You will employ the unidata/science-gateway container accessed via the openstack.sh convenience script to

  • Create IP Numbers
  • Create VMs
  • Tear down VMs
  • Create Data Volumes
  • Attach Data Volumes

If you have not done so already:

./openstack.sh -o </path/to/your openrc.sh file> -s </path/to/your/ssh directory>

IP Numbers

We are ready to fire up VMs. First create an IP number which we will be using shortly:

openstack floating ip create public
openstack floating ip list

or you can just openstack floating ip list if you have IP numbers left around from previous VMs.

Boot VM

Create VM

Now you can boot up a VM with something like the following command:

boot.sh -n unicloud -k <key-name> -s m1.medium -ip 149.165.157.137

The boot.sh command takes a VM name, ssh key name defined earlier, size, and IP number created earlier, and optionally an image UID which can be obtained with openstack image list | grep -i featured. Note that these feature VMs are recommended by Jetstream staff, and have a default user corresponding to the Linux distribution flavor. For example,

$ openstack image list | grep -i featured

may yield something like:

| 45405d78-e108-48bf-a502-14a0dab81915 | Featured-RockyLinux8 | active |
| e85293e8-c9b0-4fc9-88b6-e3645c7d1ad3 | Featured-Ubuntu18    | active |
| 49d5e275-23d6-44b5-aa60-94242d92caf1 | Featured-Ubuntu20    | active |
| e41dc578-b911-48c6-a468-e607a8b2c87c | Featured-Ubuntu22    | active |

The Rocky VMs will have a default of user rocky and the Ubuntu VMs will have a default user of ubuntu.

Also see boot.sh -h and openstack flavor list for more information.

SSH Into New VM

At this point, you can ssh into our newly minted VM. Explicitly providing the key name with the ssh -i argument and a user name (e.g., rocky) may be important:

ssh -i ~/.ssh/<key-name> [email protected]

At this point, you might see

ssh: connect to host 149.165.157.137 port 22: No route to host

Usually waiting for a few minutes resolves the issue. If you are still have trouble, try openstack server stop <vm-uid-number> followed by openstack server start <vm-uid-number>.

Adding Additional SSH Keys (Optional)

Once you are in your VM, it is probably best to add additional ssh public keys into the authorized_keys file to make logging in easier from whatever host you are connecting from.

Create and Attach Data Volumes

You can create data volumes via the OpenStack API. As an example, here, we will be creating a 750GB data volume. You will subsequently attach the data volume:

openstack volume create --size 750 data

openstack volume list && openstack server list

openstack server add volume <vm-uid-number> <volume-uid-number>

You will then be able to log in to your VM and mount your data volume with typical Unix mount, umount, and df commands. If running these command manually (not using the mount.sh script) you will need to run kfs.ext4 /dev/sdb to create an ext4 partition using the entire disk.

There is a mount.sh convenience script to mount uninitialized data volumes. Run this script as root or sudo on the newly created VM not from the OpenStack CL.

Ensure Volume Availability Upon Machine Restart

You want to ensure data volumes are available when the VM starts (for example after a reboot). To achieve this objective, you can run this command which will add an entry to the /etc/fstab file:

echo UUID=2c571c6b-c190-49bb-b13f-392e984a4f7e /data ext4 defaults 1 1 | tee \
    --append /etc/fstab > /dev/null

where the UUID represents the ID of the data volume device name (e.g., /dev/sdb) which you can discover with the blkid (or ls -la /dev/disk/by-uuid) command. askubuntu has a good discussion on this topic.

Opening TCP Ports

Opening TCP ports on VMs must be done via OpenStack with the openstack security group command line interfaces. In addition, this can be For example, to create a security group that will enable the opening of TCP port 80:

secgroup.sh -n my-vm-ports -p 80

Once the security group is created, you can attach multiple TCP ports to that security group with openstack security group commands. For example, here we are attaching port 8080 to the global-my-vm-ports security group.

openstack security group rule create global-my-vm-ports --protocol tcp --dst-port 8080:8080 --remote-ip 0.0.0.0/0

Finally, you can attach the security group to the VM (e.g., my-vm) with:

openstack server add security group my-vm global-my-vm-ports

Dynamic DNS and Recordsets

JetStream2 handles dynamic DNS differently than JetStream1; domain names will look like <instance-name>.<project-ID>.projects.jetstream-cloud.org. In addition, domain names are assigned automatically when a floating IP is assigned to a VM which is on a network with the dns-domain property set.

To set this property when manually creating a network, run the following openstack command. Note the (necessary) trailing "." at the end of the domain:

openstack network create <new-network-name> --dns-domain <project-ID>.projects.jetstream-cloud.org.

To set this property on an existing network:

openstack network set --dns-domain <project-ID>.projects.jetstream-cloud.org. <network-name>

When creating a new VM using boot.sh, the VM is added to the unidata-public network, which should already have the dns_domain property set. To confirm this for any network, run a:

openstack network show <network>

If you wanted to manually create/edit domain names, do so using the openstack recordset commands. Note that you must have python-designateclient installed.

# See the current state of your project's DNS zone
# Useful for getting IDs of individual recordsets
openstack recordset list <project-ID>.projects.jetstream-cloud.org.

# More closely inspect a given recordset
openstack recordset show <project-ID>.projects.jetstream-cloud.org. <recordset-ID>

# Create new DNS record
openstack recordset create \
  --record <floating-ip-of-instance> \
  --type A \
  <project-ID>.projects.jetstream-cloud.org. \
  <your-desired-hostname>.<project-ID>.projects.jetstream-cloud.org.

# Remove an unused record (because you created a new one for it, or otherwise)
openstack recordset delete <project-ID>.projects.jetstream-cloud.org. <old-recordset-ID>

Tearing Down VMs

umount External Volumes

There is also a teardown.sh convenience script for deleting VMs. Be sure to umount any data volumes before deleting a VM. For example on the VM in question,

umount /data

You may have to verify, here, that nothing is writing to that data volume such as Docker or NFS (e.g., docker-compose stop, sudo service nfs-kernel-server stop), in case you get errors about the volume being busy.

In addition, just to be on the safe side, remove the volume from the VM via OpenStack:

openstack volume list && openstack server list

openstack server remove volume <vm-uid-number> <volume-uid-number>

Tear Down

Then finally from the OpenStack CL,

teardown.sh -n unicloud -ip 149.165.157.137

For now, you have to supply the IP number even though the script should theoretically be smart enough to figure that out.

Swapping VMs

Cloud-computing promotes the notion of the throwaway VM. We can swap in VMs that will have the same IP address and attached volume disk storage. However, before swapping out VMs, we should do a bit of homework and careful preparation so that the swap can go as smoothly as possible.

Prerequisites

Create the VM that will be swapped in. Make sure to:

  • initialize the new VM with the rocky-init.sh script
  • build or fetch relevant Docker containers
  • copy over the relevant configuration files. E.g., check with git diff and scrutinize ~/config
  • check the crontab with crontab -l
  • beware of any 10.0 address changes that need to be made (e.g., NFS mounts)
  • consider other ancillary stuff (e.g., check home directory, docker-compose files)
  • think before you type

/etc/fstab and umount

Examine /etc/fstab to find all relevant mounts on "old" VM. Copy over fstab to new host (the UUIDs should remain the same but double check). Then umount mounts.

OpenStack Swap

From the OpenStack command line, identify the VM IDs of the old and new VM as well as any attached external volume ID:

openstack volume list && openstack server list

Then swap out both the IP address as well as zero or more external data volumes with the new server.

openstack server remove floating ip ${VM_ID_OLD} ${IP}
openstack server add floating ip ${VM_ID_NEW} ${IP}

for i in ${VOLUME_IDS}
do
     openstack server remove volume ${VM_ID_OLD} $i
     openstack server add volume ${VM_ID_NEW} $i
done

/etc/fstab and mount

Issue blkid (or ls -la /dev/disk/by-uuid) command to find UUIDs that will be inserted into the /etc/fstab. Lastly, mount -a.

Building a Kubernetes Cluster

It is possible to create a Kubernetes cluster with the Docker container described here. We employ Andrea Zonca's modification of the kubespray project. Andrea's recipe to build a Kubernetes cluster on Jetstream with kubespray is described here. These instructions have been codified with the kube-setup.sh and kube-setup2.sh scripts.

Make sure to run both kubectl and helm from the client and ssh tunnel (ssh ubuntu@$IP -L 6443:localhost:6443) into the master node as described in the instructions.

Define cluster with cluster.tfvars

First, set the CLUSTER name environment variable (named "k8s-unidata", for example) for the current shell and all processes started from the current shell. It will be referenced by various scripts. This step is done for you by supplying the --name argument to jupyterhub.sh and subsequently z2j.sh (see here). However, if you want to do this manually, run this from within the docker container launched by jupyterhub.sh:

export CLUSTER="$CLUSTER"

Then, modify ~/jetstream_kubespray/inventory/kubejetstream/cluster.tfvars to specify the number of nodes in the cluster and the size (flavor) of the VMs. For example,

# nodes
number_of_k8s_nodes = 0
number_of_k8s_nodes_no_floating_ip = 2
flavor_k8s_node = "4"

will create a 2 node cluster of m1.large VMs. See Andrea's instructions for more details.

This spreadsheet will help you determine the size of the cluster based on number of users, desired cpu/user, desired RAM/user. Duplicate it and adjust it for your purposes.

openstack flavor list will give the IDs of the desired VM size.

Also, note that cluster.tfvars assumes you are building a cluster at the TACC data center with the sections pertaining to IU commented out. If you would like to set up a cluster at IU, make the necessary modifications located at the end of cluster.tfvars.

IMPORTANT: once you define an image (e.g., image = JS-API-Featured-Ubuntu18-May-22-2019) or a flavor size (e.g., flavor_k8s_master = 2), make sure you do not subsequently change it after you have run Terraform and Ansible! This scenario can happen when adding cluster nodes and the featured image no longer exists because it has been updated. If you must change these values, you'll first have to preserve your application data and do a gentle - IP preserving - cluster tear down before rebuilding it and re-installing your application.

Enable Dynamic DNS with cluster.tfvars

JetStream2 handles dynamic DNS differently than JetStream1; domain names will look like <instance-name>.<project-ID>.projects.jetstream-cloud.org. In addition, domain names are assigned automatically when a floating IP is assigned to a VM which is on a network with the dns-domain property set.

To configure terraform to set this property, add/edit the line below in cluster.tfvars.

# Uncomment below and edit to set dns-domain network property
# network_dns_domain = "<project-ID>.projects.jetstream-cloud.org."

Note the (necessary) trailing "." at the end of the domain.

After running the terraform scripts (see the next section), you can ensure that the dns name was correctly assigned to your cluster's master node with:

nslookup <instance-name>.<project-ID>.projects.jetstream-cloud.org

Create VMs with kube-setup.sh

At this point, to create the VMs that will house the kubernetes cluster run

kube-setup.sh

This script essentially wraps Terraform install scripts to launch the VMs according to cluster.tfvars.

Once, the script is complete, let the VMs settle for a while (let's say ten minutes). Behind the scenes dpkg is running on the newly created VMs which can take some time to complete.

Check Status of VMs

Check to see the status of the VMs with:

openstack server list | grep $CLUSTER

and

watch -n 15 \
     ansible -i $HOME/jetstream_kubespray/inventory/$CLUSTER/hosts -m ping all

Ansible Timeouts

The ansible script works via sudo. That escalation can lead to timeout errors if sudo is not fast enough. For example:

fatal: [gpu-test3-1]: FAILED! => {"msg": "Timeout (12s) waiting for privilege escalation prompt: "}
fatal: [gpu-test3-k8s-node-nf-1]: FAILED! => {"msg": "Timeout (12s) waiting for privilege escalation prompt: "}

In that case add

timeout = 60
gather_timeout = 60

under the [default] tag in jetstream_kubespray/ansible.cfg.

Steps if VMs are Unhappy

If the check status process did not go smoothly, here are some thing you can try to remedy the problem.

If you see any errors, you can try to wait a bit more or reboot the offending VM with:

openstack server reboot <vm>

or you can reboot all VMs with:

openstack server list | grep ${CLUSTER} | \ awk -F'|' '{print $2}' | \
    tr -d "[:blank:]"  | xargs -I {} -n1 openstack server reboot {}

If VMs stuck in ERROR state. You may be able to fix this problem with:

cd ~/jetstream_kubespray/inventory/$CLUSTER/
sh terraform_apply.sh

or you can destroy the VMs and try again

cd ~/jetstream_kubespray/inventory/$CLUSTER/
sh terraform_destroy.sh

Large Clusters with Many VMs

In the event of deploying a large cluster with many VMs, during the invocation of the Ansible playbook, there will be parallel downloading of images from DockerHub. This will sometimes yield an error message saying that we reached our download limit of 100 anonymous downloads over six hours. In order to preempt this problem, modify jetstream_kubespray/k8s_install.sh and append -e '{"download_run_once":true}' i.e.,

ansible-playbook --become -i inventory/$CLUSTER/hosts cluster.yml -b -v --limit "${CLUSTER}*" -e '{"download_run_once":true}'

This modified command will be run in the next kube-setup2.sh step.

Also see Large deployments of K8s.

Broadcasting Commands With Ansible

With the help of Ansible, it is possible to "broadcast" a command to all VMs in a cluster. For example, to run the Unix top command on all VMs, you can:

ansible all --limit ${CLUSTER}* -m command -a "sh -c 'top -b -n 1 | head -n 9'" -i inventory/$CLUSTER/hosts

Theoretically, there is no need to ssh into each individual VM on a cluster to issue a command in the situation where you want a package installed, for example.

Remove Bloat and Unneeded Software With remove-bloat.sh

Ubuntu VMs come with a lot of software and services that are unneeded for JupyterHub clusters (e.g., Firefox, CUPS, for printing services). The following commands with run a couple of ansible playbooks to perform some cleanup in that respect.

remove-bloat.sh

Install Kubernetes with kube-setup2.sh

Next, run

kube-setup2.sh

If seeing errors related to dpkg, wait and try again or try these steps.

Run kube-setup2.sh again.

Tie up Loose Ends With kube-setup3.sh

Next, run

kube-setup3.sh <optional email>

which ensures ssh keys are distributed on the cluster. Finally, it inserts an email address in files located ~/jupyterhub-deploy-kubernetes-jetstream/setup_https/ which will be necessary later on for the retrieval letsencrypt SSL certificates.

Check Cluster

Ensure the Kubernetes cluster is running:

kubectl get pods -o wide --all-namespaces

and get a list of the nodes:

kubectl get nodes --all-namespaces

Adding Nodes to Cluster

! THINK before you type here because if you scale with an updated Ubuntu VM ID with respect to what is running on the cluster, you may wipe out your cluster ! See the GitHub issue about this topic.

You can augment the computational capacity of your cluster by adding nodes. In theory, this is just a simple matter of adding worker nodes in jetstream_kubespray/inventory/$CLUSTER/cluster.tfvars followed by running:

cd ~/jetstream_kubespray/inventory/$CLUSTER/
sh terraform_apply.sh

Wait a bit to allow dpkg to finish running on the new node(s). Check the VMS. Next:

cd ~/jetstream_kubespray
sleep 1000; sh k8s_scale.sh

Check the cluster.

Removing Nodes from Cluster

It is also possible to remove nodes from a Kubernetes cluster. First see what nodes are running:

kubectl get nodes --all-namespaces

which will yield something like:

NAME                     STATUS   ROLES    AGE   VERSION
k8s-unidata-k8s-master-1    Ready    master   42h   v1.12.5
k8s-unidata-k8s-node-nf-1   Ready    node     42h   v1.12.5
k8s-unidata-k8s-node-nf-2   Ready    node     41h   v1.12.5

From the Kubernetes client:

cd ~/jetstream_kubespray
sh k8s_remove_node.sh k8s-unidata-k8s-node-nf-2

followed by running:

teardown.sh -n  k8s-unidata-k8s-node-nf-2

from the openstack command line.

If tearing down many nodes/VMs, you can try something like:

for i in {3..10}; do sh k8s_remove_node.sh k8s-unidata-k8s-node-nf-$i; done

for i in {3..10}; do teardown.sh -n k8s-unidata-k8s-node-nf-$i; done

Check the cluster.

Note, you can make the tear down process go faster by not having k8s_remove_node.sh prompt you ever time it removes a node. This can be done by editing the k8s_remove_node.sh script and appending:

-e skip_confirmation=true

so that the script looks like:

ansible-playbook --become -i inventory/$CLUSTER/hosts remove-node.yml -b -v --extra-vars "node=$1" -e skip_confirmation=true

Sshing into Cluster Node

It is occasionally necessary to jump on cluster worker nodes to install a package (e.g., nfs-common) or to investigate a problem. This can be easily accomplished with

ssh -J ubuntu@${IP} ubuntu@<worker-private-ip>

from the Kubernetes client machine.

A convenience function has been added to the .bashrc file included in the science-gateway docker image to quickly jump to worker node N without having to first query kubectl get nodes -o wide for the private IP.

Simply run worker <N> from within a cluster's associated control container to ssh jump from the main node of the cluster to the N'th worker node.

Tearing Down the Cluster

Preparation

As a matter of due diligence and for future possible forensic analysis, you may have to capture the state of the main node VM by backing up the disk to an internal Unidata location (e.g., fserv). Work with Unidata system administrator staff to determine where that place should be. Use the remote_sync_backup.sh script from the Unidata host to save that information, e.g.,

./remote_sync_backup.sh ubuntu k8s-bsu-jhub /raid/share/jetstream/jupyterhub_backups

Without Preserving IP of Master Node

Once you are finished with your Kubernetes cluster you can completely wipe it out (think before you type and make sure you have the cluster name correct):

cd ~/jetstream_kubespray/inventory/$CLUSTER/
sh terraform_destroy.sh

With Preserving IP of Master Node

You can also tear down your cluster but still preserve the IP number of the master node. This is useful and important when the IP of the master node is associated with a DNS name that you wish to keep associated.

cd ~/jetstream_kubespray/inventory/$CLUSTER/
sh terraform_destroy_keep_floatingip.sh

Subsequently, when you invoke terraform_apply.sh, the master node should have the same IP number as before.

Note: AFTER invoking terraform_apply.sh remove the ~/.ssh/known_hosts line that corresponds to the old master node! This can easily be achieved by sshing into the new master node which will indicate the offending line in ~/.ssh/known_hosts. This will avoid headaches when invoking kube-setup2.sh.

Monitoring the Cluster with Grafana and Prometheus

Grafana is a monitoring engine equipped with nice dashboards and fancy time-series visualizations. Prometheus allows for monitoring of Kubernetes clusters.

Installing these monitoring technologies is fairly straightforward and described here.

Patching Master Node

You'll want to keep the master node security patched as it will have a publicly accessible IP number attached to a well known DNS name. If you see packages out of date upon login, as root user:

 apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade \
     && apt autoremove -y
reboot -h now

GPU Enabled Clusters

In order to build a GPU enabled cluster, refer to Andrea's documentation. jupyterhub.sh takes -g flag to help facilate this option.

There is an image you will need to pull:

docker pull unidata/science-gateway-gpu

or build with:

docker build -t unidata/science-gateway-gpu -f Dockerfile.gpu .

Pay special attention to the cluster.tfvars to select VMs that have GPU hardware.

Appendix

Jetstream2 VM Flavors

| ID | Name | RAM | Disk | VCPUs | Is Public | | 1 | m3.tiny | 3072 | 20 | 1 | True | | 10 | g3.small | 15360 | 60 | 4 | False | | 11 | g3.medium | 30720 | 60 | 8 | False | | 12 | g3.large | 61440 | 60 | 16 | False | | 13 | g3.xl | 128000 | 60 | 32 | False | | 14 | r3.large | 512000 | 60 | 64 | False | | 15 | r3.xl | 1024000 | 60 | 128 | False | | 2 | m3.small | 6144 | 20 | 2 | True | | 3 | m3.quad | 15360 | 20 | 4 | True | | 4 | m3.medium | 30720 | 60 | 8 | True | | 5 | m3.large | 61440 | 60 | 16 | True | | 7 | m3.xl | 128000 | 60 | 32 | True | | 8 | m3.2xl | 256000 | 60 | 64 | True |