<div dir="ltr">Hi,<div><br></div><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 9, 2017 at 7:47 PM, <span dir="ltr"><<a href="mailto:ingard@jotta.no" target="_blank">ingard@jotta.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Someone on the #gluster-users irc channel said the following :<br>
"Decreasing features.locks-revocation-max-<wbr>blocked to an absurdly low number is letting our distributed-disperse set heal again."<br>
<br>
Is this something to concider? Does anyone else have experience with tweaking this to speed up healing?<br></blockquote><div><br></div><div>What that option does is to release the currently granted lock for a file when a new lock request comes and there are more than features-revocation-max-blocked locks already pending. The real effect of this is that all pending requests can proceed, but the client that was using the old granted lock will continue working without knowing that it doesn't have the lock, meaning that everything it does can cause corruption. This option was created to avoid that a single bad client could block the entire cluster, but if you set this option to a really small value compared to your workload, it will probably cause unwanted effects even or perfectly healthy and well-behaving clients.</div><div><br></div><div>This option shouldn't be used unless you are very sure of what your users are doing with the volume and how, and you know the implications of this option. Otherwise this is a good candidate to have data corruption.</div><div><br></div><div>Anyway, if setting this option improves speed, it means that there's a heavy lock usage. It should be determined if that usage is normal or not. For example, disperse needs to take locks for reads and writes. If a file is being simultaneously accessed by multiple clients, the lock usage will be high because of contention between clients, but normal. Forcing the release of some locks while another client is trying to write (for example self-heal), will probably cause read errors to other clients.</div><div><br></div><div>If a real problem is detected, it's better to file a bug with as much information as you can give to try to resolve the problem (if there's a real problem) or to try to improve performance (if everything works fine but slow).</div><div><br></div><div>Xavi</div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Sent from my iPhone<br>
<div class="HOEnZb"><div class="h5"><br>
> On 9 Nov 2017, at 18:00, Serkan Çoban <<a href="mailto:cobanserkan@gmail.com">cobanserkan@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> You can set disperse.shd-max-threads to 2 or 4 in order to make heal<br>
> faster. This makes my heal times 2-3x faster.<br>
> Also you can play with disperse.self-heal-window-size to read more<br>
> bytes at one time, but i did not test it.<br>
><br>
>> On Thu, Nov 9, 2017 at 4:47 PM, Xavi Hernandez <<a href="mailto:jahernan@redhat.com">jahernan@redhat.com</a>> wrote:<br>
>> Hi Rolf,<br>
>><br>
>> answers follow inline...<br>
>><br>
>>> On Thu, Nov 9, 2017 at 3:20 PM, Rolf Larsen <<a href="mailto:rolf@jotta.no">rolf@jotta.no</a>> wrote:<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> We ran a test on GlusterFS 3.12.1 with erasurecoded volumes 8+2 with 10<br>
>>> bricks (default config,tested with 100gb, 200gb, 400gb bricksizes,10gbit<br>
>>> nics)<br>
>>><br>
>>> 1.<br>
>>> Tests show that healing takes about double the time on healing 200gb vs<br>
>>> 100, and abit under the double on 400gb vs 200gb bricksizes. Is this<br>
>>> expected behaviour? In light of this would make 6,4 tb bricksizes use ~ 377<br>
>>> hours to heal.<br>
>>><br>
>>> 100gb brick heal: 18 hours (8+2)<br>
>>> 200gb brick heal: 37 hours (8+2) +205%<br>
>>> 400gb brick heal: 59 hours (8+2) +159%<br>
>>><br>
>>> Each 100gb is filled with 80000 x 10mb files (200gb is 2x and 400gb is 4x)<br>
>><br>
>><br>
>> If I understand it correctly, you are storing 80.000 files of 10 MB each<br>
>> when you are using 100GB bricks, but you double this value for 200GB bricks<br>
>> (160.000 files of 10MB each). And for 400GB bricks you create 320.000 files.<br>
>> Have I understood it correctly ?<br>
>><br>
>> If this is true, it's normal that twice the space requires approximately<br>
>> twice the heal time. The healing time depends on the contents of the brick,<br>
>> not brick size. The same amount of files should take the same healing time,<br>
>> whatever the brick size is.<br>
>><br>
>>><br>
>>><br>
>>> 2.<br>
>>> Are there any possibility to show the progress of a heal? As per now we<br>
>>> run gluster volume heal volume info, but this exit's when a brick is done<br>
>>> healing and when we run heal info again the command contiunes showing gfid's<br>
>>> until the brick is done again. This gives quite a bad picture of the status<br>
>>> of a heal.<br>
>><br>
>><br>
>> The output of 'gluster volume heal <volname> info' shows the list of files<br>
>> pending to be healed on each brick. The heal is complete when the list is<br>
>> empty. A faster alternative if you don't want to see the whole list of files<br>
>> is to use 'gluster volume heal <volname> statistics heal-count'. This will<br>
>> only show the number of pending files on each brick.<br>
>><br>
>> I don't know any other way to track progress of self-heal.<br>
>><br>
>>><br>
>>><br>
>>> 3.<br>
>>> What kind of config tweaks is recommended for these kind of EC volumes?<br>
>><br>
>><br>
>> I usually use the following values (specific only for ec):<br>
>><br>
>> client.event-threads 4<br>
>> server.event-threads 4<br>
>> performance.client-io-threads on<br>
>><br>
>> Regards,<br>
>><br>
>> Xavi<br>
>><br>
>><br>
>><br>
>>><br>
>>><br>
>>><br>
>>> $ gluster volume info<br>
>>> Volume Name: test-ec-100g<br>
>>> Type: Disperse<br>
>>> Volume ID: 0254281d-2f6e-4ac4-a773-<wbr>2b8e0eb8ab27<br>
>>> Status: Started<br>
>>> Snapshot Count: 0<br>
>>> Number of Bricks: 1 x (8 + 2) = 10<br>
>>> Transport-type: tcp<br>
>>> Bricks:<br>
>>> Brick1: dn-304:/mnt/test-ec-100/brick<br>
>>> Brick2: dn-305:/mnt/test-ec-100/brick<br>
>>> Brick3: dn-306:/mnt/test-ec-100/brick<br>
>>> Brick4: dn-307:/mnt/test-ec-100/brick<br>
>>> Brick5: dn-308:/mnt/test-ec-100/brick<br>
>>> Brick6: dn-309:/mnt/test-ec-100/brick<br>
>>> Brick7: dn-310:/mnt/test-ec-100/brick<br>
>>> Brick8: dn-311:/mnt/test-ec-2/brick<br>
>>> Brick9: dn-312:/mnt/test-ec-100/brick<br>
>>> Brick10: dn-313:/mnt/test-ec-100/brick<br>
>>> Options Reconfigured:<br>
>>> nfs.disable: on<br>
>>> transport.address-family: inet<br>
>>><br>
>>> Volume Name: test-ec-200<br>
>>> Type: Disperse<br>
>>> Volume ID: 2ce23e32-7086-49c5-bf0c-<wbr>7612fd7b3d5d<br>
>>> Status: Started<br>
>>> Snapshot Count: 0<br>
>>> Number of Bricks: 1 x (8 + 2) = 10<br>
>>> Transport-type: tcp<br>
>>> Bricks:<br>
>>> Brick1: dn-304:/mnt/test-ec-200/brick<br>
>>> Brick2: dn-305:/mnt/test-ec-200/brick<br>
>>> Brick3: dn-306:/mnt/test-ec-200/brick<br>
>>> Brick4: dn-307:/mnt/test-ec-200/brick<br>
>>> Brick5: dn-308:/mnt/test-ec-200/brick<br>
>>> Brick6: dn-309:/mnt/test-ec-200/brick<br>
>>> Brick7: dn-310:/mnt/test-ec-200/brick<br>
>>> Brick8: dn-311:/mnt/test-ec-200_2/<wbr>brick<br>
>>> Brick9: dn-312:/mnt/test-ec-200/brick<br>
>>> Brick10: dn-313:/mnt/test-ec-200/brick<br>
>>> Options Reconfigured:<br>
>>> nfs.disable: on<br>
>>> transport.address-family: inet<br>
>>><br>
>>> Volume Name: test-ec-400<br>
>>> Type: Disperse<br>
>>> Volume ID: fe00713a-7099-404d-ba52-<wbr>46c6b4b6ecc0<br>
>>> Status: Started<br>
>>> Snapshot Count: 0<br>
>>> Number of Bricks: 1 x (8 + 2) = 10<br>
>>> Transport-type: tcp<br>
>>> Bricks:<br>
>>> Brick1: dn-304:/mnt/test-ec-400/brick<br>
>>> Brick2: dn-305:/mnt/test-ec-400/brick<br>
>>> Brick3: dn-306:/mnt/test-ec-400/brick<br>
>>> Brick4: dn-307:/mnt/test-ec-400/brick<br>
>>> Brick5: dn-308:/mnt/test-ec-400/brick<br>
>>> Brick6: dn-309:/mnt/test-ec-400/brick<br>
>>> Brick7: dn-310:/mnt/test-ec-400/brick<br>
>>> Brick8: dn-311:/mnt/test-ec-400_2/<wbr>brick<br>
>>> Brick9: dn-312:/mnt/test-ec-400/brick<br>
>>> Brick10: dn-313:/mnt/test-ec-400/brick<br>
>>> Options Reconfigured:<br>
>>> nfs.disable: on<br>
>>> transport.address-family: inet<br>
>>><br>
>>> --<br>
>>><br>
>>> Regards<br>
>>> Rolf Arne Larsen<br>
>>> Ops Engineer<br>
>>> <a href="mailto:rolf@jottacloud.com">rolf@jottacloud.com</a><br>
>>><br>
>>> ______________________________<wbr>_________________<br>
>>> Gluster-users mailing list<br>
>>> <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
>>> <a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br>
>><br>
>><br>
>><br>
>> ______________________________<wbr>_________________<br>
>> Gluster-users mailing list<br>
>> <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
>> <a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br>
> ______________________________<wbr>_________________<br>
> Gluster-users mailing list<br>
> <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
> <a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br>
</div></div></blockquote></div><br></div></div>