Skip to content

Commit

Permalink
Add fallocate_reserve option to docs
Browse files Browse the repository at this point in the history
fixes bug 1095507

Grizzly's swift introduced fallocate_reserve=0 - the
number of bytes to reserve on the disk. This value can be used
to more gracefully handle out-of-disk space errors.

The patch adds the option to account/object/container conf tables

Change-Id: If5ff2ddb8f931d1bc4d7a3b28a801fa6e903d33d
  • Loading branch information
fifieldt committed Feb 23, 2013
1 parent 2058faf commit eadcb92
Showing 1 changed file with 51 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,22 @@ can be overridden in any of the other sections.</para>
underlying filesystem does not support
it.</td>
</tr>
<tr>
<td>fallocate_reserve</td>
<td>0</td>
<td>The number of bytes for fallocate to reserve,
whether there is space for the given file
size or not. The default fallocate_reserve
is 0, meaning "no reserve".
Some systems behave badly when they completely run out of space. To
alleviate this problem, you can set fallocate_reserve. When the disk free
space falls at or below this amount, fallocate calls will fail, even
if the underlying OS fallocate call would succeed. For example, a
fallocate_reserve of 10737418240 (10G) would make all fallocate calls
fail, even for zero-byte files, when the disk free space falls under
10G.
</td>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -544,6 +560,23 @@ can be overridden in any of the other sections.</para>
<td>false</td>
<td>Disable "fast fail" fallocate checks if the underlying filesystem does not support it.</td>
</tr>
<tr>
<td>fallocate_reserve</td>
<td>0</td>
<td>The number of bytes for fallocate to reserve,
whether there is space for the given file
size or not. The default fallocate_reserve
is 0, meaning "no reserve".
Some systems behave badly when they completely run out of space. To
alleviate this problem, you can set fallocate_reserve. When the disk free
space falls at or below this amount, fallocate calls will fail, even
if the underlying OS fallocate call would succeed. For example, a
fallocate_reserve of 10737418240 (10G) would make all fallocate calls
fail, even for zero-byte files, when the disk free space falls under
10G.
</td>
</tr>

<tr>
<td>log_name</td>
<td>swift</td>
Expand Down Expand Up @@ -893,6 +926,23 @@ can be overridden in any of the other sections.</para>
<td>false</td>
<td>Disable "fast fail" fallocate checks if the underlying filesystem does not support it.</td>
</tr>
<tr>
<td>fallocate_reserve</td>
<td>0</td>
<td>The number of bytes for fallocate to reserve,
whether there is space for the given file
size or not. The default fallocate_reserve
is 0, meaning "no reserve".
Some systems behave badly when they completely run out of space. To
alleviate this problem, you can set fallocate_reserve. When the disk free
space falls at or below this amount, fallocate calls will fail, even
if the underlying OS fallocate call would succeed. For example, a
fallocate_reserve of 10737418240 (10G) would make all fallocate calls
fail, even for zero-byte files, when the disk free space falls under
10G.
</td>
</tr>

</tbody>
</table>
<table rules="all">
Expand Down Expand Up @@ -1364,4 +1414,4 @@ can be overridden in any of the other sections.</para>
</table>

</section>
</section>
</section>

0 comments on commit eadcb92

Please sign in to comment.