Helpful links:
- https://docs.expertflow.com/cx/rke2-deployment-in-high-availability-with-nginx-haproxy-195855073.html
- https://docs.rke2.io/install/ha
We need all machines up and running. At first we will setup the loadbalancer.
Helpful links:
We need all machines up and running. At first we will setup the loadbalancer.
#!/bin/bash | |
# taken from https://tailscale.com/kb/1133/proxmox | |
NAME="$(tailscale status --json | jq '.Self.DNSName | .[:-1]' -r)" | |
tailscale cert "${NAME}" | |
pvenode cert set "${NAME}.crt" "${NAME}.key" --force --restart |
In the interest of complete transparency, if you follow this guide, there’s a very minuscule but non-zero chance that you may violate the Bekenstein bound, at which the resulting black hole may swallow the earth whole. You have been warned!
Find the proper driver at the NVidia website.
Note: Make sure to select "Linux 64-bit" as your OS
Hit the "Search" button.
This guide aims to take a look at a distributed, scalable SeaweedFS as a backend storage for an OwnCloud server. Why not NextCloud? Because NextCloud's S3 connector is outdated and not maintained, and won't work with SeaweedFS. Both OwnCloud and NextCloud have the same support and the same plugins. The only concern anyone has is some weird split that happened between the two years ago. It's fine.
This was a giant pain in the ass, but eventually I got it working. This is how.
All servers start from fresh, clean installs of Ubuntu 18.04.3
This guide will use three seperate boxes (one master/OwnCloud and two slaves). I'm assuming there's spare, unformatted disks attached to the slaves. If not, ignore or change the section on mounting to fit your needs.
This is an opinionated handbook on how I migrated all my Rails apps off the cloud and into VPS.
This is how I manage real production loads for my Rails apps. It assumes:
<?php | |
/* | |
* NOTES: | |
* | |
* - This was designed for my personal use and could be more robust. | |
* - Make sure to update the tables you want to import into. | |
* - Make sure to update the website url you want to import from. | |
* - Customize as needed. I had very few posts and no media. | |
* | |
*/ |
# SETUP # | |
DOMAIN=example.com | |
PROJECT_REPO="[email protected]:example.com/app.git" | |
AMOUNT_KEEP_RELEASES=5 | |
RELEASE_NAME=$(date +%s--%Y_%m_%d--%H_%M_%S) | |
RELEASES_DIRECTORY=~/$DOMAIN/releases | |
DEPLOYMENT_DIRECTORY=$RELEASES_DIRECTORY/$RELEASE_NAME | |
# stop script on error signal (-e) and undefined variables (-u) |
#!/bin/bash | |
# Define the output file | |
output_file="combined.md" | |
# Remove the output file if it exists to avoid including it in the search | |
if [ -f "$output_file" ]; then | |
rm "$output_file" | |
fi |
#!/bin/bash | |
# set mysql into innodb recovery mode on startup | |
mode=1; sed -i "/^\[mysqld\]/{N;s/$/\ninnodb_force_recovery=$mode/}" /etc/my.cnf | |
# restart mysql | |
systemctl restart mysqld | |
# remove recovery mode setting | |
sed -i '/innodb_force_recovery/d' /etc/my.cnf |