Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
cloudappliance/highavailabilitysetup [2020_02_14 15:34] – [Part III - Application Servers] dan | cloudappliance:highavailabilitysetup [2022_07_21 10:00] – smeadmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== SME File Fabric HA Setup "2 x 2" ===== | + | ===== SME File Fabric HA Setup "2 x 2" |
- | == last edited on Nov. 22, 2019 == | + | |
+ | == last edited on July 7, 2022 == | ||
==== Disclaimer ==== | ==== Disclaimer ==== | ||
The information in this document is provided on an as-is basis. You use it at your own risk. We accept no responsibility for errors or omissions, nor do we have any obligation to provide support for implementing or maintaining the configuration described here. Furthermore, | The information in this document is provided on an as-is basis. You use it at your own risk. We accept no responsibility for errors or omissions, nor do we have any obligation to provide support for implementing or maintaining the configuration described here. Furthermore, | ||
- | SME designs, implements and supports HA File Fabric solutions for customers on a paid professional services basis. | + | SME designs, implements and supports HA (High Availability) |
==== Introduction ==== | ==== Introduction ==== | ||
Line 74: | Line 75: | ||
# systemctl stop httpd | # systemctl stop httpd | ||
# systemctl stop cloudftp | # systemctl stop cloudftp | ||
- | # systemctl stop crond | ||
# systemctl stop vsftpd | # systemctl stop vsftpd | ||
</ | </ | ||
+ | <WRAP center round info 100%> | ||
+ | Please note this information above was updated with the 2106 release of the File Fabric. Please see this [[: | ||
+ | </ | ||
==== Part II - Database Servers ==== | ==== Part II - Database Servers ==== | ||
Line 104: | Line 106: | ||
</ | </ | ||
- | Place a "#" | + | Place a "#" |
- | {{::407ae286-9576-4a13-97bb-e2f0489a2a17.png? | + | ``` |
+ | MAILTO='' | ||
+ | #Ansible: | ||
+ | #* * * * * / | ||
+ | #Ansible: #3 | ||
+ | #5 4 * * * / | ||
+ | #Ansible: #2 | ||
+ | #* * * * * / | ||
+ | #Ansible: #5 | ||
+ | #10 2 1 * * / | ||
+ | #Ansible: #4 | ||
+ | #5 * * * * / | ||
+ | #Ansible: #7 | ||
+ | 30 1 * * * / | ||
+ | #Ansible: #6 | ||
+ | #10 * * * * / | ||
+ | * * * * * / | ||
+ | ``` | ||
+ | |||
+ | <WRAP center round info 100%> | ||
+ | Please note this information above was updated with the 2106 release of the File Fabric. Please see this [[: | ||
+ | </ | ||
=== iptables for dbservers === | === iptables for dbservers === | ||
Line 142: | Line 165: | ||
By default, the appliance memcached service listens only for connections from localhost, in order to share a memcache between the two application servers, we must change that. For redundancy we will do this on both smesql01 and smesql02. | By default, the appliance memcached service listens only for connections from localhost, in order to share a memcache between the two application servers, we must change that. For redundancy we will do this on both smesql01 and smesql02. | ||
- | To allow other machines to connect, edit / | + | < |
- | < | + | cd /var/www/ |
- | + | sed -i 's/127.0.0.1/0.0.0.0/g' .env | |
- | Change the line | + | docker-compose down |
- | OPTIONS=" | + | docker-compose up -d |
- | + | </ | |
- | to | + | |
- | + | ||
- | OPTIONS=" | + | |
- | + | ||
- | Making the file look like this | + | |
- | + | ||
- | {{:: | + | |
- | + | ||
- | then restart the memcached service | + | |
- | < | + | |
=== MySQL configuration for HA === | === MySQL configuration for HA === | ||
Line 288: | Line 301: | ||
Using database replication allows you to quickly continue service if a database goes down. | Using database replication allows you to quickly continue service if a database goes down. | ||
+ | <WRAP center round tip 100%> | ||
+ | See [[cloudappliance: | ||
+ | </ | ||
In MySQL replication, | In MySQL replication, | ||
Line 457: | Line 473: | ||
== memcached == | == memcached == | ||
< | < | ||
- | # systemctl disable | + | cd / |
- | # systemctl stop memcached | + | docker-compose down |
</ | </ | ||
== crontab == | == crontab == | ||
- | All of smestorage' | + | The majority |
**As root on smeweb02 only:** | **As root on smeweb02 only:** | ||
< | < | ||
Line 468: | Line 484: | ||
</ | </ | ||
- | Place a # in front of six of the seven jobs listed in the crontab | + | Your crontab |
+ | |||
+ | ``` | ||
+ | MAILTO='' | ||
+ | #Ansible: | ||
+ | #* * * * * / | ||
+ | #Ansible: #3 | ||
+ | #5 4 * * * / | ||
+ | #Ansible: #2 | ||
+ | #* * * * * / | ||
+ | #Ansible: #5 | ||
+ | #10 2 1 * * / | ||
+ | #Ansible: #4 | ||
+ | #5 * * * * / | ||
+ | #Ansible: #7 | ||
+ | 30 1 * * * / | ||
+ | #Ansible: #6 | ||
+ | #10 * * * * / | ||
+ | * * * * * / | ||
+ | ``` | ||
+ | |||
+ | <WRAP center round info 100%> | ||
+ | Please note this information | ||
+ | </ | ||
Restart both servers, so on both smeweb01 and smeweb02, execute a reboot. | Restart both servers, so on both smeweb01 and smeweb02, execute a reboot. |