When running apps on a docker swarm sometimes we know from the monitoring/alerting system just a container hostname, but measures should be taken on the host. For example, free up some disk space. I’ve struggled to find a way to find it out in an easy way, but haven’t succeeded. So, I came up with…
Tag: system administration
Custom php.ini to the docker library php using docker-compose config
An approach that adds additional ini files to be parsed by php by just adding two lines to your docker-compose.yml. It’s a convenient practice for small projects without ad-hoc tailoring to use prebuilt images from docker hub. Sometimes we need to change some php.ini settings for a php container, for example, increasing upload_max_filesize parameter. The…
Disable transparent HugePages in Ubuntu or Kubuntu for TokuDB on boot
To enable TokuDB engine in MariaDB one has to be sure that transparent hugepages are disabled. I assume you’ve already installed MariaDB and edited config files so that TokuDB should be enabled. Test if transparent hugepages are enabled or disabled: root@sheershoff-kbnt:/etc# cat /sys/kernel/mm/transparent_hugepage/enabled always madvise [never] root@sheershoff-kbnt:/etc# cat /sys/kernel/mm/transparent_hugepage/defrag always madvise [never] If you see…
Debian Etch patch ShellShock (BashDoor) vulnerability
Generally speaking if your hosting is using Debian Etch nowadays it is time to consider moving to a more contemporary OS. Nevertheless, here are the instructions on how to patch bash on Debian Etch to fix the ShellShock vulnerability: [cc lang=”bash”] #first find out the version you have so you know what to get for…