• Keine Ergebnisse gefunden

Cluster of Web-Servers with AWS

N/A
N/A
Protected

Academic year: 2021

Aktie "Cluster of Web-Servers with AWS"

Copied!
36
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Cluster of Web-Servers with AWS

Cloud Computing

Mauricio Altamirano Silva Julia Johnson

Sefer Ul

(2)

Agenda

AWS

Create EC2 (Elastic Compute Cloud)

Create EBS (Elastic Block Storage)

Cloning the EC2 & EBS

Install and Configure NGINX

Set up Let’s Encrypt with NGINX Server

Create ELB (Elastic Load Balancer)

Configure Domain Name with ELB

(3)

▸ Amazon Web Services provides on- demand cloud computing platforms to individuals, companies and

governments, on a paid subscription basis.

AWS (Amazon Web Services)

(4)

Create EC2 (Elastic Compute Cloud)

(5)

Create EC2 (Elastic Compute Cloud)

(6)

Create EC2 (Elastic Compute Cloud)

(7)

Create EC2 (Elastic Compute Cloud)

▸ Step 5: Add Tags

- No tag added

(8)

Create EC2 (Elastic Compute Cloud)

(9)

Create EC2 (Elastic Compute Cloud)

▸ Connect using ssh and certificate:

▸ ssh -i 'lnx01.pem' ubuntu@18.224.147.49

(10)

Create EBS (Elastic Block Storage)

(11)

Create EBS (Elastic Block Storage)

(12)

Create EBS (Elastic Block Storage)

▸ Use the lsblk command to view your available disk devices and their mount points (if applicable) to help you determine the correct device name to use.

▸ Use the sudo file -s device command to list special information, such as file system type.

▸ Create an ext4 file system on the volume

Making an Amazon EBS Volume Available for Use on Linux

(13)

Create EBS (Elastic Block Storage)

Making an Amazon EBS Volume Available for Use on Linux

▸ Create mount point

▸ Use the following command to mount the volume at the created location

▸ Create a backup for your /etc/fstab file that you can use if you accidentally destroy or

delete this file while editing it

(14)

Create EBS (Elastic Block Storage)

Making an Amazon EBS Volume Available for Use on Linux

▸ Get UUDI (Universally Unique Identifier)

▸ Add a new line to the end of the file for the volume using the following format

(15)

Create EBS (Elastic Block Storage)

Making an Amazon EBS Volume Available for Use on Linux

▸ Check if the entry works

▸ Create symbolic link to ebs1

(16)

Cloning the EC2 & EBS

(17)

Cloning the EC2 & EBS

(18)

Install and Configure NGINX

▸ Install Nginx:

- sudo apt-get install nginx

▸ Configure:

- sudo nano

/etc/nginx/sites-

available/default

(19)

Install and Configure NGINX

(20)

Set Up Let’s Encrypt with NGINX Server

▸ Install Nginx:

- sudo apt-get install python-certbot-nginx

▸ Configure:

- sudo nano

/etc/nginx/sites-

available/default

(21)

Set Up Let’s Encrypt with NGINX Server

▸ Obtaining an SSL Certificate

- sudo certbot --nginx -d example.com -d

www.example.com

▸ This will change the Nginx configuration

▸ Verify the certificate

(22)

Create Elastic Load Balancer (ELB)

(23)

Create Elastic Load Balancer (ELB)

(24)

Create Elastic Load Balancer (ELB)

(25)

Create Elastic Load Balancer (ELB)

▸ To enable HTTPS in the Load Balancer we need to import the certificates created before using Certbot.

▸ Copy and paste the text in the next files into the Step2: Configure Security

Settings

(26)

Create Elastic Load Balancer (ELB)

(27)

Create Elastic Load Balancer (ELB)

(28)

Create Elastic Load Balancer (ELB)

(29)

Configure Domain Name with ELB

(30)

Architecture

Monitoring of the Web-Server Cluster

(31)

Monitoring of the Web-Server Cluster

(32)

Monitoring of the Web-Server Cluster

(33)

Alarms

Monitoring of the Web-Server Cluster

(34)

AWS Free limits

(35)

Reactive Scaling, users manually thresholds to the CPU usage in order to trigger new EC2 instances.

Proactive Scaling, users manually schedule when new instances will be triggered.

Predictive Scaling, new instances will be trigger automatically when needed, based on machine learning to predict the CPU usage of the instances.

AWS auto-scaling in EC2

(36)

Thanks!

Referenzen

ÄHNLICHE DOKUMENTE

[r]

[r]

[r]

Hervorragend geeignet für: Illustration, Ceramics, Fine Art, Custom Automotive, Model Painting, Thin Cosmetics, Body

Die Abbildungen zeigen einen Ausschnitt der Paneele, sie stellen nicht immer die ganze Platte dar.. Die Farbwiedergabe im Druck ist nicht verbindlich, sie kann unter Umständen von

It is uncommon to run a comparison between a trial and a control group, which is completely different from medical, psychological or sociological studies (Flickinger,

You have been asked to create a going green leaflet for English-speaking tourists who come to visit your area.. In your leaflet

Das Musical Catch me if you can, bekannt aus der gleichnamigen Verfilmung von Steven Spielberg mit Leonardo DiCaprio und Tom Hanks, ist am Montag, 11.2.2019 um 19.30 Uhr als