CDN Configuration on Google Cloud(GCP)

Sam Kadam
Sam Kadam
Jun 21 · 5 min read

Proof of Concept

We started the process with a POC in which we considered existing running infra compatibilities with services offered by the Google Cloud Platform and also planned for elements in our future roadmap.

Key areas covered in POC:

· CDN introduction

Introduction

Cloud CDN by Google is a low-dormancy content conveyance answer for little to big business.

Pre-requisite

Wondering why pre-requisite?

Scenario

I’ve two VM running (one in Singapore and another in the US west). I want to load balance requests to both VM using HTTP load balancer and activate CDN on it.

Creating a health check

A health check is essential for the load balancer to determine if VM is healthy. When VM can’t respond to the query, then LB would mark that unhealthy and stop sending traffic.

  • Request path — a working context root.
  • Health criteria — adjust as necessary

Creating an instance group

Instance group is used in the load balancing setup. It’s called backend services for LB.

  • Zone — choose the zone where VM is running
  • Group type — tick unmanaged instance group
  • VM instances — select the VM from the list
  • Click Create

Creating a Load Balancer

· Go to Load balancing under Network services

  • Enter the name of LB
  • Click on “Backend configuration.”
  • Click “Create a backend service.”
  • Enter the name of the backend services
  • Add both instances group which you created earlier as a backend
  • Select health check which you created previously
  • Session affinity — select if you want the session stickiness
  • Click create
  • Click frontend configuration and enter the name
  • Select “create IP address” to get the static IP address. This is important as by default you will get ephemeral IP.
  • Protocol, IP version, and port leave it to the default
  • Click Done

Activating Google Cloud CDN

And, finally, it’s time to enable the CDN.

Petabytz

Petabytz Technologies Inc. is a leading IT consulting,Data Science and Engineering, business solution and systems integration firm with a unique blend of services.

Sam Kadam

Written by

Sam Kadam

Petabytz

Petabytz

Petabytz Technologies Inc. is a leading IT consulting,Data Science and Engineering, business solution and systems integration firm with a unique blend of services.