Git Product home page Git Product logo

ebs_volumes's Introduction

EBS Volume Test

Simple Terraform script to deploy an EC2 with 5 EBS Volumes attached to test RAID-0 speeds.

The script deploys:

  • An EC2 instance in a private subnet (with a NAT Gateway), and enables login via System Manager - Session Manager to the instance.
  • EC2 instance will use the latest x86 Amazon Linux 2 AMI
  • 5 EBS volumes at the specified iops/type
  • Attaches the EBS volumes to the EC2 instance
  • Executes a System Manager - Run Command automation to setup RAID-0 and mounts the volumes to /mnt/raid.

Modifications

To modify the instance type, ebs type (gp3 vs. io2), ebs iops, change the values in variables.tf and run terraform apply again.

Warning

Script by default deploys r5n.16xlarge with five 32GB EBS volumes. None of these are free-tier, and will cost you money. Run with care, and remember to tf destroy when you're done.

Steps

On your local machine:

$ git clone https://github.com/keithrozario/ebs_volumes
$ cd ebs_volumes
$ tf apply --auto-approve
  • logon to the AWS console, and go to System Manager -> Session Manager
  • Select EBSTesting

Now on the console of System Manager, (replace N with the number of cores on the machine)

$ for i in `seq 1 $((N-1))`; do cpupower idle-set -d $i; done
$ sudo fio --directory=/mnt/raid --name fio_test_file --direct=1 --rw=randrw --bs=16k --size=1G --numjobs=16 --time_based --runtime=180 --group_reporting --norandommap --iodepth=50

You can run more test with fio (that's installed onto the machine)

ebs_volumes's People

Contributors

keithrozario avatar

Watchers

 avatar  avatar  avatar

Forkers

emelichev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.