The availability of a system is typically expressed as a percentage of uptime in a given year or as a number of nines. Below, you can see a list of the percentages of availability based on the downtime per year, as well as its notation in nines. Availability (%) Downtime (per year) 90% (“one nine”)…
Category: automation
Set Cloudflare WAF rules with Fail2Ban actions
Cloudflare offers API access to it’s WAF IP access rules, which can be a great tool to ban bots on a “edge” level, reducing load on each instance. So once a server bans an IP for repeatedly failing auth, it will be blocked on the CF level, unable to bother other servers. My old script…
Python Project Scaffold
create a project scaffold or project template to get started faster with python projects We will create a virtual environment inside our project to avoid any incompatibility issues Example code Example test code We need then a Makefile to automate builds and tests Then we will create the requirements file The .github/workflows/pythonapp.yml file that stores…
Intro to Docker and Docker compose
we will use docker containers to manage the different services. Here is an example of a http server container and an api server container, that we will use as an example for two containers built to communicate with each other, open a port to the host and automate the start up including the build and…