Quantcast
Channel: Oracle
Viewing all articles
Browse latest Browse all 1814

Wiki Page: AWS concepts and commands for Oracle DBAs: Part I: AWS Resource usage and price monitoring

$
0
0
Written by KH Wissem Introduction Before digging through the technical details and configuration of the Amazon Web Services (AWS), let’s first define some key concepts of the Cloud world, especially the Amazon AWS. Being in the IT industry, we have been going through a tedious and long process of acquisition of the infrastructure (hardware software and licenses). Typical projects are delayed due to infrastructure delays in definition, contracts, support and licenses. Many projects have been cancelled due to infrastructure under estimation, non ability of escalation, difficulties in upgrades and downgrades and high cost. Cloud Computing addresses all these difficulties and beyond. Teams now can focus in more important aspects of the projects: Business, functionalities, applications and minor efforts in the infrastructure which is totally (if they wish) or partially managed by the cloud provider. Everything from storage Petabyte of data to high compute capacity is at your disposals. You have the software, hardware, everything about the infrastructure all on demand and at your disposals everywhere and anytime with great capacity of escalation and at lower cost. In this article, we will talk about the leader Cloud provider; Amazon Web Services (AWS); we will explain a bit of the components of the AWS, the pricing options, the AWS client. Later, for the Oracle database administrators, I will explain a way to monitor the resource usage of the Oracle database servers in the Cloud in order to lower the cost and control the resources (CPU and Memory) consumption. AWS components: regions and availability zones Today AWS operates with data centers in the USA, Europe, Brazil, Singapore, Japan, China and Australia. Before building your infrastructure in the cloud using the AWS management console or the Amazon Cli, you need to know which region and data centers are the closest to your organization. AWS currently has 11 regions. Every region runs completely isolated from the others. Network latency, connectivity, support and so on are the keys to choose your region prior building the servers and demand the services. Each region is split up to availability zones (AZ) which are engineered to be isolated from failures in other Availability Zones, and to provide inexpensive, low-latency network connectivity to other zones in the same region. For more details about regions and AZ please read the following page: https://aws.amazon.com/about-aws/global-infrastructure/ AWS components: EC2 Introduction Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides a scalable compute capacity on demand and pay per use in the cloud. It is designed to make web-scale cloud computing easier for developers. A high scalable means you can scale out from a few of virtual servers to thousands in no time. AWS components: EC2 pricing options Amazon makes available a list of pricing options that you can choose to respond your application needs. Let’s have a look into those options to have a better understanding. On demand Instances: On-Demand instances let you pay for compute capacity by the hour with no long-term commitments or upfront payments. You can increase or decrease your compute capacity depending on the demands of your application and only pay the specified hourly rate for the instances you use. This is a commonly used instance option; you pay per use and your instance can be shutdown anytime when not used, but AWS does not guarantee the deployment of your instance after shutdown. Reserved Instances : Reserved Instances provide you with a significant discount (up to 75%) compared to On-Demand instance pricing. You are assured that your Reserved Instance will always be available for the operating system (e.g., Linux/UNIX or Windows) and Availability Zone in which you purchased it. You can choose to pay some upfront costs or the full payment for reserving the instance for a minimum of a year and maximum of three years. Spot instances: provide the ability for customers to purchase compute capacity with no upfront commitment and at hourly rates usually lower than the On-Demand rate. Spot instances allow you to specify the maximum hourly price that you are willing to pay to run a particular instance type. Amazon EC2 sets a Spot Price for each instance type in each Availability Zone, which is the price all customers will pay to run a Spot instance for that given period. The Spot Price fluctuates based on supply and demand for instances, but customers will never pay more than the maximum price they have specified. If the Spot Price moves higher than a customer’s maximum price, the customer’s instance will be shut down by Amazon EC2. Other than those differences, Spot instances perform exactly the same as On-Demand or Reserved Instances. A Dedicated Host is a physical EC2 server with instance capacity fully dedicated for your use. Dedicated Hosts can help you reduce costs by allowing you to use your existing server-bound software licenses, including Windows Server, SQL Server, and SUSE Linux Enterprise Server (subject to your license terms), and can also help you meet compliance requirements. Dedicated Hosts can be purchased On-Demand (hourly). Reservations can provide up to a 70% discount compared to the On-Demand price. More details about the purchasing options are available here: https://aws.amazon.com/ec2/purchasing-options/ The pricing list API provides you with access to prices in JSON and CSV form. You can download the csv file from the following URL and upload the data into an Oracle table called : sysman.awspricing https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/index.csv SQL> desc sysman.awspricing Name Type Nullable Default Comments --------------------------- ------------- -------- ------- -------- SKU VARCHAR2(25) Y OFFERTERMCODE VARCHAR2(25) Y RATECODE VARCHAR2(100) Y TERMTYPE VARCHAR2(15) Y PRICEDESCRIPTION VARCHAR2(300) Y EFFECTIVEDATE VARCHAR2(20) Y STARTINGRANGE VARCHAR2(10) Y ENDINGRANGE VARCHAR2(10) Y UNIT VARCHAR2(50) Y PRICEPERUNIT VARCHAR2(20) Y CURRENCY VARCHAR2(10) Y LEASECONTRACTLENGTH VARCHAR2(10) Y PURCHASEOPTION VARCHAR2(20) Y PRODUCTFAMILY VARCHAR2(30) Y SERVICECODE VARCHAR2(30) Y LOCATION VARCHAR2(30) Y LOCATIONTYPE VARCHAR2(20) Y INSTANCETYPE VARCHAR2(30) Y CURRENTGENERATION VARCHAR2(10) Y INSTANCEFAMILY VARCHAR2(30) Y VCPU VARCHAR2(5) Y PHYSICALPROCESSOR VARCHAR2(100) Y CLOCKSPEED VARCHAR2(20) Y MEMORY VARCHAR2(10) Y STORAGE VARCHAR2(20) Y NETWORKPERFORMANCE VARCHAR2(20) Y PROCESSORARCHITECTURE VARCHAR2(20) Y STORAGEMEDIA VARCHAR2(50) Y VOLUMETYPE VARCHAR2(30) Y MAXVOLUMESIZE VARCHAR2(30) Y MAXIOPS_VOLUME VARCHAR2(30) Y MAXIOPSBURSTPERFORMANCE VARCHAR2(30) Y MAXTHROUGHPUT_VOLUME VARCHAR2(30) Y PROVISIONED VARCHAR2(30) Y TENANCY VARCHAR2(15) Y EBSOPTIMIZED VARCHAR2(20) Y OPERATINGSYSTEM VARCHAR2(15) Y LICENSEMODEL VARCHAR2(25) Y GROUPNAME VARCHAR2(50) Y GROUPDESCRIPTION VARCHAR2(100) Y TRANSFERTYPE VARCHAR2(20) Y FROMLOCATION VARCHAR2(30) Y FROMLOCATIONTYPE VARCHAR2(20) Y TOLOCATION VARCHAR2(30) Y TOLOCATIONTYPE VARCHAR2(20) Y USAGETYPE VARCHAR2(50) Y OPERATION VARCHAR2(30) Y DEDICATEDEBSTHROUGHPUT VARCHAR2(10) Y ENHANCEDNETWORKINGSUPPORTED VARCHAR2(10) Y GPU VARCHAR2(10) Y INSTANCECAPACITY_10XLARGE VARCHAR2(15) Y INSTANCECAPACITY_2XLARGE VARCHAR2(15) Y INSTANCECAPACITY_4XLARGE VARCHAR2(15) Y INSTANCECAPACITY_8XLARGE VARCHAR2(15) Y INSTANCECAPACITY_LARGE VARCHAR2(15) Y INSTANCECAPACITY_MEDIUM VARCHAR2(15) Y INSTANCECAPACITY_XLARGE VARCHAR2(15) Y PHYSICALCORES VARCHAR2(15) Y PREINSTALLEDSW VARCHAR2(30) Y PROCESSORFEATURES VARCHAR2(50) Y SOCKETS VARCHAR2(20) Y SQL> Amazon EC2 Instance Types Introduction Amazon EC2 provides many instance types to address different use cases and application workloads. The instances types include combinations of CPU, memory, storage and networking capacity to give the users the flexibility to choose the appropriate resources of your applications. For a complete list of instance type, please visit the following link: https://aws.amazon.com/ec2/instance-types/ AWS Cli Introduction Before we explain the AWS Cli, it is worth to mention that AWS has a simple and straightforward management console; this is a commonly used method to manage access and work with the AWS services. But as a Database administrator and a Sysadmin, I need a more flexible way to manage the AWS services (the instances, the volumes, the snapshots etc ...). Here comes the AWS Cli, to help us scripting and automate the management tasks. AWS Cli Installation In this section we will go through the installation of the AWS Cli in a Redhat Linux system. Python versions supported are 2.6.5 and above: python --version If you don't have Pip installed then download the installation script from pypa.io: curl -O https://bootstrap.pypa.io/get-pip.py Run the script with Python: $ sudo python get-pip.py If you get the following error: /tmp/tmpYOIx07/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning . Then upgrade python as root: Download Python 3.3.5 using the wget command and run the following commands in order: $wget http://python.org/ftp/python/3.3.5/Python-3.3.5.tar.xz $yum install install xz $tar xf Python-3.3.5.tar.xz $cd Python-3.3.5 $. /configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" $make && make altinstall Install again the Pip: $sudo /root/Python-3.3.5/python get-pip.py Install the CLI: Install awscli using pip. If you’d like to have awscli installed in an isolated Python environment, sudo pip install awscli Next, configure awscli to create the required ~/.aws/config file. aws configure –profile Pawspricing Once executed, you will be prompted to enter the user’s ACCESS Key ID and the AWS Secret Access Key (supplied by your AWS administrator) along with the region name and the default output format. AWS Access Key ID [None]: xxxxxx AWS Secret Access Key [None]: xxxx Default region name [None]: eu-west-1 Default output format [None]: json You can choose table, text of JSON as the Default output format. If you have multiple users and each user needs to access to the Linux Box, then you can use profile. You can configure the AWS Command Line Interface to use a role by creating a profile for the role in the~/.aws/config file. In our environment, we use the profile name “ Pawspricing ” for AWS pricing scripts. AWS Instance Tag The AWS Cli and management console allow you add tags to your AWS instances. Tags are a key value pairs of text that allow you to add description, label to easy identify your AWS resources. As an example you tag your instances whatever it is a Linux or a Windows running instance using a KeyName: EURPROD_OPS_UNIX or EURPROD_OPS_WIN to indicate if this is a production Linux or a production Windows instance running in Europe. Once the tag is created you can query it by running the following command: aws ec2 describe-instances --profile Pawspricing --region eu-west-1 --instance-id=i-7d3e5a2f | grep KeyName Using AWS Cli to Identify the Instance pricing The AWS Cli commands allow the DBAs to know for a given instance its resource details; the instance type, the OS, the architecture , the hostname the private IP address, the MAC address and so on. If we want to query the requested instance type's architecture (x86_64) we run the AWS Cli command describe-instances: aws ec2 describe-instances --profile Pawspricing --region eu-west-1 --instance-id=i-7d3e5a2f |grep Architecture To get the Instance Type, the AWS is running you can run the following AWS command: aws ec2 describe-instances --profile Pawspricing --region eu-west-1 --instance-id=i-7d3e5a2f |grep InstanceType To get the Mac address, the AWS is running you can run the following AWS command: aws ec2 describe-instances --profile Pawspricing --region eu-west-1 --instance-id=i-7d3e5a2f |grep Mac If we know also the term (reserved and on Demand), TENANCY (Shared or Host or dedicated) and LICENSEMODEL (License Included or No License required) along with all the above commands and results, we can join the instance resources with the AWS pricing API. Your AWS root administrator can help you to figure out the term, LICENSEMODEL and TENANCY in the contracts. Once we suppose that our AWS instance is running under on demand term and with a shared tenancy, we can get the unit price of a given AWS instance. The SQL query looks like below: SQL> select * 2 from sysman.awspricing 3 where instancetype = 'r3.xlarge' 4 /* 5 -bash-4.1$ aws ec2 describe-instances --profile PVolSnapshot --region eu-west-1 --instance-id=i-7d3e5a2f |grep InstanceType 6 "InstanceType": "r3.xlarge", 7 */ 8 and UPPER(OPERATINGSYSTEM) like UPPER('%LINUX%') 9 /* 10 -bash-4.1$ aws ec2 describe-instances --profile PVolSnapshot --region eu-west-1 --instance-id=i-7d3e5a2f | grep KeyName 11 "KeyName": "EURPROD_OPS_WIN", 12 -bash-4.1$ aws ec2 describe-instances --profile PVolSnapshot --region eu-west-1 --instance-id=i-7d3e5a2f |grep KeyName 13 "KeyName": "EURPROD_OPS_UNIX", 14 -bash-4.1$ 15 16 */ 17 and PROCESSORARCHITECTURE LIKE '%64%' 18 /* 19 -bash-4.1$ aws ec2 describe-instances --profile PVolSnapshot --region eu-west-1 --instance-id=i-7d3e5a2f |grep Architecture 20 "Architecture": "x86_64", 21 */ 22 AND UPPER(LOCATION) LIKE '%EU%' 23 AND TERMTYPE = 'OnDemand' 24 AND TENANCY = 'Shared' 25 AND UPPER(LOCATION) LIKE '%IRELAND%' 26 AND PREINSTALLEDSW = 'NA' 27 AND LICENSEMODEL IN ( 'License Included' ,'No License required' ) 28 ; SKU OFFERTERMCODE RATECODE TERMTYPE PRICEDESCRIPTION EFFECTIVEDATE STARTINGRANGE ENDINGRANGE UNIT PRICEPERUNIT CURRENCY LEASECONTRACTLENGTH PURCHASEOPTION PRODUCTFAMILY SERVICECODE LOCATION LOCATIONTYPE INSTANCETYPE CURRENTGENERATION INSTANCEFAMILY VCPU PHYSICALPROCESSOR CLOCKSPEED MEMORY STORAGE NETWORKPERFORMANCE PROCESSORARCHITECTURE STORAGEMEDIA VOLUMETYPE MAXVOLUMESIZE MAXIOPS_VOLUME MAXIOPSBURSTPERFORMANCE MAXTHROUGHPUT_VOLUME PROVISIONED TENANCY EBSOPTIMIZED OPERATINGSYSTEM LICENSEMODEL GROUPNAME GROUPDESCRIPTION TRANSFERTYPE FROMLOCATION FROMLOCATIONTYPE TOLOCATION TOLOCATIONTYPE USAGETYPE OPERATION DEDICATEDEBSTHROUGHPUT ENHANCEDNETWORKINGSUPPORTED GPU INSTANCECAPACITY_10XLARGE INSTANCECAPACITY_2XLARGE INSTANCECAPACITY_4XLARGE INSTANCECAPACITY_8XLARGE INSTANCECAPACITY_LARGE INSTANCECAPACITY_MEDIUM INSTANCECAPACITY_XLARGE PHYSICALCORES PREINSTALLEDSW PROCESSORFEATURES SOCKETS ------------------------- ------------------------- -------------------------------------------------------------------------------- --------------- -------------------------------------------------------------------------------- -------------------- ------------- ----------- -------------------------------------------------- -------------------- ---------- ------------------- -------------------- ------------------------------ ------------------------------ ------------------------------ -------------------- ------------------------------ ----------------- ------------------------------ ----- -------------------------------------------------------------------------------- -------------------- ---------- -------------------- -------------------- --------------------- -------------------------------------------------- ------------------------------ ------------------------------ ------------------------------ ------------------------------ ------------------------------ ------------------------------ --------------- -------------------- --------------- ------------------------- -------------------------------------------------- -------------------------------------------------------------------------------- -------------------- ------------------------------ -------------------- ------------------------------ -------------------- -------------------------------------------------- ------------------------------ ---------------------- --------------------------- ---------- ------------------------- ------------------------ ------------------------ ------------------------ ---------------------- ----------------------- ----------------------- --------------- ------------------------------ -------------------------------------------------- -------------------- VPAFYT3KA5TFAK4M JRTCKXETXF VPAFYT3KA5TFAK4M.JRTCKXETXF.6YS6EN2CT7 OnDemand $0.371 per On Demand Linux r3.xlarge Instance Hour 1/1/2016 0 Inf Hrs 0.371 USD Compute Instance AmazonEC2 EU (Ireland) AWS Region r3.xlarge Yes Memory optimized 4 Intel Xeon E5-2670 v2 (Ivy Bridge) 2.5 GHz 30.5 GiB 1 x 80 SSD Moderate 64-bit Shared Linux No License required EU-BoxUsage:r3.xlarge RunInstances Yes NA Intel AVX; Intel Turbo SQL> So we are able to identify in one row the price of 'r3.xlarge'instance type Linux (x86_64) in Europe (Ireland) which is 0.371$/hour. Now that we have the AWS Cli commands we can write a shell script and automate the process in order to have the instance name along with the unit price for usage. We can upload the results of AWS commands into a csv file and use the Oracle external tables to read the contents from an Oracle table called sysman.aws_ins_att_ireland, and then join the records based on the instance type, the operating system, the region, and the processor architecture. SQL> SELECT INSTANCEID, MACADDRESS, ARCHITECTURE, KEYNAME, INSTANCETYPE FROM sysman.aws_ins_att_ireland; INSTANCEID MACADDRESS ARCHITECTU KEYNAME INSTANCETYPE -------------------- -------------------- ---------- ---------- -------------------------------------------------------------------------------- i-xxx 02:xx:a5:xx:b0:x x86_64 EURPROD_OP m4.large S_WIN i-xxx xx:91:xx:10:xx:a1 x86_64 EURPROD_OP m4.large S_WIN i-xx xx:ff:9xx:5c:xx:9d x86_64 EURPROD_OP m4.xlarge S_UNIX i-xx x:22:dc:x:xx:0b x86_64 EURPROD_OP m4.large S_WIN The Oracle Enterprise Manager 12c: Get monitoring details of a target The Oracle Enterprise Manager 12c is Oracle’s on-premises management platform to manage all of a customer's Oracle deployments, whether in their data centers or in the Cloud. Through deep integration with Oracle’s product stack, Enterprise Manager provides market-leading management and automation support for Oracle applications, databases, middleware, hardware and engineered systems. Enterprise Manager provides repositories of views which are used to access information in the Management Repository for further processing and/or presentation. The MGMT$METRIC_CURRENT view displays information on the most recent metric values that have been loaded into the Management Repository. The following SQL displays the recent resource usage per target in terms of CPU and memory. SQL> select TARGET_NAME, 2 TARGET_GUID, 3 SUM(DECODE(mgmt_met.metric_column, 'cpuUtil', mgmt_met.value)) stat_cpuUtil, 4 SUM(DECODE(mgmt_met.metric_column, 5 'usedLogicalMemoryPct', 6 mgmt_met.value)) stat_usedLogicalMemoryPct, 7 SUM(DECODE(mgmt_met.metric_column, 8 'memfreePct', 9 mgmt_met.value)) stat_memfreePct 10 from sysman.mgmt$metric_current mgmt_met 11 where mgmt_met.target_type = 'host' 12 and mgmt_met.metric_name in ('Load') 13 and mgmt_met.metric_column in 14 ('cpuUtil', 'usedLogicalMemoryPct', 'memfreePct') 15 GROUP BY mgmt_met.TARGET_NAME, mgmt_met.TARGET_GUID 16 ; TARGET_NAME TARGET_GUID STAT_CPUUTIL STAT_USEDLOGICALMEMORYPCT STAT_MEMFREEPCT -------------------------------------------------------------------------------- -------------------------------- ------------ ------------------------- --------------- xxxxx CFD8D4956B6FCD0F24D6E4CB1591B2D0 16.692 26.673 56.365 xxxxxx EC5E67ECC0BB5B97D3D77C272079C28C 7.86 22.233 27.659 The MGMT$HW_NIC view displays performance information for host hardware network cards. SQL> desc sysman.mgmt$hw_nic Name Type Nullable Default Comments ------------------------- -------------- -------- ------- -------- HOST_NAME VARCHAR2(256) NAME VARCHAR2(300) Y INET_ADDRESS VARCHAR2(20) Y MAX_TRANSFER_UNIT NUMBER Y BROADCAST_ADDRESS VARCHAR2(20) Y MASK VARCHAR2(64) Y FLAGS VARCHAR2(1024) Y MAC_ADDRESS VARCHAR2(128) Y MAC_ADDRESS_STD VARCHAR2(128) Y HOST_ALIASES VARCHAR2(4000) Y SNAPSHOT_GUID RAW(16) TARGET_GUID RAW(16) INET6_ADDRESSES VARCHAR2(500) Y DHCP_ENABLED VARCHAR2(1) Y IS_PHYSICAL NUMBER(1) Y TARGET_NAME VARCHAR2(256) TARGET_TYPE VARCHAR2(64) LAST_COLLECTION_TIMESTAMP DATE SQL> AWS pricing: Putting all the pieces together Let’s summarize what we have achieved until now; we have an Oracle table called sysman.awspricing which has the unit prices per hour, per instance type, region, operating system and processor architecture. Also, we have a table called sysman.aws_ins_att_ireland which has the instance type, the operating system the processor architecture, the MAC_ADDRESS and the region. We have also two views sysman.mgmt$hw_nic and sysman.mgmt$metric_current which have the statistics in CPU / memory used and the MAC_ADDRESS. We join between all these information, we will be able to get the AWS pricing along with the database resource usage reported by OEM. The query looks like below, feel free to adapt it with your needs: SQL> with thost as 2 (select TARGET_GUID, 3 h.mac_address AS macaddress 4 from sysman.mgmt$hw_nic h 5 where target_type = 'host') 6 ( 7 select LOCATION, 8 ir.INSTANCETYPE, 9 OPERATINGSYSTEM, 10 stat_cpuUtil AS stat_cpuUtil, 11 stat_usedLogicalMemoryPct as stat_usedLogicalMemoryPct, 12 PRICEPERUNIT, 13 PRICEPERUNIT * sysman.get_hours(LAUNCHTIME) AS PRICE 14 from sysman.awspricing a, 15 sysman.aws_ins_att_ireland ir, 16 (select TARGET_NAME, 17 TARGET_GUID, 18 SUM(DECODE(mgmt_met.metric_column, 'cpuUtil', mgmt_met.value)) stat_cpuUtil, 19 SUM(DECODE(mgmt_met.metric_column, 20 'usedLogicalMemoryPct', 21 mgmt_met.value)) stat_usedLogicalMemoryPct 22 from sysman.mgmt$metric_current mgmt_met 23 where mgmt_met.target_type = 'host' 24 and mgmt_met.metric_name in ('Load') 25 and mgmt_met.metric_column in 26 ('cpuUtil', 'usedLogicalMemoryPct') 27 GROUP BY mgmt_met.TARGET_NAME, mgmt_met.TARGET_GUID) t, 28 thost mgmt_host 29 where LOWER(a.unit) = 'hrs' 30 AND a.LOCATION = 'EU (Ireland)' 31 AND a.TERMTYPE = 'OnDemand' 32 AND a.TENANCY = 'Shared' 33 AND a.PREINSTALLEDSW = 'NA' 34 AND a.LICENSEMODEL IN ('License Included', 'No License required') 35 and a.instancetype = ir.instancetype 36 and a.OPERATINGSYSTEM = DECODE(ir.KeyName, 37 'EURPROD_OPS_WIN', 38 'Windows', 39 'EURPROD_OPS_UNIX', 40 'Linux', 41 'NA') 42 AND a.PROCESSORARCHITECTURE = 43 DECODE(SUBSTR(ir.architecture, 44 INSTR(ir.architecture, '_') + 1, 45 length(ir.architecture)), 46 '64', 47 '64-bit', 48 '32-bit or 64-bit') 49 AND t.TARGET_GUID = mgmt_host.TARGET_GUID 50 AND ir.macaddress = mgmt_host.macaddress 51 ) 52 ; LOCATION INSTANCETYPE OPERATINGSYSTEM STAT_CPUUTIL STAT_USEDLOGICALMEMORYPCT PRICEPERUNIT PRICE ------------------------------ -------------------------------------------------------------------------------- --------------- ------------ ------------------------- -------------------- ---------- EU (Ireland) m4.xlarge Linux 7.975 22.306 0.264 91.344 EU (Ireland) m4.xlarge Linux 7.975 22.306 0.264 91.344 EU (Ireland) m4.xlarge Linux 0.041 7.724 0.264 91.344 EU (Ireland) m4.xlarge Linux 0.041 7.724 0.264 91.344 EU (Ireland) m4.xlarge Linux 0.069 8.924 0.264 91.344 EU (Ireland) m4.xlarge Linux 0.069 8.924 0.264 91.344 EU (Ireland) m4.xlarge Linux 0.118 28.72 0.264 91.344 EU (Ireland) m4.xlarge Linux 0.118 28.72 0.264 91.344 EU (Ireland) r3.2xlarge Linux 1.193 6.287 0.741 256.386 EU (Ireland) r3.2xlarge Linux 1.193 6.287 0.741 256.386 EU (Ireland) r3.xlarge Linux 0.22 6.417 0.371 128.366 Conclusion In this article we have introduced the AWS cloud world. We have seen some of the AWS components like the regions, availability zones, the AWS Cli, the AWS pricing and instance types. We have used the AWS instance tag for scripting and easy management. We have seen how to install the AWS Cli in a Redhat Linux system and how to get information about the AWS instances. We also seen how to join the information between the AWS instance properties and AWS price list API. In the end, we join the Oracle database server monitoring results in CPU and Memory with the AWS instance properties to get the unit price and the cumulated price per instance.

Viewing all articles
Browse latest Browse all 1814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>