Infra

How to switch to AlmaLinux from CentOS(RHE’s clone)

CentOS died CentOS was fork form Red Hat Enterprise’s fork(clone). But now CentOS is positioned as upstream of RHE which is opposition to previous position as downstream of RHE. And support term of CentOS was shortened from May/2029 to Dec/2021. CentOS users have chosen CentOS because it was considered as stable Linux distribution but this is not what they want. So new projects which try to create alternative of CentOS have started. Following projects are good candidates as successors of “CentOS”. ①AlmaLinux led by CloudLinux https://almalinux.org/ ②RockyLinux led by initial developer of CentOS https://rockylinux.org/ (AWS, Mattermost are sponsor of this project) AlmaLinux succeeded in providing fork of CentOS as first…

Read More
Infra

MariaDB vs MySQL vs PostgreSQL: Flow chart to choose best database

Which RDB should I use, MariaDB, MySQL or PostgreSQL? We often encounter articles listing what is good and what is bad but there is no conclusion for readers about which one you should use. So I provide flowchart by which you can choose suitable RDB(Relational DataBase) for you. In this article, I compare 3 major OSS RDBs(MariaDB, MySQL and PostgreSQL) I will show you background of flowchart in addition to benchmark result later. Flowchart of choosing suitable RDB for you Q1. Your service will be created based on WordPress Yes => MariaDB No => Q2. Q2. Do you want to develop mobile app or app using GIS? Yes => PostgreSQL…

Read More
Infra

Benchmark of performance degradation by Docker’s overhead with knowhow of installation&usage of docker

What is Docker and its usage Docker is virtual environment like vagrant but there are following differences. – Underlying kernel is shared among running containers(=virtual environment) and its overhead is far smaller than Vagrant which requires OS for each virtual environment and necessary resource – By describing the system settings in a file, reproducibility of the same system can be secured – Many docker images for many applications have already been created, shared and distributed like a library of programming language You have to be cautious to use Docker for production environment but it is definitely suitable for the purpose of defining and sharing development & testing environments. Benchmark of…

Read More
Infra

How to install PHP8

How to install PHP and related modules If you are using CentOS7 or older CentOS, please use yum instead of dnf. If you are using Ubuntu, please use apt-get. How to install PHP provided by Linux’s distributors PHP can be older than official PHP but its maintenance is done by OS distributor. So you can leave the update of PHP to them. How to install PHP provided by official PHP You can get latest PHP from official PHP, which is merit. Demerit is that you have to keep catching up with update provided by official PHP, so you have to take responsibility of that part. If you have multiple version…

Read More