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

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

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

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

User tags

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