mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-27 16:28:53 +00:00
0dee2a6036
This walks slowly through all shares, examining their leases, deciding which are still valid and which have expired. Once enabled, it will then remove the expired leases, and delete shares which no longer have any valid leases. Note that there is not yet a tahoe.cfg option to enable lease-deletion: the current code is read-only. A subsequent patch will add a tahoe.cfg knob to control this, as well as docs. Some other minor items included in this patch: tahoe debug dump-share has a new --leases-only flag storage sharefile/leaseinfo code is cleaned up storage web status page (/storage) has more info, more tests coverage space-left measurement on OS-X should be more accurate (it was off by 2048x) (use stat .f_frsize instead of f_bsize)
92 lines
2.7 KiB
HTML
92 lines
2.7 KiB
HTML
<html xmlns:n="http://nevow.com/ns/nevow/0.1">
|
|
<head>
|
|
<title>AllMyData - Tahoe - Storage Server Status</title>
|
|
<link href="/webform_css" rel="stylesheet" type="text/css"/>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
</head>
|
|
<body>
|
|
|
|
<div n:render="storage_running">
|
|
|
|
<h1>Storage Server Status</h1>
|
|
|
|
<table n:data="stats">
|
|
<tr><td>Total disk space:</td>
|
|
<td><span n:render="abbrev_space" n:data="disk_total" /></td>
|
|
<td>(<span n:render="space" n:data="disk_total" />)</td>
|
|
<td />
|
|
</tr>
|
|
<tr><td>Disk space used:</td>
|
|
<td>- <span n:render="abbrev_space" n:data="disk_used" /></td>
|
|
<td>(<span n:render="space" n:data="disk_used" />)</td>
|
|
<td />
|
|
</tr>
|
|
<tr><td />
|
|
<td>======</td>
|
|
<td />
|
|
<td />
|
|
</tr>
|
|
<tr><td>Disk space free (root):</td>
|
|
<td><span n:render="abbrev_space" n:data="disk_free_for_root"/></td>
|
|
<td>(<span n:render="space" n:data="disk_free_for_root"/>)</td>
|
|
<td>[see 1]</td>
|
|
</tr>
|
|
<tr><td>Disk space free (non-root):</td>
|
|
<td><span n:render="abbrev_space" n:data="disk_free_for_nonroot" /></td>
|
|
<td>(<span n:render="space" n:data="disk_free_for_nonroot" />)</td>
|
|
<td>[see 2]</td>
|
|
</tr>
|
|
<tr><td>Reserved space:</td>
|
|
<td>- <span n:render="abbrev_space" n:data="reserved_space" /></td>
|
|
<td>(<span n:render="space" n:data="reserved_space" />)</td>
|
|
<td />
|
|
</tr>
|
|
<tr><td />
|
|
<td>======</td>
|
|
<td />
|
|
<td />
|
|
</tr>
|
|
<tr><td>Space Available to Tahoe:</td>
|
|
<td><span n:render="abbrev_space" n:data="disk_avail" /></td>
|
|
<td>(<span n:render="space" n:data="disk_avail" />)</td>
|
|
<td />
|
|
</tr>
|
|
</table>
|
|
|
|
<ul n:data="stats">
|
|
<li>Accepting new shares:
|
|
<span n:render="bool" n:data="accepting_immutable_shares" /></li>
|
|
</ul>
|
|
|
|
<ul>
|
|
<li>Total buckets:
|
|
<span n:render="string" n:data="last_complete_bucket_count" />
|
|
(the number of files and directories for which this server is holding
|
|
a share)
|
|
<ul>
|
|
<li n:render="count_crawler_status" />
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
<h2>Lease Expiration Crawler</h2>
|
|
|
|
<ul>
|
|
<li>Expiration <span n:render="lease_expiration_enabled" /></li>
|
|
<li n:render="lease_expiration_age_limit" />
|
|
<li n:render="lease_current_cycle_progress" />
|
|
<li n:render="lease_current_cycle_results" />
|
|
<li n:render="lease_last_cycle_results" />
|
|
</ul>
|
|
|
|
<hr />
|
|
<p>[1]: Some of this space may be reserved for the superuser.</p>
|
|
<p>[2]: This reports the space available to non-root users, including the
|
|
Tahoe node.</p>
|
|
|
|
<p>See this page <a href="?t=json">in JSON</a></p>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|