build 2 servers for hosting ???

bundymind

Newbie
Joined
Oct 1, 2024
Messages
24
Reaction score
7
Hello, I want to ask that recently the hosting provided for my website is often down, I am thinking about building 2 hosting from 2 different providers (like big systems like youtube or facebook) maybe when 1 hosting is broken, the other hosting will be used to avoid the situation of the website being down, the website is always online, I want to ask if this is feasible and where should I start?
 
I've been thinking of setting this up for myself, using cloudflare DNS and API
1. set up a down detector cron job that does an uptime check
2. if the site is down then call a script that switches the A record to the backup server using Cloudflare API
3. rsync the two servers on a schedule
 
Instead of setting up two separate hosting providers, it's more practical to use a single, reliable hosting provider that offers high availability solutions. Cloud-based hosting services are ideal for this, as they typically provide automatic backups and redundancy. If one server goes down, another takes over seamlessly, ensuring your website stays online. Providers like Amazon Web Services (AWS), Google Cloud, or Azure already offer such solutions. Moving to a robust cloud infrastructure would be more efficient than managing two separate hosting setups, preventing downtime effectively.
 
Instead of setting up two separate hosting providers, it's more practical to use a single, reliable hosting provider that offers high availability solutions. Cloud-based hosting services are ideal for this, as they typically provide automatic backups and redundancy. If one server goes down, another takes over seamlessly, ensuring your website stays online. Providers like Amazon Web Services (AWS), Google Cloud, or Azure already offer such solutions. Moving to a robust cloud infrastructure would be more efficient than managing two separate hosting setups, preventing downtime effectively.
yeah i get what you mean but i'm making an adult website so i'm having trouble finding a provider that allows adult content
 
yeah i get what you mean but i'm making an adult website so i'm having trouble finding a provider that allows adult content
I understand the issue. Since you’re running an adult website, it can be tricky to find a provider that allows such content. Major cloud providers like AWS, Google Cloud, or Azure have strict policies against adult content. However, there are several hosting providers that specialize in or are more flexible with adult content hosting.

You could consider providers like Hostinger or KnownHost, both of which allow adult content on their servers. Offshore hosting options like Abelohost or Shinjiru are also good alternatives, as they offer more freedom regarding content policies and better privacy.

If security is a concern, especially for protecting against DDOS attacks, you might want to look into providers that offer strong protection services, like Voxility, which can be added to ensure the site stays secure.

These options should give you more flexibility for your adult site while maintaining high availability and privacy.
 
I understand the issue. Since you’re running an adult website, it can be tricky to find a provider that allows such content. Major cloud providers like AWS, Google Cloud, or Azure have strict policies against adult content. However, there are several hosting providers that specialize in or are more flexible with adult content hosting.

You could consider providers like Hostinger or KnownHost, both of which allow adult content on their servers. Offshore hosting options like Abelohost or Shinjiru are also good alternatives, as they offer more freedom regarding content policies and better privacy.

If security is a concern, especially for protecting against DDOS attacks, you might want to look into providers that offer strong protection services, like Voxility, which can be added to ensure the site stays secure.

These options should give you more flexibility for your adult site while maintaining high availability and privacy.
Thanks for your advice
 
Thread moved.

In light of your niche and your comments @bundymind , this seems like a good option -

I've been thinking of setting this up for myself, using cloudflare DNS and API
1. set up a down detector cron job that does an uptime check
2. if the site is down then call a script that switches the A record to the backup server using Cloudflare API
3. rsync the two servers on a schedule

But you have to see if its cost effective - you would probably need 3 hosts - 1 for each copy of the website to run on (These would need to be hosts that permit adult content) and then a third host to run the scripts used to detect if the live copy of the website goes down.

You could then have the script run every 5 minutes to check if the site is online - maybe with a curl request to the homepage or something similar (So that you can insure site is actually accessible rather than just checking if server is responding to ping, for example). Then if its down, you could use cloudflare API to switch records over to the other server.

Then have an rsync script that runs periodically (Perhaps daily) to copy contents from live server to standby server so that its kept up to date. You might need the script to copy files with rsync and then also dump and import the sql database.

You would also have to weigh up how much money you are losing with the site being down, vs the cost of running this kind of setup. Because the other simpler and cheaper option would be to set up an automatic offsite backup of the website and its contents - which could be run from a small and low-powered vps from any provider - and then just have an uptime monitor for the site, email notification if it goes down and then you just have a manual process for setting up a new host and transfering the site contents.

With my own personal backup strategy I can have a website back online within 10 minutes just by following a manual process of restoring backup. that might save you the ongoing cost of running two hosts. But again, it depends on budget and cost of any period of downtime.

If you don't know how to impliment any of the technical stuff then you can probably ask ChatGPT :cool:
 
yeah i get what you mean but i'm making an adult website so i'm having trouble finding a provider that allows adult content
Find a good hosting and don't reinvent the wheel. Netherlands are welcome with Adult content.
 
Thread moved.

In light of your niche and your comments @bundymind , this seems like a good option -



But you have to see if its cost effective - you would probably need 3 hosts - 1 for each copy of the website to run on (These would need to be hosts that permit adult content) and then a third host to run the scripts used to detect if the live copy of the website goes down.

You could then have the script run every 5 minutes to check if the site is online - maybe with a curl request to the homepage or something similar (So that you can insure site is actually accessible rather than just checking if server is responding to ping, for example). Then if its down, you could use cloudflare API to switch records over to the other server.

Then have an rsync script that runs periodically (Perhaps daily) to copy contents from live server to standby server so that its kept up to date. You might need the script to copy files with rsync and then also dump and import the sql database.

You would also have to weigh up how much money you are losing with the site being down, vs the cost of running this kind of setup. Because the other simpler and cheaper option would be to set up an automatic offsite backup of the website and its contents - which could be run from a small and low-powered vps from any provider - and then just have an uptime monitor for the site, email notification if it goes down and then you just have a manual process for setting up a new host and transfering the site contents.

With my own personal backup strategy I can have a website back online within 10 minutes just by following a manual process of restoring backup. that might save you the ongoing cost of running two hosts. But again, it depends on budget and cost of any period of downtime.

If you don't know how to impliment any of the technical stuff then you can probably ask ChatGPT :cool:
thanks
 
Hello, I want to ask that recently the hosting provided for my website is often down, I am thinking about building 2 hosting from 2 different providers (like big systems like youtube or facebook) maybe when 1 hosting is broken, the other hosting will be used to avoid the situation of the website being down, the website is always online, I want to ask if this is feasible and where should I start?
look up load balancing.
 
As an option, you can consider using a single hosting provider but placing servers in two different data centers within the same location, if such an option is available from the hosting provider. However, it’s important to understand that this solution involves double the costs, but the infrastructure will be independent. Alternatively, you could set up redundancy by placing the servers in different racks within the same data center and managing the load at the software level.
 
Yes, having two hosting providers for redundancy is feasible and commonly used by large systems. This approach is called high availability or multi-hosting architecture. To implement this, you can use DNS failover with services like Cloudflare or AWS Route 53, which automatically switches traffic to a backup server when the primary server is down. You'll need to set up replication between the two hosting providers to ensure data is synchronized. Additionally, load balancers can distribute traffic across both servers, improving uptime. Start by researching DNS failover services and setting up server replication between your hosts.

...or simply use amazon ec2 and you are good ;)
 
yeah i get what you mean but i'm making an adult website so i'm having trouble finding a provider that allows adult content
if your hosting is not good enough then change it. In regards the adult content .. nothing special .. plenty of choices out there.

Now if your websites are making $$$ and the double expenses are not an issue for you then 2 VPS or Dedicated Servers + DNS Failover CF will do the job.

Personally, I would go for the first option before I start thinking for backup solutions.
 
if your hosting is not good enough then change it. In regards the adult content .. nothing special .. plenty of choices out there.

Now if your websites are making $$$ and the double expenses are not an issue for you then 2 VPS or Dedicated Servers + DNS Failover CF will do the job.

Personally, I would go for the first option before I start thinking for backup solutions.
I wonder how large websites that usually contain thousands of videos can back them all up.
 
maybe when 1 hosting is broken, the other hosting will be used to avoid the situation of the website being down, the website is always online, I want to ask if this is feasible and where should I start?
Yes, it does exist
They are commonly referred to
Failover/High Availability/load balancing
different approaches, same to similar concepts
 
Back
Top