If you like DNray Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Internal hosting for company websites

Started by jeromebunker, May 20, 2023, 12:01 AM

Previous topic - Next topic

jeromebunkerTopic starter

What are the steps to implement an uninterrupted internal hosting for company websites? How can one ensure that the site remains operational during updates and reboots?

For instance, suppose there is an internal portal that needs periodic updates and reboots. How can one configure the necessary settings such that the site stays functional throughout this process?

It can be challenging to find relevant information when searching phrases like "how to set up hosting" or "how to create hosting," as they often lead to suggestions to buy VDS or panels. However, it's important to note that ready-made external hosting is not the solution in this case.

One possible solution to ensure uninterrupted hosting is to have a backup host that takes over when the primary host is down for updates or maintenance. However, the specifics of this setup require careful consideration and planning.
  •  


Inereeway

The machine has been set up with two virtual machines and a DNS server. The entire system runs on virtual machines such as Nginx, PHP, and MySQL. There is replication between databases, synchronization between folders, and of course, backups are also taken regularly.

This setup allows for efficient resource allocation and management, as well as easy maintenance and scaling of the system. Additionally, the use of virtual machines allows for better security and isolation of services, reducing the risk of cross-contamination or malicious attacks. Overall, a well-designed and maintained system can greatly benefit the productivity and success of a business or organization.
  •  

hermenepoke

To support geo-distribution and multiple databases, the portal requires a rewrite. Additionally, independent and geo-distributed servers need to be set up. Finally, a complex DNS system should be established to switch between them.

It is unclear what the updates are affecting, but despite them, the site remains operational.
  •  

doro

The focus here is on minimizing downtime during updates and reboots, particularly for an internal portal or similar applications.

First, you'll want to consider a clustered hosting solution. This involves setting up multiple servers to work together. If one server goes down for maintenance, the others can continue to serve requests. Here's how you can do this:

1. Select the Right Infrastructure. Choose a server configuration that allows clustering. You can use a load balancer to steadily distribute incoming traffic among your servers.

2. Set Up Load Balancing. Implement a load balancer that can redirect traffic to alternative servers in case one is down. Tools like HAProxy or Nginx can be useful here. This setup means that while one server is being rebooted or updated, the load balancer routes incoming requests to the available servers.

3. Application Clustering. Ensure your application is designed to run in a cluster. This often means you'll need to have stateless applications or share state across instances using a database or an in-memory data store like Redis.

4. Database Redundancy. If your platform relies on a database, ensure that your database is also redundant and can handle failover. Consider using a master-slave configuration or database clustering solutions such as MySQL Group Replication.

5. Automated Backups. Always have automated backups in place, both for your application data and for the entire system settings. Backups should executed on a regular basis and be stored safely in case rollback is necessary.

6. Staging Environment. Before making updates live, test them in a staging environment that mirrors your production setup. This practice helps catch issues that could disrupt service.

7. Rolling Updates. Instead of updating all servers at once, apply a rolling update process. This involves updating one server at a time while keeping the rest operational. Following this, monitor for issues before proceeding to the next server.

8. Health Checks. Implement health checks that monitor the status of your servers. The load balancer can use these checks to decide if a server should receive traffic or if it should be taken offline for maintenance.

9. Plan Downtime. When possible, schedule updates during off-peak hours to minimize the impact on users. Communicate this schedule with your team, so they are aware of potential brief disruptions.

10. Monitor and Log. Utilize monitoring tools to track the performance and uptime of your servers. Also, maintaining logs will help in diagnosing any issues that occur during updates or reboots.

Establishing a robust internal hosting environment requires diligence and preparation. By following the steps above, you can achieve a system that remains functional and resilient against downtime caused by updates and reboots. Always test your configurations comprehensively to ensure reliability, and don't hesitate to adjust your strategies as technologies and business needs evolve.
  •  


If you like DNray forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...