sudu loonu epa | information technology degrees






8 High-Performance Cloud Load Balancer for Application HA

By Chandan Kumar on May 9, 2020

Posted in

Cloud Computing

Cloud-based Load Balancers

AWS ELB

GCP Load Balancing

NodeBalancers

Rackspace

Azure Load Balancer

DO Load Balancer

Cloudflare Load Balancing

Imperva Load Balancer

apptrana

Get application security done the proper way! Detect, Protect, Monitor, Accelerate, and more…

If you're targeting an outsized audience or expecting high traffic to your website/web application globally, then you bought to use LB (load balancer). information technology degree

The load balancer can assist you in some ways.

High availability

Scaling the appliance 

No or minimum downtime

Security on the fly

Better geographical user experience

SSL offloading

Geo-routing

Traditional LB hardware costs around $5,000, so most of the medium, start-up, or low-budget project doesn’t consider getting one.

But not anymore, you'll use a cloud load balancer for as low as $20 per month with all the good features you get in traditional LB.

If you're designing a high-availability application for better performance & security, then the subsequent cloud LB will assist you. Each has some advantages or additional features than others, so choose what works for you.

The following are a hosted solution meaning you don’t need to install any software. It’s a SaaS product. If you're trying to find an open-source solution, then inspect this post.

AWS ELB

Amazon Web Services (AWS) Elastic Load Balancer (ELB) is not any doubt one of the simplest load balancing solutions available within the cloud.

AWS got three sorts of load balancers.

Application – preferred for application layer (HTTP/HTTPS)

Classic – preferred for transport layer (TCP)

Network – a performance-oriented for TCP, UDP, and TLS traffic

f you're building web-based applications and use HTTP or HTTPS protocol, then an application load balancer is that the most suitable option.

ELB distributes the incoming requests to backend configured EC2 instances supported by the routing algorithm.

Some of the subsequent features of the AWS Application Load Balancer.

It supports HTTP/2, IPv6, WebSockets

You can offload SSL/TLS

AWS WAF integration supported

You can enable sticky session (cookies)

Forward request to the backend supported context URI/path or host

Add checkup 

Elastic LB provides the subsequent monitoring metrics by default.

Average latency

Requests Summary

New/active connection count

Processed bytes

And much more…

Pricing depends on the traffic, and you'll use their calculator to estimate.

GCP Load Balancing

GCP provides global single anycast IP to front-end all of your backend servers for better high-availability and scalable application environment.

Google provides three sorts of load balancing solutions.

HTTP(S) – layer 7, suitable for web applications

TCP – layer 4, suitable for TCP/SSL protocol based balancing

UDP – layer 4, useful for UDP protocol based balancing

Google Cloud is made on an equivalent infrastructure as Gmail, YouTube, so doubting performance is out of an issue. LB is capable of supporting quite 1 million requests per second, and you'll auto-scale your applications supported the demand with none manual intervention.

Autoscaling allows you to be prepared for a spike in traffic without slowing down the website’s performance.

Some of the price mentioning Google Cloud HTTP (S) LB features:

Affinity

One-click Google CDN integration

SSL termination

Health checks

You can create a content-based balancing.

Global forwarding rules

Geo-routing

Google CDN integration

IPv6 support

Websocket

Entire LB configuration you'll either roll in the hay through easy to use console or command-line.

NodeBalancers

Are you hosting your website with Linode? Linode provides all the essential features of LB at only $10 per month. The configuration is sort of straightforward and comes with a number of the essential features because of the following.

It supports IPv4, IPv6

Throttle the connection for suspicious traffic to stop the abuse of the resources

Can have a multi-port balancing

Terminate SSL handshake

Session persistence so your request always goes to an equivalent backend server

Health checks to make sure the request goes to a healthy server

You can choose routing algorithm from round-robin, least connection or source IP

NodeBalancers are often wont to balance any TCP based traffic, including HTTP, MySQL, SSH, etc.

Rackspace

Rackspace is one of the leading cloud hosting solution providers that provide cloud LB to manage the web traffic by distributing the request to the multiple backend servers.

It supports multiple routing algorithms like round-robin, weighted, least connection & random. you'll balance almost any sort of service protocol, including.

TCP

SMTP/IMAP

HTTP/HTTPS

LDAP/LDPAS

MySQL

FTP/SFTP

UDP

Some of the Rackspace cloud LB features:

SSL acceleration for improved throughput

You can terminate SSL so less CPU overload on your web server

Session persistence to forward an invitation to at least one server

10Gb/second network throughput

Manage LB through API

Protection malicious traffic by throttling the connection

You get logs for all traffic in Apache-style access logs for better log management.

Azure Load Balancer

Load balance the interior or internet-facing applications using Microsoft Azure LB. With the assistance of your Azure LB, you'll build high-available and scalable web applications.

It supports TCP/UDP protocol, including HTTP/HTTPS, SMTP, real-time voice, video messaging applications. If you're hosting your application already on Azure, then you'll forward your request from LB to the virtual servers.

Some notable features of Azure LB:

Native IPv6 support

You can have NAT rules for better security.

Hash-based traffic distribution

There are three sorts of load balancing solutions provide by Azure.

Application Gateway – layer 7, terminate the client connection and forward the request to the backend servers/services.

Azure load balancer – layer 4, distribute TCP traffic across Azure instances.

Traffic manager – DNS level distribution

SSL offloading, path forwarding, is supported only in “Application Gateway.”

DO Load Balancer

Similar to Linode, you'll control DigitalOcean’s load balancer either through an impact panel or API. If you're hosting your web application with DO and searching for an HA solution, then this is able to probably be the simplest one at a lower cost. It supports HTTP, HTTPS & TCP protocol with round robin and least connection routing algorithm. DO allow you to terminate SSL, configure the sticky session, health checks, forwarding rules, etc. for $10 per month. you'll implement Let’s encrypt certificate and compatible with DO Kubernetes.

Cloudflare Load Balancing

Cloudflare LB is exclusive.

Above all listed solutions allow you to load balance between their respective VMs and resources.

Ex – with GCP LB, you'll balance traffic to GCP VM only. Choosing GCP or AWS LB is sensible when your entire application infrastructure hosted on their platform. However, if your site is hosted on a platform that doesn’t offer a load balancer or offers limited features, then Cloudflare involves the rescue.

Cloudflare can forward traffic to any VMs on the internet it may be a true multi-cloud LB solution that comes with all the quality features you'll expect. a number of them are listed below.

Route traffic to fast responding VM

Serve from user’s nearest server

Dynamic routing

Supports HTTPS and TCP

Session affinity

Health checks on pool

Real-time updates

Cloudflare LB pricing starts from $5.

Imperva Load Balancer

Imperva provides a load balancer as a service for 3 main availability scenarios.

Local load balancer – request is forwarded to most suites servers supported routing algorithms within an equivalent data center. Global server load balancer (GSLB) – perfect for an outsized organization or hybrid cloud infrastructure where you'll forward the requests to multiple data centers for top availability and better performance.

GSLB supports geo-targeting, which suggests you'll forward the traffic supported visitor geolocation to the regional page or nearest data center.

Incapsula provides a real-time dashboard, active/passive health checks & choice to create the redirect/rewrite rules.

Conclusion

The load balancer is important for high-availability, and that I hope to offer you thought about a number of the high-performing cloud load balancers. How Fast is Google Cloud CDN for Your Website?

By Chandan Kumar on Flag Day, 2020

Posted in

Cloud Computing

apptrana

Get application security done the proper way! Detect, Protect, Monitor, Accelerate, and more…

Ensuring your website loads faster is one of the critical metrics to online business success.

Nobody likes a slow loading site.

There are various techniques to speed-up your website, but one among the quickest ways is to implement the proper CDN (Content Delivery Network).

If you're new to CDN, you'll ask the essential guide to CDN for better understanding.

In one line, CDN accelerates your content and serves the requested resources to the audience from the closest location. technology credit union

 It’s essential to settle on the low latency CDN, which has worldwide POP (point of presence) or edge location.

Let’s check out a number of the CDN providers and their number of POP.

In this post, I will be able to mention the way to enable Google Cloud CDN for your website and found out one WordPress URL to point out how briskly it's.

Google Cloud CDN is out there to anyone using Google HTTP(S) Load Balancer and provides many other features alongside low latency content distribution.

Anycast – all content distribution from single IP worldwide

HTTP/2 – new HTTP 2 protocol is support.

HTTPS – setup your SSL/TLS certificate at Load Balancer

Logging – Capture cache hits/miss in Stackdriver logging

Cache Purge – Purge the cache instantly

Enabling Google Cloud CDN

You can enable CDN on either the existing Google Load Balancer or New one.

To enable existing LB:

Log in to Google Cloud Platform to list the Load Balancer.

Click Edit

Go to the Backend configuration and choose the prevailing backend.

Tick the “Enable Cloud CDN” under backend configuration of HTTP(S) load balancer to create new LB and enable

As an LB pre-requisite, you would like to make an instance group. Once the instance group created, you'll do the subsequent to make HTTP(S) LB and enable Cloud CDN.

Log in to Google Cloud Platform

Go to Networking >> Load balancing >> Create a load balancer

Select “Start Configuration” for HTTP(S) Load Balancing

Create a backend configuration with the prevailing instance group and choose “Enable Cloud CDN.”

Note: Google will, by default, offer you an ephemeral IP, and it’s strongly recommended to urge one static public IP for the LB.

Testing Google Cloud CDN

So here is what I did to check.

I provisioned an f1-micro instance with a 10 GB SSD disk on Google Cloud. BTW, this configuration would cost around $6.

I installed WordPress with the assistance of EasyEngine with a none cache plugin and point my domain (Chandan.io) to VM external IP address.

Note: DNS propagation may take a while, so you bought to make sure your domain is resolving to Google Cloud VM before starting the test.

I installed the BLOGGING theme, so it's some content.

Testing WordPress without Google Cloud CDN

I ran a speed test against Chandan.io through BlazeMeter with 50 concurrent users for 2 minutes, and the results are:

The average reaction time is 13.46 seconds

90% reaction time is 26.73 seconds

So now, I do know my WordPress performance from VM, and it’s time to enable the cloud CDN and run the test again to match the results.

You may also consider another tool to perform a load test.

Testing WordPress with Google Cloud CDN

I created LB with Cloud CDN and updated my domain A record to point to LB's public IP.

The backend VM remains an equivalent, and that I ran the test with 50 users for 2 minutes, and here are the results.

Do you see an enormous difference?

The average reaction time 3.82s compare to 13.46s without CDN.

90% reaction time 9.6s compare to 26.73s without CDN.

Average throughput 10.28 hits per second compared to three .24 without CDN.

Google Cloud CDN made my website load faster and increased throughput. The performance looks promising, and if you’re already on GCP, then you'll want to require advantage of their low-latency CDN.

If you're curious about learning GCP then I might suggest finding out about this Udemy course.

How to Clone Google Cloud Virtual Machine?

By Chandan Kumar on July 17, 2020

Posted in

Cloud Computing

apptrana

Get application security done the proper way! Detect, Protect, Monitor, Accelerate, and more…

Cloning is an art!

Duplicating your VM is a superb thanks to means your project without human error. There are some reasons you'll want to clone your VM for a fast application setup.

Update: Google has made it tons easier now to clone the VM.

Create Similar Approach

Login to GCP and attend VM instances under Compute Engine.

Click on the respective VM to be cloned.

On top, you'll see a create an identical button.

Adjust the required (name, machine type, etc.) consistent with the need 

Click on create

Much easy!

The following I wrote when the “CREATE SIMILAR” button didn’t exist.

Snapshot Approach

Lately, I found out my tools website on one Google Cloud VM and had to line up another one for high-availability, and cloning was a life-saver.

Not only was it faster, but also I didn’t need to undergo all the configuration, installation manually, which has excellent room for missing/human error.

You may want to think about cloning VM if:

You want to save lots of time.

You should found out a reproduction for an additional reason.

Have to found out multiple instances for high-availability

Want to avoid manual work/human error

If you're in a situation to duplicate the Google Cloud Virtual Machine, then here is how you'll roll in the hay.

This is two steps process. First, where you create a snapshot and next, you employ that snapshot to make a VM instance.

You can do that while VM is running. this may make sure you don’t have any downtime and have an equivalent replica of the prevailing VM.Go to VM instances under Computer Engine

Click on Snapshots at the left navigation

10 Cloud-based Log Analyzer for IT Operational Insights

By Chandan Kumar on July 26, 2020

Posted in

Cloud Computing 

Sysadmin

Log Analyzer

Papertrail

Elastic Cloud

Grafana

DataDog

Loggly

SumoLogic

Logsene

Splunk

Logz.io

Timber

apptrana

Get application security done the proper way! Detect, Protect, Monitor, Accelerate, and more…

Increasing the number of devices, compliance requirements, businesses must capture the info for events are necessary for all kinds of business.

Analyzing logs can offer you real insights into what’s happening within your IT environment.

Some of the real-time examples:

Capacity planning

Early problem detection

Actionable reporting

Availability management

Events monitoring

If you've got a couple of MB of logs file, then it’s possible to review them manually; however, once you are working for a Medium to Enterprise business where logs are available in GB, then manual log analysis is that the nightmare.

If you're trying to find an answer to watch and analyze your web application logs, including infrastructure, then you'll consider the subsequent cloud-based log management. Most of them are having a free plan with some limitations where you'll try to ascertain how it works.

If you're trying to find an open-source solution then inspect this post.

Papertrail

Manage and analyze logs with Papertrail.

Aggregate all of your application logs, syslogs, and text log documents in one place. you'll use an API, instruction, or a browser to conduct a real-time search.

Papertrail alerts you instantly and provides you the choice to detect and archive trends. Enjoy lightning-fast log search in seconds. This analyzer is straightforward to use, understand, and implement. you'll get visibility across different systems in no time.

Leverage its log velocity analytics and troubleshoot spikes recorded within the last minutes or hours.

Elastic Cloud

Most likely, you've got heard about Elastic Search. Aren’t you?

Find information easily and quickly using the Elastic Cloud.

It also allows you to gain insights and keeps an eye fixed on technology investments on platforms like Google Cloud, Amazon Web Services (AWS), or Microsoft Azure. Let Elastic Cloud handle and maintain your solutions so you'll concentrate only on gaining deeper insights to stay running your business.

Elastic Cloud provides an advanced search experience tailored to your applications, websites, or workplaces. It empowers you with tools that will convey your search experience to the market and scale them quickly. With its help, you'll make your content findable.

It also allows you to unify platforms like Salesforce, Google Drive, etc. into a natural and personalized search experience. Leverage Elasticsearch into your applications and complete them with refined APIs, relevance controls, robust analytics, and intuitive dashboards.

Bring your entire APM traces, metrics, and logs together in one stack at scale to react and answer surrounding events. Add your data and visualize then at one undergo a haul and drop feature in Kibana Lens. Elastic Security helps in threat detection and prevention by integrating Elastic SIEM to endpoint security.

It involves deep investigation workflows, growing integrations, and case management to stop threats from damaging your data. Its Elastic Stack consists of Elasticsearch, Beats, Logstash, and Kibana.

Grafana

Are you trying to find hosted Grafana solutions?

Enjoy the fully-managed platform of Grafana for observing your infrastructure and applications, including dashboards, logs, and metrics.

Leverage Graphite metrics, Loki logs, and Prometheus metrics on this platform, which is high performing and available. With this platform by your side, you don’t need to search for multiple tools and tabs because every data metrics and sources are available in one place.

Grafana provides a centralized view for alerts and queries on different Prometheus instances. It also gives 13-month retention for capacity planning and analysis. Get wider visibility into the appliance stack with over 40 plugins for Enterprise and standard data sources.

It is effortless to feature sources in your Grafana Cloud employing a single click or through API. start together with your Grafana instance quickly because it needs no installation, no configuration. Just choose plugins and begin importing popular dashboards. the worth for Grafana Cloud starts at $49/month.

DataDog

Leverage DataDog to watch your logs, request traces, and metrics during a single platform. Search, analyze, and filter your logs quickly for data exploration and troubleshooting.

DataDog gives you the choice to research logs and explores them from your entire applications, platforms, and services. you'll filter and search your logs quickly by using facets that are generated automatically. Visualize your log data or build alerts on the dashboard.

You get a transparent picture of everything on your systems. Pivot directly from the metric graphs to your related logs using similar tags like service, host, etc. Pivot to APM to place your logs in accordance with its performance. Process and send every log that your infrastructure or applications produce with none limit.

Analyze deeply to make a decision on how you'll proceed with indexing dynamically using the filters. DataDog allows you to observe every aspect in real-time through Live Tail, which doesn't require any indexing. Archive thing you would like because it stores your history centrally and doesn't leave anything on its servers.

Collect and tag logs automatically and integrate them with built-in features. you'll apply facets automatically to the log data like HTTP status code, role, availability zone, etc. Use 3rd-party log shippers like Logstash, FluentD, NXlog, and Rsyslog. information technology degrees With DataDog, you'll enrich logs through technologies or build custom pipelines. you'll clone pipelines or modify them to capture facets and fields.