Web-hosting

Replication

Website DNS Load Balancing and High Availability using Cloudflare.

The main motivation to have the replication for your website is to ensure that it stays online even during hacker attacks and region disasters. Because the DeTEE network is community powered, it is possible that the node operator will go offline, especially for operators with no reputation, low uptime or bad rating.

DeTEE HA Setup

DeTEE replicated setup looks exactly the same as on other cloud providers.

Because DeTEE doesn't have the limitation of where to host your website, you can deploy it in multiple available regions at the same time, thus achieving high availability and ensuring the website is resistant to hacker attacks like DDoS.

Check the following diagram to see the example with 2 replicas of the website:

Quickstart

Setting this up is very easy on DeTEE. Just deploy 2 identical VM's in two different regions. Here is the example of one of the VM's (in California):

Terminal
detee-cli vm deploy --location California \
                    --vcpus 2 --memory 2000 --disk 5 \
                    --hostname website-ca \
                    --distro ubuntu \
                    --public-ip \
                    --hours 800
For the website you need to have a public IP address. Feel free to pick the resources that fit your needs best. You will need to also update the hours once in a while until the VM expires.

Then in the Cloudflare dashboard, connect both IP addresses to your domain using the Traffic Routing feature. It is called Load Balancing. The resulting configuration will look like this:

For the High Availability you will need to set up the failover and mention the primary host if the secondary host is down.