Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
| — | navody:server:glusterfs [2015/07/30 19:22] (aktuální) – vytvořeno petr | ||
|---|---|---|---|
| Řádek 1: | Řádek 1: | ||
| + | ====== GlusterFS bez cap_sys_admin ====== | ||
| + | Ve výchozím stavu používá GlusterFS xattrs, který není dostupný pod kontejnery, bez cap_sys_admin capabilities. Tady je stručný návod k sestavení GlusterFS pod Debianem tak, aby používal uživatelské namespaces: | ||
| + | |||
| + | < | ||
| + | apt-get install dpkg-dev fuse | ||
| + | apt-get build-dep glusterfs | ||
| + | |||
| + | # Stáhneme zdrojové kódy glusterfs | ||
| + | apt-get source glusterfs | ||
| + | |||
| + | # Pokud máte problémy s některými GPG klíči, můžete si je přidat: | ||
| + | gpg --keyserver keyserver.ubuntu.com --recv-keys 90CBD8E4 | ||
| + | |||
| + | # Upravte zdrojové kódy prostým "najdi a změň" | ||
| + | cd glusterfs-3.5.2/ | ||
| + | find . -regex ' | ||
| + | |||
| + | # Sestavte balíčky | ||
| + | dpkg-source --commit | ||
| + | dpkg-buildpackage | ||
| + | cd .. | ||
| + | |||
| + | # Nainstalujte je | ||
| + | dpkg -i glusterfs-*.deb | ||
| + | </ | ||
| + | |||
| + | Funkční svazek: | ||
| + | |||
| + | < | ||
| + | gluster& | ||
| + | |||
| + | Volume Name: shared | ||
| + | Type: Replicate | ||
| + | Volume ID: 7253c6d6-aec0-4804-9bb5-c4b0150d69bc | ||
| + | Status: Started | ||
| + | Number of Bricks: 1 x 2 = 2 | ||
| + | Transport-type: | ||
| + | Bricks: | ||
| + | Brick1: 172.16.0.62:/ | ||
| + | Brick2: 172.16.0.1:/ | ||
| + | </ | ||
| + | |||
| + | Výkonnostní testy na vpsFree.cz: | ||
| + | |||
| + | < | ||
| + | Iozone: Performance Test of File I/O | ||
| + | Version $Revision: 3.430 $ | ||
| + | Compiled for 64 bit mode. | ||
| + | Build: linux-AMD64 | ||
| + | |||
| + | Contributors: | ||
| + | Al Slater, Scott Rhine, Mike Wisner, Ken Goss | ||
| + | Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR, | ||
| + | Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner, | ||
| + | | ||
| + | Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root, | ||
| + | | ||
| + | | ||
| + | |||
| + | Run began: Fri Jul 17 11:48:28 2015 | ||
| + | |||
| + | Setting no_unlink | ||
| + | Include close in write timing | ||
| + | Include fsync in write timing | ||
| + | No retest option selected | ||
| + | Record Size 64 kB | ||
| + | File size set to 1048576 kB | ||
| + | Command line used: ./iozone -w -c -e -i 0 -+n -C -r 64k -s 1g -t 8 -F / | ||
| + | Output is in kBytes/sec | ||
| + | Time Resolution = 0.000001 seconds. | ||
| + | Processor cache size set to 1024 kBytes. | ||
| + | Processor cache line size set to 32 bytes. | ||
| + | File stride size set to 17 * record size. | ||
| + | Throughput test with 8 processes | ||
| + | Each process writes a 1048576 kByte file in 64 kByte records | ||
| + | |||
| + | Children see throughput for 8 initial writers | ||
| + | Parent sees throughput for 8 initial writers | ||
| + | Min throughput per process | ||
| + | Max throughput per process | ||
| + | Avg throughput per process | ||
| + | Min xfer = 1009216.00 kB | ||
| + | Child[0] xfer count = 1024000.00 kB, Throughput = 6642.03 kB/sec | ||
| + | Child[1] xfer count = 1045696.00 kB, Throughput = 6782.18 kB/sec | ||
| + | Child[2] xfer count = 1034880.00 kB, Throughput = 6712.34 kB/sec | ||
| + | Child[3] xfer count = 1022080.00 kB, Throughput = 6629.23 kB/sec | ||
| + | Child[4] xfer count = 1011328.00 kB, Throughput = 6559.43 kB/sec | ||
| + | Child[5] xfer count = 1009216.00 kB, Throughput = 6546.01 kB/sec | ||
| + | Child[6] xfer count = 1048576.00 kB, Throughput = 6947.46 kB/sec | ||
| + | Child[7] xfer count = 1028352.00 kB, Throughput = 6670.79 kB/sec | ||
| + | |||
| + | iozone test complete.</ | ||
| + | |||
| + | Svazek GlusterFS: | ||
| + | |||
| + | < | ||
| + | Iozone: Performance Test of File I/O | ||
| + | Version $Revision: 3.430 $ | ||
| + | Compiled for 64 bit mode. | ||
| + | Build: linux-AMD64 | ||
| + | |||
| + | Contributors: | ||
| + | Al Slater, Scott Rhine, Mike Wisner, Ken Goss | ||
| + | Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR, | ||
| + | Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner, | ||
| + | | ||
| + | Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root, | ||
| + | | ||
| + | | ||
| + | |||
| + | Run began: Fri Jul 17 12:19:17 2015 | ||
| + | |||
| + | Setting no_unlink | ||
| + | Include close in write timing | ||
| + | Include fsync in write timing | ||
| + | No retest option selected | ||
| + | Record Size 64 kB | ||
| + | File size set to 1048576 kB | ||
| + | Command line used: ./iozone -w -c -e -i 0 -+n -C -r 64k -s 1g -t 8 -F / | ||
| + | Output is in kBytes/sec | ||
| + | Time Resolution = 0.000001 seconds. | ||
| + | Processor cache size set to 1024 kBytes. | ||
| + | Processor cache line size set to 32 bytes. | ||
| + | File stride size set to 17 * record size. | ||
| + | Throughput test with 8 processes | ||
| + | Each process writes a 1048576 kByte file in 64 kByte records | ||
| + | |||
| + | Children see throughput for 8 initial writers | ||
| + | Parent sees throughput for 8 initial writers | ||
| + | Min throughput per process | ||
| + | Max throughput per process | ||
| + | Avg throughput per process | ||
| + | Min xfer = 364224.00 kB | ||
| + | Child[0] xfer count = 528192.00 kB, Throughput = 2584.27 kB/sec | ||
| + | Child[1] xfer count = 525248.00 kB, Throughput = 2571.77 kB/sec | ||
| + | Child[2] xfer count = 364224.00 kB, Throughput = 1783.32 kB/sec | ||
| + | Child[3] xfer count = 1048576.00 kB, Throughput = 5134.14 kB/sec | ||
| + | Child[4] xfer count = 526400.00 kB, Throughput = 2577.41 kB/sec | ||
| + | Child[5] xfer count = 1003200.00 kB, Throughput = 4907.09 kB/sec | ||
| + | Child[6] xfer count = 526144.00 kB, Throughput = 2576.12 kB/sec | ||
| + | Child[7] xfer count = 373696.00 kB, Throughput = 1829.70 kB/sec | ||
| + | |||
| + | iozone test complete.</ | ||
| + | |||
| + | Test na ZFS s xattr=sa: | ||
| + | |||
| + | < | ||
| + | Iozone: Performance Test of File I/O | ||
| + | Version $Revision: 3.430 $ | ||
| + | Compiled for 64 bit mode. | ||
| + | Build: linux-AMD64 | ||
| + | |||
| + | Contributors: | ||
| + | Al Slater, Scott Rhine, Mike Wisner, Ken Goss | ||
| + | Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR, | ||
| + | Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner, | ||
| + | | ||
| + | Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root, | ||
| + | | ||
| + | | ||
| + | |||
| + | Run began: Wed Jul 22 08:09:08 2015 | ||
| + | |||
| + | Setting no_unlink | ||
| + | Include close in write timing | ||
| + | Include fsync in write timing | ||
| + | No retest option selected | ||
| + | Record Size 64 kB | ||
| + | File size set to 1048576 kB | ||
| + | Command line used: ./iozone -w -c -e -i 0 -+n -C -r 64k -s 1g -t 8 -F / | ||
| + | Output is in kBytes/sec | ||
| + | Time Resolution = 0.000001 seconds. | ||
| + | Processor cache size set to 1024 kBytes. | ||
| + | Processor cache line size set to 32 bytes. | ||
| + | File stride size set to 17 * record size. | ||
| + | Throughput test with 8 processes | ||
| + | Each process writes a 1048576 kByte file in 64 kByte records | ||
| + | |||
| + | Children see throughput for 8 initial writers | ||
| + | Parent sees throughput for 8 initial writers | ||
| + | Min throughput per process | ||
| + | Max throughput per process | ||
| + | Avg throughput per process | ||
| + | Min xfer = 1048064.00 kB | ||
| + | Child[0] xfer count = 1048256.00 kB, Throughput = 3355.46 kB/sec | ||
| + | Child[1] xfer count = 1048256.00 kB, Throughput = 3355.55 kB/sec | ||
| + | Child[2] xfer count = 1048384.00 kB, Throughput = 3355.87 kB/sec | ||
| + | Child[3] xfer count = 1048064.00 kB, Throughput = 3354.94 kB/sec | ||
| + | Child[4] xfer count = 1048576.00 kB, Throughput = 3356.57 kB/sec | ||
| + | Child[5] xfer count = 1048256.00 kB, Throughput = 3355.47 kB/sec | ||
| + | Child[6] xfer count = 1048256.00 kB, Throughput = 3355.65 kB/sec | ||
| + | Child[7] xfer count = 1048256.00 kB, Throughput = 3355.47 kB/sec | ||
| + | |||
| + | iozone test complete.</ | ||