mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-12 20:15:10 +00:00
Deployed 5086daf with MkDocs version: 1.6.1
This commit is contained in:
@@ -2250,7 +2250,7 @@ dashboard UI that wants history must keep its own copy.</p>
|
||||
<div class="language-text highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a>unshackle serve --remote-only --quiet
|
||||
</span></code></pre></div>
|
||||
<h2 id="endpoints">Endpoints<a class="headerlink" href="#endpoints" title="Permanent link">¶</a></h2>
|
||||
<p>All are <code>GET</code>.</p>
|
||||
<p>All are <code>GET</code>, except the two <code>drain</code> routes.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -2261,7 +2261,15 @@ dashboard UI that wants history must keep its own copy.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><code>/api/dashboard/status</code></td>
|
||||
<td>Version, <code>code_hash</code>, bind host and port, <code>mode</code> (<code>full</code>, <code>api_only</code>, <code>remote_only</code>), uptime, <code>requests_total</code>, <code>requests_rejected</code> (401s), <code>requests_by_key</code> (label → count), <code>errors</code> (error counts by service tag, then by <code>error_code</code>), configured service count (the same services as <code>/api/dashboard/services</code>), session count, <code>max_sessions</code> (<code>null</code> when the operator configured no limit), <code>session_ttl</code>, job counts by status. The service count includes services that failed to import - use <code>/api/dashboard/services</code> for the number that loaded.</td>
|
||||
<td>Version, <code>code_hash</code>, bind host and port, <code>mode</code> (<code>full</code>, <code>api_only</code>, <code>remote_only</code>), uptime, <code>requests_total</code>, <code>requests_rejected</code> (401s), <code>requests_by_key</code> (label → count), <code>errors</code> (error counts by service tag, then by <code>error_code</code>), configured service count (the same services as <code>/api/dashboard/services</code>), session count, <code>max_sessions</code> (<code>null</code> when the operator configured no limit), <code>session_ttl</code>, job counts by status. <code>draining</code> is <code>true</code> while a drain is on. The service count includes services that failed to import - use <code>/api/dashboard/services</code> for the number that loaded.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>POST /api/dashboard/drain</code></td>
|
||||
<td>Starts a drain before a restart and returns the <code>/status</code> body. The server then refuses each new remote session, download job and job retry with <code>SERVER_DRAINING</code> (409). Open remote sessions and jobs continue, and each open remote session gets a warning in its service log, which the client shows to the user. Poll <code>/status</code> until <code>sessions</code> and the queued and downloading jobs are 0, then restart. The drain ends when the process stops. A second call changes nothing.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>DELETE /api/dashboard/drain</code></td>
|
||||
<td>Cancels the drain and returns the <code>/status</code> body. The server accepts new work again.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>/api/dashboard/sessions</code></td>
|
||||
|
||||
Reference in New Issue
Block a user