-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
sys-actions.hdb
172 lines (161 loc) · 7.33 KB
/
sys-actions.hdb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!doctype html>
<html>
{{> control/partials/head-includes }}
<head><title>Control Service: Actions</title></head>
<body>
{{> control/partials/nav}}
<div class="container">
<h1 class="my-3">System Actions [WORK IN PROGRESS]</h1>
<div class="my-3 border p-3 bg-light">
<p>
These are actions that perform system-wide operations,
on each node in the system. Nodes are included if they are
configured to be part of the <em>precession</em> in the Node Configuration.
For a single-node system, most of these actions may be triggered from the
single node's actions tab.
</p>
<p>
<em>
More actions will be added here in the future, including node-by-node sequences of
crawling and processing. These are still a bit broken, and need some work. For now,
you can trigger these actions from each individual Node.
</em>
</p>
</p>
</div>
<div class="accordion mt-3" id="accordionActions">
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#collapseCalculateAdjacencies"
aria-expanded="false"
aria-controls="collapseCalculateAdjacencies">
Calculate Adjacencies
</button>
</h2>
<div id="collapseCalculateAdjacencies" class="accordion-collapse collapse p-3" data-bs-parent="#accordionActions">
<div class="mb-3">
This will re-calculate the adjacencies graph. The adjacencies graph is used to calculate the domain ranking.
</div>
<form method="post" action="actions/recalculate-adjacencies-graph">
<button
class="btn btn-primary me-md-2"
onclick="return confirm('Confirm recalculation of adjacencies graph');"
type="submit">
Recalculate Graph</button>
</form>
</div>
</div>
<!--
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#collapseReindexAll"
aria-expanded="false"
aria-controls="collapseReindexAll">
Recalculate Rankings
</button>
</h2>
<div id="collapseReindexAll" class="accordion-collapse collapse p-3" data-bs-parent="#accordionActions">
<div class="mb-3">
This will successively re-calculate the domain rankings for all nodes configured to be part in the precession,
and then re-construct the indexes from existing journal data.
</div>
<form method="post" action="actions/reindex-all">
<button
class="btn btn-primary me-md-2"
onclick="return confirm('Confirm reindexing of all nodes');"
type="submit">
Reconstruct Indexes</button>
</form>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#collapseReprocessAll"
aria-expanded="false"
aria-controls="collapseReprocessAll">
Reprocess Data
</button>
</h2>
<div id="collapseReprocessAll" class="accordion-collapse collapse p-3" data-bs-parent="#accordionActions">
<div class="mb-3">
This will reprocess the crawl data on each node configured to be part in the precession, based on
the currently ACTIVE crawl data. If no crawl data is ACTIVE, the node will be omitted.
</div>
<form method="post" action="actions/reprocess-all">
<button
class="btn btn-primary me-md-2"
onclick="return confirm('Confirm reprocessing');"
type="submit">
Reprocess Crawl Data</button>
</form>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#collapseRecrawlAll"
aria-expanded="false"
aria-controls="collapseRecrawlAll">
Recrawl Data
</button>
</h2>
<div id="collapseRecrawlAll" class="accordion-collapse collapse p-3" data-bs-parent="#accordionActions">
<div class="mb-3">
This will recrawl the crawl data on each node configured to be part in the precession, based on
the currently ACTIVE crawl data. If no crawl data is ACTIVE, the node will be omitted. After
each node is recrawled, the crawl data will automatically be reprocessed.
</div>
<form method="post" action="actions/recrawl-all">
<button
class="btn btn-primary me-md-2"
onclick="return confirm('Confirm recrawling');"
type="submit">
Recrawl Data</button>
</form>
</div>
</div> -->
</div>
<div class="my-3">
<h1>Precession Nodes</h1>
<div class="my-3 border p-3 bg-light">
{{#unless precessionNodes}} No nodes are configured to be part of the precession. {{/unless}}
{{#if precessionNodes}} These nodes are configured to be part of the precession,
and will be included in the above actions unless otherwise noted. {{/if}}
</div>
</div>
{{#if precessionNodes}}
<table class="table">
<tr><th>Node</th><th>Storage</th></tr>
{{#each precessionNodes}}
<tr {{#unless storage}}class="table-danger"{{/unless}}>
<td><a href="/nodes/{{node.node}}">{{node.description}}</a></td>
<td>
{{#if storage}}
<a href="/nodes/{{node.node}}/storage/details?fid={{storage.id}}">
{{storage.path}}
</a>
{{/if}}
{{#unless storage}}
NOT CONFIGURED
{{/unless}}
</td>
</tr>
{{/each}}
</table>
{{/if}}
</div>
</div>
</body>
{{> control/partials/foot-includes }}
</html>