
Implementing Cloud Design Patterns for AWS
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Book DescriptionThis book is aimed at architects, solution providers, and those of the DevOps community who are looking to implement repeatable patterns for deploying and maintaining services in the Amazon cloud infrastructure. Prior experience using AWS is required as the book focuses more on the patterns and not on the basics of using AWS.What you will learn
Create and maintain server backups
Implement scaling policies on schedules, influxes in traffic, and deep health checks
Provision servers and data that persist through termination
Make complete use of high availability storage and redundancy storage
Design content delivery networks to improve user experience
Optimize databases through caching and sharding
Monitor and queue data for processing
Who this book is forThis book is aimed at architects, solution providers, and those of the DevOps community who are looking to implement repeatable patterns for deploying and maintaining services in the Amazon cloud infrastructure. Prior experience using AWS is required as the book focuses more on the patterns and not on the basics of using AWS.
All prices
More details
Other editions
New editions

Additional editions

Person
Content
Introduction/Common problems encountered in AWS
Basic Patterns
Patterns for High Availability
Patterns for Processing Static Data
Patterns for Processing Dynamic Data
Patterns for Uploading Data
Patterns for Databases
Patterns for Data Processing
Patterns for Operation and Maintenance
Patterns for Networking
Throw-away environments
On-demand disk pattern
The on-demand disk pattern is similar in nature to the scale up pattern, in that it operates on an already running instance and requires some downtime. This pattern is a manual process and might be avoided in automated processes such as the scale out pattern, as the downtime involved might cause alarm or scaling policies to trigger, causing some unwanted side effects.
The benefit of on-demand disk size is that you do not need to plan ahead for disk resources. Once the instance is running, you can simply resize its volume when it gets to its maximum capacity. Another example would be in the event where your application is very I/O heavy. At first your instance performs very well, but over time, with increased usage, the I/O operations take longer. An easy way to get more performance out of the base volume might be to enable RAID and stripe the volume.
First we will launch the AWS Linux AMI with an additional 20 GB EBS volume. Ensure that the Volume Type is Magnetic and it is set to Delete on Termination as shown in the following screenshot:
Once it is running, we will need to format and mount the drive for usage. We will mount it to /opt/data:
Now that we have the EBS volume mounted to /opt/data, we will write a file to the disk to ensure that a resize retains the data:
Volume resize
First we will unmount the volume from the running instance with the umount command:
After the volume is unmounted, select the instance from the console, and select the 20 GiB drive attached as /dev/sdb. This will take you to the corresponding volume in the Volumes section of the console. Click the Actions drop-down, and select Create Snapshot, as described in the snapshot pattern. Once this snapshot is 100 percent available for use, detach the /dev/sdb volume from the instance as shown in the following screenshot:
To increase the size of the volume, select the snapshot, and select Create Volume from the Actions menu. Here, select a larger size such as 30 GB, and click Create. When the new volume is available, click Attach Volume from the Actions menu, and select the instance that we detached, ensuring you attach it back to the device we detached it from, or in this case /dev/sdb. Back inside the virtual machine, you will remount the device, check it for errors, resize the partition, check the new size, and ensure that we didn't lose any data:
Change volume from magnetic to SSD
One method to get some increased I/O performance is to change the volume from magnetic to a general purpose SSD, which has a throughput of about 128 MB/s. To do this, select the snapshot that we created for the volume, and click Create Volume from the Actions drop-down menu. Once this volume is available, attach it as /dev/sdb to the instance. From the running instance we will mount it back, ensure that no loss of data has occurred, and check for an increase in throughput:
Here, we can see that we nearly doubled our throughput.
Increase I/O through software RAID
Tip
If you wish to read more about the different software RAID levels and how they perform in the AWS virtualized environment, more information can be found at their User Guide at http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/raid-config.html.
As seen, the throughput for the new file was about 1.6 GB/s for creation and about 40 MB/s for a rewrite. Magnetic EBS volumes are estimated between 40 and 90 MB/s. This is a very rough...
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.