Облегчаем docker контейнеры

Иногда требуется сократить использование RAM, например на слабых хостингах, в тестовых средах или для локальной разработки.

Для сокращения использования памяти контейнерами mysql, mariadb можно добавить "--innodb-buffer-pool-size=64m" к запуску. Например для docker-compose:

  db:                                                                                             
    image: mariadb:10.1
    ...                                                                          
    command: --innodb-buffer-pool-size=64m

User tags

squeeze zRam grub fail2ban puppet SpamAssassin cpu usage StorMan keyboard leap second tftp gpg xargs iowait LVM routing ddos chroot performance sysctl.conf source backup MODx virtualbox search SuperMicro iSCSI mount bscan rsync scsi pacemaker munin freedos ipmi openvpn vim docker htop arping quagga qemu OpenSSL sysresccd vrrpd bug debootstrap exim4 cluster backtrace nvidia numa Adaptec tiger initrd radeon .htaccess ardour Swift Salt HDFS bonding virt-install Areca soa sg graylog2 sysctl tun replication virsh ipmitool gdb raid build rtsp /etc/network/interfaces video glusterfs vtysh centos 7 cfq debian nfs4 rpm proxy top cache lubuntu ubuntu su bacula corosync xen regex lstat opcontrol ha apache 3Ware shorewall raid5 sftp tool dstat php perl bridge taskset glxinfo wget iptables perlbrew vlan HTTPS pulseaudio alsa firefox iops mdadm netfilter git java deb KVM PTR sublime mysql opreport AMD fido7 ps bind in-addr.arpa DRBD vrrp parallel apt SYN gre RT pam exim NFS slab profiling rtl8723be dhclient security erase tar mkfs iostat hotplug SSD conntrack fio hdparm tin noop CPAN docker-compose APU ansible elliptics groups boot lxc tzdata arp jackd pvmove asoundrc rkhunter etch mariadb cgroups kernel oprofile MegaRAID find OpenStack arch ssh dhcp LSI dpkg sysfs swap gtk alien CentOS idmapd encrypt nginx shellshock chromium equalizer cpanm sysrq language drupal cpu xhost PXE ip storage youtube wordpress flash newgrp ulimit core dump dns lts dovecot lenny X forwarding qcow2 limit_conn usb route bash xfs