Scenario:
- You have one or more datacenters running your application
- Your application is mapped on a well-defined hostname (ie. www.myapplication.com)
- You are using a third-party CDN (Content Delivery Network) solution to offload your traffic to your content provider
- You need your clients traffic to be sent to your datacenter(s) as long as it/they is/are available
- If one or more datacenters are not available you want your traffic to be dynamically and automatically offloaded to your CDN provider
Solution:
- Use GSLB.me with your load balancing algorithm of choice and enable CDN offload
- Define one geohost that will be pointed by www.myapplication.com via a DNS CNAME record
- Create your target
- Assign the relevant checks to the target
- Configure the CNAME record on the primary DNS server that handles the domain myapplication.com
How to configure it:
- Register on GSLB.me and log on
- Select under which one of the available domains (gslb.us, gslb.info, …) you want to create your geohost. You can choose the domain you prefer, this is purely a “cosmetic” choice. Let’s choose mywebsite.gslb.eu
- Create your geohost: a geohost is the FQDN (Fully Qualified Domain Name) that your authoritative DNS will use as a CNAME for your application hostname (ie. www.myapplication.com). Select “Round robin” as your balancing algorithm. This can be any available algorithm, CDN offload overlays on top of all available balancing algorithms
- Define the target: the target’s IP address is a.b.c.d
- Select checks to be performed on the first target
- Configure your authoritative DNS to use a CNAME record to have www.myapplication.com point to mywebsite.gslb.eu