Main motivation here is to have a cheap and simple Postgres Database server with backups, but without the failover. And in order to get cheap (in terms of memory) connections - use the PgBouncer. Why without the failover? Because in my case I didn't need a 100% stable cluster, but I needed a cheap and simple solution, which in case of disaster could be recovered in some X hours. If you are looking for a failover cluster - there is nice automation here: https://github.com/vitabaks/postgresql_cluster
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
Можно в любом хостере за пределеами России:
Например, можно взять самый простой Cloud VPS на Hetzner: https://www.hetzner.de/cloud CX11 за 2,5 евро в месяц.