Производительность glusterfs

rsync на gluster разделе работает очень медленно.
Если подмонтировать через NFS работает быстрее. Но вплоть до версии 3.3 есть баг, при монтировании на сервере, процесс glusterfsd через некоторое время зависает.

Надо обеспечить выполнение rsync на сервере, что бы сетевые задержки не тормозили процесс сканирования файлов.

Native gluster client на дефолтных настройках начинает грузить диски.

В данном случае помогают такие настройки:

performance.write-behind-window-size: 65535
performance.read-ahead: off
performance.cache-size: 1073741824

multithreaded parallel rsync

find -type d | xargs -I '{}' -P 10 -n1 rsync -a --no-r remote:path/'{}'/ '{}'/

rsync args:
--no-r No recursive

xargs args:
-P 10 Run up to 10 processes at a time.
-n 1 Use 1 argument per command line.

Compress RAM on linux

sudo apt-get install zram-config

MySQL Performance Tuning: EXPLAIN

EXPLAIN Types

system              The table has only one row 
const               At the most one matching row, treated as a constant 
eq_ref              One row per row from previous tables 
ref                 Several rows with matching index value 
ref_or_null         Like ref, plus NULL values 
index_merge         Several index searches are merged 
unique_subquery     Same as ref for some subqueries 
index_subquery      As above for non-unique indexes 
range               A range index scan 
index               The whole index is scanned 

dstat example

dstat -c --top-cpu -d --top-bio --top-latency

User tags

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