SETTING UP, CONFIGURING AND BENCHMARKING EC2

Similar documents
Empirical Performance Analysis of High Performance Computing Benchmarks Across Variations in Cloud Computing

Ross Whetten, North Carolina State University

Comsol Multiphysics. Running COMSOL on the Amazon Cloud VERSION 4.4

Installation of Informatica Services on Amazon EC2

SelectSurvey.NET AWS (Amazon Web Service) Integration

AWS plug-in. Qlik Sense 3.0 Copyright QlikTech International AB. All rights reserved.

Launching the SafeArchive Amazon Machine Instance

AWS Remote Access VPC Bundle

Infosys Information Platform. How-to Launch on AWS Marketplace Version 1.2.2

Immersion Day. Getting Started with Linux on Amazon EC2

Immersion Day. Getting Started with Linux on Amazon EC2

Sample Spark Web-App. Overview. Prerequisites

Nagios Core AMI Setup Guide

Hadoop Based Data Intensive Computation on IAAS Cloud Platforms

Virtual Machine Connection Guide for AWS Labs

AWS Setup Guidelines

PCoIP Connection Manager for Amazon WorkSpaces

Deploy and Secure an Internet Facing Application with the Barracuda Web Application Firewall in Amazon Web Services

QUICK START: SYMANTEC ENDPOINT PROTECTION FOR AMAZON EC2

Optiwave AWS User Guide

certbot-dns-route53 Documentation

Step-by-Step Deployment Guide Part 1

Tutorial 1. Account Registration

Lab 2 Third Party API Integration, Cloud Deployment & Benchmarking

Amazon Web Services Hands on EC2 December, 2012

PCoIP Connection Manager for Amazon WorkSpaces

SUREedge Migrator Installation Guide for Amazon AWS

Sputnik Installation and Configuration Guide

OnCommand Cloud Manager 3.2 Deploying and Managing ONTAP Cloud Systems

CHEF MANUAL. Installation and Configuration. SGT, Inc. Innovation Technology Center

Compute Cluster Server Lab 1: Installation of Microsoft Compute Cluster Server 2003

How to Setup Total Application Security

8.0 Help for Community Managers Release Notes System Requirements Administering Jive for Office... 6

Running Kmeans Spark on EC2 Documentation

Installation and Configuration Document

QUICK START: VERITAS STORAGE FOUNDATION BASIC FOR AMAZON EC2

Installation and User Guide

Guide for Attempting an HDP Certification Practice Exam. Revision 2 Hortonworks University

Amazon Web Services EC2 Helix Server

Eucalyptus User Guide

Cloud Help for Community Managers...3. Release Notes System Requirements Administering Jive for Office... 6

Tutorial: Uploading your server build

USER MANUAL. SuitePort - SuiteCRM Customer Portal for Joomla TABLE OF CONTENTS. Version: 1.1.0

EDB Postgres Enterprise Manager EDB Ark Management Features Guide

LB Cache Quick Start Guide v1.0

Installing Oxwall completely in Amazon Cloud

EDB Postgres Enterprise Manager EDB Ark Management Features Guide

AWS Integration Guide. Full documentation available at

AWS ELEMENTAL LIVE TO AWS ELEMENTAL MEDIALIVE TO AWS ELEMENTAL MEDIAPACKAGE

Project Presentation

Immersion Day. Getting Started with Windows Server on. Amazon EC2. Rev

USER MANUAL. SuiteCRM Customer Portal for Joomla TABLE OF CONTENTS. Version: 2.0

AWS Quick Start Guide. Launch a Linux Virtual Machine Version

THE DEFINITIVE GUIDE FOR AWS CLOUD EC2 FAMILIES

VMware AirWatch Integration with RSA PKI Guide

HySecure Quick Start Guide. HySecure 5.0

Swift Web Applications on the AWS Cloud

Testbed-12 TEAM Engine Virtualization User Guide

Pulse Connect Secure Virtual Appliance on Amazon Web Services

MICROSTRATEGY PLATFORM ON AWS MARKETPLACE. Quick start guide to use MicroStrategy on Amazon Web Services - Marketplace

Homework #7 Amazon Elastic Compute Cloud Web Services

Confluence Data Center on the AWS Cloud

Orbital Integrator System Manual

ForeScout CounterACT. (AWS) Plugin. Configuration Guide. Version 1.3

271 Waverley Oaks Rd. Telephone: Suite 206 Waltham, MA USA

Amazon Elastic Compute Cloud

Sticky Notes for Cognos Analytics by Tech Data BSP Software

EDB Ark. Administrative User s Guide. Version 3.1

Amazon Web Services Monitoring Integration User Guide

Phone Inventory 1.1 (1012)

DOCUMENT TITLE. FFMPEG RTP TO AWS ELEMENTAL MEDIALIVE TO AWS ELEMENTAL MEDIAPACKAGE Workflow Example

User manual archiving

Getting Started with Amazon Web Services

Netflix OSS Spinnaker on the AWS Cloud

Datathon 2018 Connecting to MicroStrategy on AWS Cloud

AWS Landing Zone. AWS User Guide. November 2018

Bitnami Apache Solr for Huawei Enterprise Cloud

CloudLink Amazon Web Services Deployment Guide

DataMan. version 6.5.4

Part2: Let s pick one cloud IaaS middleware: OpenStack. Sergio Maffioletti

Resizing your AWS VPC NAT Instance to a Lower Cost Instance Type

Immersion Day. Getting Started with Windows Server on Amazon EC2. June Rev

BriCS. University of Bristol Cloud Service Simulation Runner. User & Developer Guide. 1 October John Cartlidge & M.

Filtering - Zimbra

Load Balancing FreePBX / Asterisk in AWS

Cisco Mobile Skill Manager

Amazon Elastic Compute Cloud

0. Introduction On-demand. Manual Backups Full Backup Custom Backup Store Your Data Only Exclude Folders.

Ftp Command Line Manual Windows User Password

InstaDEX Master Wallet and Masternode Deployment Guide with Windows VPS

AD Sync Client Install Guide. Contents

Install Part I - Virtual - Install and Power-on the SecureAuth IdP 9.0 Virtual Appliance

DOCUMENT TITLE. FFMPEG RTMP TO AWS ELEMENTAL MEDIALIVE TO AWS ELEMENTAL MEDIAPACKAGE Workflow Example

<Partner Name> <Partner Product> RSA SECURID ACCESS Implementation Guide. PingIdentity PingFederate 8

Netwrix Auditor. Virtual Appliance and Cloud Deployment Guide. Version: /25/2017

Ftp Command Line Manual Windows Username Password Linux

UiPath Orchestrator Azure Installation

AirWatch Mobile Device Management

SIOS DataKeeper Cluster Edition on the AWS Cloud

Immersion Day. Getting Started with AWS Lambda. August Rev

Transcription:

SETTING UP, CONFIGURING AND BENCHMARKING EC2 In order for the MPI versions of the STREAM, IOR and NPB-EP benchmarks to be executed you will have to follow the below steps. These steps include installation of some necessary pre-requisite software, setting up the environment in the Amazon s EC2 that includes building cluster of t1.micro instance type, executing the benchmarks and collecting the results for analysis. Steps: 1. Get AWS subscription Sign into AWS console (if you do not have an account create one) at https://console.aws.amazon.com/console/home -> Select EC2 from Amazon Web Services ->Select Instances link from navigation from the left to see launched/running instances. 2. Download the MPI versions of the benchmarks using the below URLs in the local machine STREAM: http://www.cs.virginia.edu/stream/ftp/code/versions/ (This URL has MPI Fortran version called stream_mpi.f). The benchmark execution also needs mysecond.c file that is available at http://www.cs.virginia.edu/stream/ftp/code/. The C version of the benchmark stream_mpi.c is attached with the email. Both C and Fortran versions need mysecond.c file for successful execution. The execution steps of Stream MPI benchmark detailed in section 10 (a) of this document is for C version.

IOR: http://sourceforge.net/projects/ior-sio/ NPB-EP: https://www.nas.nasa.gov/cgi-bin/software/start (Check the checkbox for NPB- NAS Parallel benchmarks. Click on Next button. On the next page select Source Code NPB3.3 602kb from the dropdown and click on Next button. Register on this page to download the benchmark. The unzipped folder will have several NPB benchmarks. You are required to execute only the EP (Class A). 3. Install StarCluster To install on local Windows machine: Check installation instructions at http://star.mit.edu/cluster/docs/0.93.3/installation.html. For Mac users, go to Step ii. i. Pre-requisites on the Local Windows Development Machine. a. StarCluster b. Python 2.7 c. Setuptools 0.6rc11 d. Pycrypto 2.3 Python 2.7 needs to be installed on the local machine first as it is required for StarCluster installation on Windows platform. The installer is available at www.python.org. Python 2.7 is again dependent on Setuptools 0.6rc11 and Pycrypto 2.3 to be installed first. ii. Installing StarCluster to Build the Cluster After the necessary pre-requisite software installation is complete, StarCluster is installed using the following commands in the command window. C:\> easy_install StarCluster 4. Edit StarCluster config. file The config file can be located in the hidden.starcluster folder that is created after installation. Some information like Security Credentials for Access Key Id, Account ID can be obtained from your AWS Management Console (in Security credentials). Ensure MPICH2 plugin section is configured in the config file so MPI is enabled for the nodes to communicate with each other in a cluster. Important: Use one of StarCluster AMIs in the config file so features such as passwordless login, MPICH2, NFS (Network File Sharing) can be enabled in the cluster. Below are some of the fields that may have to be changed in the config file in order to build the cluster of certain size. An example config is available at.starcluster folder after StarCluster installation that can be modified. Below are some of the fields/sections that can be modified for an 8-node cluster (depending on the configuration needed).

AWS_ACCESS_KEY_ID = mykey AWS_SECRET_ACCESS_KEY = myaccesskey # replace this with your account number AWS_USER_ID= myawsuserid KEY_LOCATION= path\to\the\key KEYNAME = yourkey CLUSTER_SIZE = 8 CLUSTER_USER = ec2-user PLUGINS = mpich2 NODE_IMAGE_ID = ami-999d49f0 NODE_INSTANCE_TYPE = t1.micro MASTER_INSTANCE_TYPE = t1.micro MASTER_IMAGE_ID = ami-999d49f0 [PLUGIN MPICH2] SETUP_CLASS = starcluster.plugins.mpich2.mpich2setup 5. Start StarCluster Use the following command line to start a new cluster: C:\>starcluster start name-of-the-cluster A cluster is created in Amazon s EC2 with name {name-of-the-cluster}. You can chose name of cluster of your choice that is easy to identify for you. Ensure no errors are encountered. Following two screen shots show the successful start of an 8-node m1.medium cluster. This is just an example.

Example of successful start of an 8-node cluster

Example of successful start of an 8-node cluster

6. Log into AWS web console and ensure t1.micro instances are created and are in running status: 7. Connect to Master node: There are a couple of ways you can connect to the Master node of a cluster on EC2. One of the ways is to connect using StarCluster command line commands. Another method is to create a.ppk private key using Puttygen. Use this key in WinSCP to connect to Master node as root and transfer files for Windows users. Connect to the Master node as root without any password. Note: WinSCP may have to be downloaded and installed on your Windows machine. It is available free of charge.

8. Transfer all the benchmarks files downloaded in step 8 to the /home/ec2-user folder of the Master node (WinSCP can be used for Windows users) of the cluster.

9. Open a Terminal from the master node in WinSCP or directly using the StarCluster commands from command window. 10. Compile & Execute the benchmarks using the following commands and redirect output to text files so they they can later be copied to the Excel for analysis. a) STREAM Benchmark The benchmark consists of two files, stream_mpi.c and mysecond.c. These files need transferred to the master node s /home/ec2-user folder. The following command is executed to compile the stream_mpi.c file: root@master:/home/ec2-user/stream-mpi# mpicc -DPARALLEL_MPI -O3 -o stream_mpi stream_mpi.c This command builds a UNIX/Linux executable file stream_mpi that can be run in a parallel computing environment. Following command is then executed to run the executable on all the nodes of the cluster. This example shows the execution on 4-nodes of c1.medium instance type. This is ensured by specifying the name of the nodes in the - host argument of mpiexec command: root@master:/home/ec2-user/stream-mpi# mpiexec -host master, node001, node002, node003./stream_mpi > output/c1.m_n4.1.txt The benchmark execution is now complete and output is redirected to a text file in a folder called Output. This output file can be transferred to the local machine for later analysis. The execution of the benchmark is repeated for 1, 2, 4, 6, and 8 nodes on the t1.micro cluster. b) IOR Benchmark Execution of IOR benchmark involved several carefully executed steps. The first step is to ensure the cluster of required number of nodes is in place for an instance type. Instance types used need m1.small, c1.medium and m1.medium. Number of nodes used on each of these instance types is 1, 2, 4, 6, and 8. The necessary benchmarks files need transferred to the master node of the cluster. NFS shares them with all the nodes in the cluster automatically. One of the important steps for building the IOR executable in UNIX/Linux environment is the make command. This executable is created using POSIX interface. Ensure no errors are encounter when the make command is executed. root@master:/mnt/ec2-user/ior/src/c# make Following is a sample command that is run to execute the IOR executable in parallel on a 4-node cluster of c1.medium instance type:

root@master:/mnt/ec2-user/ior/src/c# mpiexec -host master, node001, node002, node003./ior -b 4m -t 4m > output/c1.m_n4.1.txt. The benchmark execution is now complete and output is redirected to a text file in a folder called Output. This output file can be transferred to the local machine for later analysis. The execution of the benchmark is repeated for 1, 2, 4, 6, and 8 nodes on the t1.micro cluster. c) NPB Benchmark EP Class A EP is written in Fortran language and comes in different classes. EP is compiled for Class A (problem size) on the master node of the cluster. Following is a sample make command that is run to build UNIX/Linux EP executable for 4-nodes on c1.medium instance type. root@master:/home/ec2-user/npb3.3-mpi# make EP NPROCS=4 CLASS=A This command creates an executable ep.a.4 that can be successfully run on a cluster of 4 nodes. Unlike other benchmarks, NPB benchmarks must be compiled specifically to build executable for a cluster size. For example, when the executable file ep.a.4 is run on a 3-nodes cluster, a run time error is received indicating the number of processes (nodes) is not matching with the executable. So, in order to build an executable file for an 8- nodes cluster the above command is run with NPROCS=8 in command line argument that created ep.a.8. Once the compilations need complete, all these need executed using mpiexec command and the results need redirected to text files for later analysis. Below is the sample command that is executed on a 4-node cluster of c1.medium cluster for class A: root@master:/home/ec2-user/npb3.3-mpi# mpiexec -host master, node001, node002, node003 bin/ep.a.4 > output/ep.a.4_3.txt The benchmark execution is now complete and output is redirected to a text file in a folder called Output. This output file can be transferred to the local machine for later analysis. The execution of the benchmark is repeated for 1, 2, 4, 6, and 8 nodes on the t1.micro cluster. 11. Use the output files from step 10 for further analysis and drawing graphs

12. Stop/ Terminate the Cluster Stopping a cluster