querysub 0.369.0 → 0.371.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/movelogs.js +3 -0
- package/package.json +1 -1
- package/src/3-path-functions/PathFunctionRunnerMain.ts +5 -0
- package/src/deployManager/components/ServiceDetailPage.tsx +2 -2
- package/src/diagnostics/logs/IndexedLogs/LogViewer3.tsx +2 -2
- package/src/diagnostics/logs/lifeCycleAnalysis/lifeCycles.tsx +2 -11
package/bin/movelogs.js
CHANGED
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@ import { green, magenta } from "socket-function/src/formatting/logColors";
|
|
|
23
23
|
import { parseFilterSelector } from "../misc/filterable";
|
|
24
24
|
import path from "path";
|
|
25
25
|
import { Querysub } from "../4-querysub/QuerysubController";
|
|
26
|
+
import { IndexedLogs } from "../diagnostics/logs/IndexedLogs/IndexedLogs";
|
|
26
27
|
|
|
27
28
|
async function main() {
|
|
28
29
|
Error.stackTraceLimit = 20;
|
|
@@ -39,6 +40,10 @@ async function main() {
|
|
|
39
40
|
|
|
40
41
|
await Querysub.hostService("PathFunctionRunnerMain");
|
|
41
42
|
|
|
43
|
+
if (!isPublic()) {
|
|
44
|
+
IndexedLogs.runLogMoveLoop();
|
|
45
|
+
}
|
|
46
|
+
|
|
42
47
|
// Use a fairly high stick time (the default is 10s), because having wait to sync data is very slow,
|
|
43
48
|
// and the function runner SHOULD have more memory than the clients, and much faster network speeds
|
|
44
49
|
// (it should be on the same local network as the path value authorities).
|
|
@@ -487,7 +487,7 @@ export class ServiceDetailPage extends qreact.Component {
|
|
|
487
487
|
Poke
|
|
488
488
|
</button>
|
|
489
489
|
|
|
490
|
-
{configT.parameters.rollingWindow && rollingServiceCount > 0 && <button
|
|
490
|
+
{!!configT.parameters.rollingWindow && rollingServiceCount > 0 && <button
|
|
491
491
|
className={css.pad2(12, 8).button.bord2(0, 0, 20).hsl(0, 70, 90)}
|
|
492
492
|
onClick={() => {
|
|
493
493
|
void this.killAllRollingServices(config);
|
|
@@ -497,7 +497,7 @@ export class ServiceDetailPage extends qreact.Component {
|
|
|
497
497
|
{this.state.isKillingRolling ? "Killing..." : `💀 Kill ${rollingServiceCount} Rolling Service${rollingServiceCount === 1 ? "" : "s"}`}
|
|
498
498
|
</button>}
|
|
499
499
|
|
|
500
|
-
{configT.parameters.rollingWindow && <div>
|
|
500
|
+
{!!configT.parameters.rollingWindow && <div>
|
|
501
501
|
<div className={css.colorhsl(0, 50, 50).fontSize(14).fontWeight("bold")}>
|
|
502
502
|
IMPORTANT! Service has a rolling window, so updates might not appear immediately.
|
|
503
503
|
</div>
|
|
@@ -288,7 +288,7 @@ export class LogViewer3 extends qreact.Component {
|
|
|
288
288
|
<span>is not moving logs to remote storage. {formatNumber(warning.count)} files ({formatNumber(warning.totalSize)}B) are {formatTime(now - warning.oldestTime)} old</span>
|
|
289
289
|
</div>
|
|
290
290
|
))}
|
|
291
|
-
<Button
|
|
291
|
+
{!isPublic() && !readPublicLogs.value && <Button
|
|
292
292
|
onClick={async () => {
|
|
293
293
|
Querysub.commitLocal(() => {
|
|
294
294
|
this.state.forceMoveStartTime = Date.now();
|
|
@@ -318,7 +318,7 @@ export class LogViewer3 extends qreact.Component {
|
|
|
318
318
|
hue={180}
|
|
319
319
|
>
|
|
320
320
|
Force Move Logs to Public
|
|
321
|
-
</Button>
|
|
321
|
+
</Button>}
|
|
322
322
|
{(() => {
|
|
323
323
|
if (this.state.forceMoveStartTime !== undefined && this.state.forceMoveEndTime === undefined) {
|
|
324
324
|
const elapsed = Date.now() - this.state.forceMoveStartTime;
|
|
@@ -19,22 +19,13 @@ IMPORTANT! Now I am properly calling shutdown, so none of the streamed logs shou
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
0) Deploy again
|
|
23
|
-
1) Verify isPublic searching works (from our local machine)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
1) Deploy our changes
|
|
27
22
|
|
|
23
|
+
AH, make sure force move works with force public flag!
|
|
28
24
|
|
|
29
25
|
2) Create lot of remote server logs
|
|
30
26
|
- Via our refresh loop
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
3) Create and deploy service for movelogs
|
|
34
|
-
3.0) Update preferred entrypoint to be the movelogs entrypoint
|
|
35
|
-
|
|
36
|
-
0) Run move logs in function runner, in development, just so we don't get too far behind
|
|
37
|
-
|
|
28
|
+
3) Ensure our moveloops are working correctly
|
|
38
29
|
|
|
39
30
|
|
|
40
31
|
|