ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
  • Backup and High Availability
    • UKFast Backup
    • Backup Techniques
    • General backup guidance
    • FASTcloudbackup
    • Business Continuity Platform
      • Introduction to BCP
      • Managing your cluster
      • Distributed Replicated Block Device (DRBD)
      • Unison file-level replication
      • Fencing / STONITH
      • Installing, updating, and configuring software
      • Split brain
      • Frequently asked questions
    • Classic Load Balancers
    • Load Balancers
    • Disaster Recovery as a Service
  • eCommerce Stacks
  • Security
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
  • Webcelerator
  • MyUKFast
  • Home >
  • Backup and High Availability >
  • Business Continuity Platform >
  • Installing, updating, and configuring software

Installing, updating, and configuring software¶

The only information replicated between the cluster is that stored in clustered volumes DRBD, NFS, or SAN storage), and that which is copied over via Unison.

When it comes to software installed on the cluster, this is not replicated between the two.

As such, if you update the software on acme-webdb-01, you will also need to perform the same update on acme-webdb-02. The same goes for installing new software or replacing software.

If any new software installed on the server needs to be part of the cluster, consideration will need to be given to how this should be implemented; and is probably best discussed with our support team to make sure the implementation of additional clustered services doesn’t impact your service in a failover scenario.

This includes the installation of Apache modules, PHP modules, or changing PHP versions.

A good example of additional clustered services is a requirement for a Node.js application that serves webhooks for your site, and needs to run on the same node as the web service - depending on the reliability and importance of the Node.js element, you might need to implement this into the cluster differently.

Warning

If the software versions between cluster nodes are different, or you haven’t synchronised the configuration between nodes, your sites may go offline in the event of a failover.

In these cases, the failover will be successful from PCS’ perspective, but your application won’t be able to connect to required software / use required PHP modules / use the correct PHP version / etc, so might show errors or not work at all.

Checking whether your nodes match¶

To check whether the software versions match on both nodes, you can perform the following command (changing the hostname to match your solution):

[root@acme-webdb-01 ~]# diff <(rpm -qa | sort) <(ssh -p2020 acme-webdb-02 "rpm -qa | sort")

If there are any differences highlighted, you should seek to reconcile these so that both nodes have all software required to run your application.

Adding new clustered software¶

As already mentioned, it is best to consult with support before adding new clustered services.

Some methods of adding services into the cluster:

  • Add a new resource to the end of the g_web (for example) resource group so that the service starts with the web service each time. Then storing the files for this additional service in the related clustered volume, or copy them over with Unison.

  • Add a new resource group for this service, with either a new external VIP or an internal-only VIP running over the MySQL crossover cable, and copy the data between nodes using Unison. Then add resource constraints to prefer services run together or prefer to run on opposite nodes.

  • Run the service standalone on both servers, and have the application look at localhost (127.0.0.1) when connecting to the service. This usually works for caching services like Redis - so the cache would need rebuilding in the event of a failover.

Notwithstanding, your service might not be compatible with the options listed above, however these should give a guide on what is possible.

Note

It is important that you ensure any configuration required for additional software (clustered or otherwise) is replicated between nodes. Otherwise, you risk having your site go offline in the event of a failover as a result of mismatched configuration between nodes or service startup failure.

  • Unison file-level replication

Next Article > Split brain

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ