Create few good practices for our infrastucture #375
CharlesNepote
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created this page as a start: https://github.com/openfoodfacts/openfoodfacts-infrastructure/wiki
Everything can be discussed.
Here are some practices we could talk about:
Few and simple rules have a better chance to be followed.
We could prioritise as W3C use to, with keywords “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL”.
Disable password authentication in favour of SSH keys
Using SSH key IS really simpler, I can write a quick documentation for beginners.
Disable root login over SSH
Working with root or not
Taking care of production resources: always using "nice" for scripts manually launched
Stéphane's tip: just use
nice ./mycommand -arg1 foo -arg2 bar
(nice
default to lower the priority).When possible, use techs that the majority of people knows
Our infrastructure is not so big. Low techs ensure it will be maintainable.
Example: good old scripts vs Ansible.
Standardize some core tools
Example: our standard distro is Linux Debian (well suited with point 5).
Basic tools to install on each machine
Example: htop, goaccess...
Log every sys action on /root/changelog.log
Add important commands beeing played to /root/changelog.log
So everybody knows what you have done concretly.
Backups?
Monitoring?
Beta Was this translation helpful? Give feedback.
All reactions