Image for post
Image for post
Diagram of project infrastructure

As we kick off this project, let us discuss why we would adopt Serverless application rather than provisioning a server or instance?

Here we will be discussing the pros and cons of Serverless Applications

Pros:

1 No server management is necessary

One of the biggest advantage of serverless application is to reduce the human and financial costs of an organization by freeing them from server management. Instead, the resources can be allocated to what matters most in terms of business operation

2 Developers are only charged for the server space they use, reducing costs

For developers in, specific, the deployment…


Introduction

The LEMP software stack is a group of software that can be used to serve dynamic web pages and web applications. The LEMP stands for a Linux operating system, with an Nginx (pronounced like “Engine-X”) web server. The backend data is stored in the MySQL database and the dynamic processing is handled by PHP.

Image for post
Image for post
Diagram of tools


Image for post
Image for post
CLB vs. ALB vs. NLB

Today, let us make it theoretical. We’re going to dive deep into the differences in between ALB, NLB and CLB(ELB). Though it may benefit us in terms of exam taking or interviews, the usages are still pretty much practical.

In order to maintain HA, we need to adopt LB in front of at least two instances of our app

Features for all:

(1) Health Checks

(2) Distribute incoming requests to a number of targets could be either EC2 instances or docker containers

(3) HA and Elastic, which means scaling up or down in a couple of minutes

(4) TLS termination


What is Autospotting and why we apply it?

In order to understand Autospotting, let me first focus on what spot instance is. To launch new instances, EC2 may require some spare capacity. Instead of leaving this capacity in idle and consuming power, it is made available to anybody who is willing to pay for it. However, the trade-off is it could be reclaimed with short notice if requested for the usual on demand users

This is so-called spot market, the average price for spot instance is usually a few times better than on demand instances, occasionally it may be 10 times cheaper

Here comes with the meats —


Set up RHEL 8.3 by Oracle Virtual Box on Mac

First, we will download Oracle Virtual Box on Mac, please click Mac hosts

Second, we will also download RHEL iso

Let us make it work now!

Click Oracle VirtualBox and open the application and follow instructions here, you will install RHEL 8.3 as shown below

Image for post
Image for post
Oracle VM VirtualBox

Notes: In case you are unable to install RHEL 8.3 successfully, please find solutions here. Also, after you create your developer’s account with Red Hat, you have to wait for sometime before register it. Otherwise, you may receive errors as well.

Now it’s time for us to connect to RHEL 8.3 from Mac using VirtualBox.


Set up RHEL 8.3 by Oracle Virtual Box on Windows 10 using putty

First, we will download Oracle Virtual Box on Windows 10, please click Windows hosts

Second, we will also download RHEL iso

Let us make it work now!

Click Oracle VirtualBox and open the application and follow instructions here, you will install RHEL 8.3 as shown below

Image for post
Image for post
Oracle VM VirtualBox

Notes: In case you are unable to install RHEL 8.3 successfully, please find solutions here. Also, after you create your developer’s account with Red Hat, you have to wait for sometime before register it. Otherwise, you may receive errors as well.

Now it’s time for us to connect to RHEL 8.3 …


Step-by-step installation from scratch

To start with, let us visualize our project:

Image for post
Image for post
Project Infrastructure

In this project, we will be installing Ansible using infrastructure shown above, every single step is provided from scratch.

Prerequisites:

  1. RHEL 8.3 using VirutalBox via Putty on Windows
  2. Create a non root AWS account
  3. Install AWS CLI
  4. Install Terraform — Provisioning EC2

Set up RHEL 8.3 by Oracle Virtual Box on Windows 10 using putty

First, we will download Oracle Virtual Box on Windows 10, please click Windows hosts

Second, we will also download RHEL iso

Let us make it work now!

Click Oracle VirtualBox and open the application and follow instructions here, you will install RHEL 8.3 as shown below


To accomplish validating if a line is present in the file without any modification

What is Ansible and what it could do?

Ansible, as an open-source automation tool, or platform, is used for IT tasks such as configuration management, application deployment, intraservice orchestration, and provisioning. In this project, we will focus on how to make deployments faster and scale to various environments using Ansible playbooks.

Why Ansible?

After acknowledging what Ansible is, we will now dive in why we apply Ansible playbooks. At workplace, there are plenty of repetitive work that employees may need to wok on on a daily…


Image for post
Image for post
Infrastructure of the project

What’s behind this project?

Before an application could be delivered to the market for end users, the company needs to test the potential issues facing the application. It’s essential to predict and project the performance of the application in supported geographies and further isolate the root cause of any hidden problems. By using synthetic monitoring, company is able to emulate business processes or user transactions from different geolocations and monitor performance and availability alike.

In this project, we will break down our projects into two parts. On the one hand, we dive deep to deploy a global synthetic monitoring solution…


Day twenty-eight — Pomodoro Project

Image for post
Image for post

Just your peace of mind, I would include installation for Python before we get started with our project

Here are a couple of ways you may put python in use.

1 Repl.it — Free registration and a bunch of features provided

2 Install Python locally (using Mac)

Installing Homebrew

Open terminal and type in

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" . . . ==> Installation successful!==> Homebrew has enabled anonymous aggregate formulae and cask analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics data has been sent yet (or will be…

Paul Zhao

Amazon Web Service Certified Solutions Architect Professional & Devops Engineer, Digital Designer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store