[Bugs] [Bug 1375125] arbiter volume write performance is bad.

bugzilla at redhat.com bugzilla at redhat.com
Tue Sep 13 15:53:05 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1375125

Max Raba <max.raba at comsysto.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|needinfo?(max.raba at comsysto |
                   |.com)                       |



--- Comment #2 from Max Raba <max.raba at comsysto.com> ---
Hi,

I think I have the experiment you were looking for.
Indeed, it seems like setting the features.shard to off will big the
performance up again.

Regards.
Max


Experiment:

[root at localhost ~]# gluster volume create storage replica 3 arbiter 1
192.168.122.14:/data/brick1 192.168.122.15:/data/brick1
192.168.122.167:/data/brick1-arbiter 192.168.122.167:/data/brick1
192.168.122.230:/data/brick1 192.168.122.14:/data/brick1-arbiter force
volume create: storage: success: please start the volume to access data

[root at localhost ~]# gluster volume start storage
volume start: storage: success
[root at localhost ~]# gluster volume info

Volume Name: storage
Type: Distributed-Replicate
Volume ID: c601be67-2857-4bfd-a226-504e8d1f3c5b
Status: Started
Number of Bricks: 2 x (2 + 1) = 6
Transport-type: tcp
Bricks:
Brick1: 192.168.122.14:/data/brick1
Brick2: 192.168.122.15:/data/brick1
Brick3: 192.168.122.167:/data/brick1-arbiter (arbiter)
Brick4: 192.168.122.167:/data/brick1
Brick5: 192.168.122.230:/data/brick1
Brick6: 192.168.122.14:/data/brick1-arbiter (arbiter)
Options Reconfigured:
transport.address-family: inet
performance.readdir-ahead: on
nfs.disable: on
[root at localhost ~]# gluster volume set storage features.shard on
volume set: success
[root at localhost ~]# gluster volume set storage features.shard-block-size 16MB
volume set: success
[root at localhost ~]# mkdir /srv/storage
[root at localhost ~]# mount -t glusterfs 127.0.0.1:storage /srv/storage/
[root at localhost ~]# cd /srv/storage/
[root at localhost storage]# df -h /srv/storage/
Filesystem         Size  Used Avail Use% Mounted on
127.0.0.1:storage   20G  2,0G   18G  11% /srv/storage
[root at localhost storage]# dd if=/dev/zero of=testfile count=1 bs=10M
1+0 records in
1+0 records out
10485760 bytes (10 MB) copied, 11,6287 s, 902 kB/s
[root at localhost storage]# gluster volume set storage features.shard off
volume set: success
[root at localhost storage]# dd if=/dev/zero of=testfile count=1 bs=10M
1+0 records in
1+0 records out
10485760 bytes (10 MB) copied, 0,0328133 s, 320 MB/s
[root at localhost storage]# gluster volume set storage features.shard on
volume set: success
[root at localhost storage]# dd if=/dev/zero of=testfile count=1 bs=10M
1+0 records in
1+0 records out
10485760 bytes (10 MB) copied, 11,2339 s, 933 kB/s
[root at localhost storage]# gluster volume remove-brick storage replica 2
192.168.122.167:/data/brick1-arbiter 192.168.122.14:/data/brick1-arbiter force
Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y
volume remove-brick commit force: success
[root at localhost storage]# dd if=/dev/zero of=testfile count=1 bs=10M1+0 records
in
1+0 records out
10485760 bytes (10 MB) copied, 0,0843147 s, 124 MB/s
[root at localhost storage]# gluster volume set storage features.shard off
[root at localhost storage]# dd if=/dev/zero of=testfile count=1 bs=10M
1+0 records in
1+0 records out
10485760 bytes (10 MB) copied, 0,0365119 s, 287 MB/s
[root at localhost storage]#

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=l40TcA0Zw0&a=cc_unsubscribe


More information about the Bugs mailing list