As mentioned in issue #103, control settings over YaCy disk usage
already existed but lacked a user-friendly way to set them.
I added it to the Performance_p.html administration page with a little
refactoring on the "Resource Observer" fieldset for improved
accessibility and HTML standards respect.
Also added the possibility to enable/disable the autoregulation fonction
from this page.
#(setStartupCommit)#::<divclass="commit">Accepted change. This will take effect after <strong>restart</strong> of YaCy. <br/><ahref="Steering.html?restart="onclick="return confirm('Confirm Restart')">restart now</a></div>::<divclass="error"></div>#(/setStartupCommit)#
<inputname="diskFree"id="diskFree"type="text"size="4"value="#[diskFree]#"title="Amount of space (in Mebibytes) that should be kept free as steady state"/><abbrtitle="Mebibyte">MiB</abbr>. Disable crawls when free space is below.
<inputname="diskFreeHardlimit"id="diskFreeHardlimit"type="text"size="4"value="#[diskFreeHardlimit]#"title="Amount of space (in Mebibytes) that should at least be kept free as hard limit"/><abbrtitle="Mebibyte">MiB</abbr>. Disable <abbrtitle="Distributed Hash Table">DHT</abbr>-in when free space is below.
<inputname="diskFreeAutoregulate"id="diskFreeAutoregulate"type="checkbox"#(diskFreeAutoregulate)#::checked#(/diskFreeAutoregulate)#aria-describedby="autoregulateFreeInfo"/> when absolute minimum limit has been reached.
<divclass="info"style="float:right">
<imgsrc="env/grafics/i16.gif"width="16"height="16"alt="Free space disk autoregulation info"/>
<divstyle="right:0px;"id="autoregulateFreeInfo">
The autoregulation task performs the following sequence of operations, stopping once free space disk is over the steady-state value :
<ol>
<li>delete old releases</li>
<li>delete logs</li>
<li>delete robots.txt table</li>
<li>delete news</li>
<li>clear HTCACHE</li>
<li>clear citations</li>
<li>throw away large crawl queues</li>
<li>cut away too large RWIs</li>
</ol>
</div>
</div>
</div>
</fieldset>
</div>
<divclass="col-sm-6">
<fieldset>
<legend>Used space disk</legend>
<divclass="form-group">
<labelfor="diskUsed">Steady-state maximum</label>
<inputname="diskUsed"id="diskUsed"type="text"size="7"value="#[diskUsed]#"title="Maximum amount of space (in Mebibytes) that should be used as steady state"/><abbrtitle="Mebibyte">MiB</abbr>. Disable crawls when used space is over.
<inputname="diskUsedHardlimit"id="diskUsedHardlimit"type="text"size="7"value="#[diskUsedHardlimit]#"title="Maximum amount of space (in Mebibytes) that should be used as hard limit"/><abbrtitle="Mebibyte">MiB</abbr>. Disable <abbrtitle="Distributed Hash Table">DHT</abbr>-in when used space is over.
<inputname="diskUsedAutoregulate"id="diskUsedAutoregulate"type="checkbox"#(diskUsedAutoregulate)#::checked#(/diskUsedAutoregulate)#aria-describedby="autoregulateUsedInfo"> when absolute maximum limit has been reached.
<divclass="info"style="float:right">
<imgsrc="env/grafics/i16.gif"width="16"height="16"alt="Used space disk autoregulation info"/>
<divstyle="right:0px;"id="autoregulateUsedInfo">
The autoregulation task performs the following sequence of operations, stopping once used space disk is below the steady-state value:
Accepted change. This will take effect after <strong>restart</strong> of YaCy==Änderung akzeptiert. Diese werden erst nach einem <strong>Neustart</strong> von YaCy wirksam
Accepted change. This will take effect after <strong>restart</strong> of YaCy==Зміни прийняті. Вони вступлять в силу тільки після перезапуску <strong>YaCy</strong>
publicstaticfinalStringRESOURCE_DISK_FREE_MIN_STEADYSTATE="resource.disk.free.min.steadystate";// the target steady-state of minimum disk space left
publicstaticfinalStringRESOURCE_DISK_FREE_MIN_UNDERSHOT="resource.disk.free.min.undershot";// the undershot below the steady-state of minimum disk free as absolute size
/** Default disk free auto-regulation activation setting */