@balena/open-balena-api 30.1.0-build-add-power-fan-boot-configs-0cc1b66ba52f2544f0ea7341fbf089292c96c539-1 → 30.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/features/device-logs/lib/config.d.ts +1 -0
- package/dist/features/device-logs/lib/config.js +2 -1
- package/dist/features/device-logs/lib/config.js.map +1 -1
- package/dist/features/device-logs/lib/read.js +9 -7
- package/dist/features/device-logs/lib/read.js.map +1 -1
- package/dist/features/vars-schema/env-vars.js +0 -23
- package/dist/features/vars-schema/env-vars.js.map +1 -1
- package/dist/lib/config.d.ts +5 -0
- package/dist/lib/config.js +8 -0
- package/dist/lib/config.js.map +1 -1
- package/package.json +2 -2
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { DeviceLogsBackend, LogContext } from './struct.js';
|
2
2
|
export declare const LOKI_ENABLED: boolean | "" | undefined;
|
3
3
|
export declare const shouldPublishToLoki: () => boolean | "" | undefined;
|
4
|
+
export declare const shouldReadFromLoki: () => boolean | "" | undefined;
|
4
5
|
export declare function addRetentionLimit(ctx: Omit<LogContext, 'retention_limit'>): LogContext;
|
5
6
|
export declare const getBackend: () => DeviceLogsBackend;
|
6
7
|
export declare const getLokiBackend: () => Promise<DeviceLogsBackend>;
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import _ from 'lodash';
|
2
2
|
import { RedisBackend } from './backends/redis.js';
|
3
|
-
import { LOGS_DEFAULT_RETENTION_LIMIT, LOKI_READ_HOST, LOKI_WRITE_HOST, LOKI_WRITE_PCT, } from '../../../lib/config.js';
|
3
|
+
import { LOGS_DEFAULT_RETENTION_LIMIT, LOKI_READ_HOST, LOKI_READ_PCT, LOKI_WRITE_HOST, LOKI_WRITE_PCT, } from '../../../lib/config.js';
|
4
4
|
export const LOKI_ENABLED = LOKI_READ_HOST && LOKI_WRITE_HOST && LOKI_WRITE_PCT > 0;
|
5
5
|
export const shouldPublishToLoki = () => LOKI_ENABLED && LOKI_WRITE_PCT > Math.random() * 100;
|
6
|
+
export const shouldReadFromLoki = () => LOKI_ENABLED && LOKI_READ_PCT > Math.random() * 100;
|
6
7
|
export function addRetentionLimit(ctx) {
|
7
8
|
return {
|
8
9
|
...ctx,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/config.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EACN,4BAA4B,EAC5B,cAAc,EACd,eAAe,EACf,cAAc,GACd,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,YAAY,GACxB,cAAc,IAAI,eAAe,IAAI,cAAc,GAAG,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE,CACvC,YAAY,IAAI,cAAc,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC;
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/config.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EACN,4BAA4B,EAC5B,cAAc,EACd,aAAa,EACb,eAAe,EACf,cAAc,GACd,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,YAAY,GACxB,cAAc,IAAI,eAAe,IAAI,cAAc,GAAG,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE,CACvC,YAAY,IAAI,cAAc,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC;AACtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CACtC,YAAY,IAAI,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC;AAErD,MAAM,UAAU,iBAAiB,CAChC,GAAwC;IAExC,OAAO;QACN,GAAG,GAAG;QACN,eAAe,EAAE,4BAA4B;KAC7C,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,GAAsB,EAAE,CAAC,IAAI,YAAY,EAAE,CAAC,CAAC;AAE9E,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,IAAgC,EAAE;IAC3E,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAC3D,OAAO,IAAI,WAAW,EAAE,CAAC;AAC1B,CAAC,CAAC,CAAC"}
|
@@ -3,11 +3,12 @@ import _ from 'lodash';
|
|
3
3
|
import { sbvrUtils, errors } from '@balena/pinejs';
|
4
4
|
import { captureException, handleHttpErrors, } from '../../../infra/error-handling/index.js';
|
5
5
|
import { StreamState } from './struct.js';
|
6
|
-
import { addRetentionLimit, getBackend } from './config.js';
|
6
|
+
import { addRetentionLimit, getBackend, getLokiBackend, shouldReadFromLoki, } from './config.js';
|
7
7
|
import { getNanoTimestamp } from '../../../lib/utils.js';
|
8
8
|
import { LOGS_DEFAULT_HISTORY_COUNT, LOGS_DEFAULT_SUBSCRIPTION_COUNT, LOGS_HEARTBEAT_INTERVAL, LOGS_READ_STREAM_FLUSH_INTERVAL, NDJSON_CTYPE, } from '../../../lib/config.js';
|
9
9
|
const { NotFoundError } = errors;
|
10
10
|
const { api } = sbvrUtils;
|
11
|
+
const getReadBackend = async () => shouldReadFromLoki() ? await getLokiBackend() : getBackend();
|
11
12
|
export const read = (onLogReadStreamInitialized) => async (req, res) => {
|
12
13
|
try {
|
13
14
|
const ctx = await getReadContext(req);
|
@@ -16,7 +17,7 @@ export const read = (onLogReadStreamInitialized) => async (req, res) => {
|
|
16
17
|
onLogReadStreamInitialized?.(req);
|
17
18
|
}
|
18
19
|
else {
|
19
|
-
const logs = await getHistory(ctx, req, LOGS_DEFAULT_HISTORY_COUNT);
|
20
|
+
const logs = await getHistory(await getReadBackend(), ctx, req, LOGS_DEFAULT_HISTORY_COUNT);
|
20
21
|
res.json(logs);
|
21
22
|
}
|
22
23
|
}
|
@@ -29,6 +30,7 @@ export const read = (onLogReadStreamInitialized) => async (req, res) => {
|
|
29
30
|
}
|
30
31
|
};
|
31
32
|
async function handleStreamingRead(ctx, req, res) {
|
33
|
+
const backend = await getReadBackend();
|
32
34
|
let state = StreamState.Buffering;
|
33
35
|
let dropped = 0;
|
34
36
|
const buffer = [];
|
@@ -90,7 +92,7 @@ async function handleStreamingRead(ctx, req, res) {
|
|
90
92
|
function close() {
|
91
93
|
if (state !== StreamState.Closed) {
|
92
94
|
state = StreamState.Closed;
|
93
|
-
|
95
|
+
backend.unsubscribe(ctx, onLog);
|
94
96
|
}
|
95
97
|
clearInterval(heartbeatInterval);
|
96
98
|
heartbeatInterval = undefined;
|
@@ -98,9 +100,9 @@ async function handleStreamingRead(ctx, req, res) {
|
|
98
100
|
onFinished(req, close);
|
99
101
|
onFinished(res, close);
|
100
102
|
// Subscribe in parallel so we don't miss logs in between
|
101
|
-
|
103
|
+
backend.subscribe(ctx, onLog);
|
102
104
|
try {
|
103
|
-
let logs = await getHistory(ctx, req, LOGS_DEFAULT_SUBSCRIPTION_COUNT);
|
105
|
+
let logs = await getHistory(backend, ctx, req, LOGS_DEFAULT_SUBSCRIPTION_COUNT);
|
104
106
|
// We need this cast as typescript narrows to `StreamState.Buffering`
|
105
107
|
// because it ignores that during the `await` break it can be changed
|
106
108
|
// TODO: remove this once typescript removes the incorrect narrowing
|
@@ -147,14 +149,14 @@ function getCount(countParam, defaultCount) {
|
|
147
149
|
return defaultCount;
|
148
150
|
}
|
149
151
|
}
|
150
|
-
function getHistory(ctx, { query }, defaultCount) {
|
152
|
+
function getHistory(backend, ctx, { query }, defaultCount) {
|
151
153
|
const count = getCount(query.count, defaultCount);
|
152
154
|
// Optimize the case where the caller doesn't need any history
|
153
155
|
if (!count) {
|
154
156
|
return [];
|
155
157
|
}
|
156
158
|
// TODO: Implement `?since` filter here too in the next phase
|
157
|
-
return
|
159
|
+
return backend.history(ctx, count);
|
158
160
|
}
|
159
161
|
async function getReadContext(req) {
|
160
162
|
const { uuid } = req.params;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/read.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,wCAAwC,CAAC;AAGhD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/read.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,wCAAwC,CAAC;AAGhD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EACN,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,kBAAkB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EACN,0BAA0B,EAC1B,+BAA+B,EAC/B,uBAAuB,EACvB,+BAA+B,EAC/B,YAAY,GACZ,MAAM,wBAAwB,CAAC;AAEhC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;AACjC,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,cAAc,GAAG,KAAK,IAAI,EAA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C,CAAC;AACJ,CAAC"}
|
@@ -326,29 +326,6 @@ export const DEVICE_TYPE_SPECIFIC_CONFIG_VAR_PROPERTIES = [
|
|
326
326
|
default: 1,
|
327
327
|
},
|
328
328
|
}),
|
329
|
-
...getDefinitionWithMinimumSupervisorVersion({
|
330
|
-
'16.8.0': [
|
331
|
-
'jetson-agx-orin-devkit',
|
332
|
-
'jetson-agx-orin-devkit-64gb',
|
333
|
-
'jetson-orin-nano-devkit-nvme',
|
334
|
-
'jetson-orin-nano-seeed-j3010',
|
335
|
-
'jetson-orin-nx-seeed-j4012',
|
336
|
-
'jetson-orin-nx-xavier-nx-devkit',
|
337
|
-
],
|
338
|
-
}, {
|
339
|
-
BALENA_HOST_CONFIG_power_mode: {
|
340
|
-
type: 'string',
|
341
|
-
description: 'Define the device power mode. Supported by OS with Jetpack 6 or higher.',
|
342
|
-
examples: ['low', 'mid', 'high'],
|
343
|
-
will_reboot: true,
|
344
|
-
},
|
345
|
-
BALENA_HOST_CONFIG_fan_profile: {
|
346
|
-
type: 'string',
|
347
|
-
description: 'Define the device fan profile. Supported by OS with Jetpack 6 or higher.',
|
348
|
-
examples: ['quiet', 'cool'],
|
349
|
-
will_reboot: false,
|
350
|
-
},
|
351
|
-
}),
|
352
329
|
];
|
353
330
|
const startsWithAny = (ns, name) => {
|
354
331
|
return ns.some((n) => name.startsWith(n));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"env-vars.js","sourceRoot":"","sources":["../../../src/features/vars-schema/env-vars.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAEvE,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;AAEnC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;AAE1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CA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ACtC,MAAM,IAAI,eAAe,CACxB,GAAG,IAAI,kEAAkE,CACzE,CAAC;IACH,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,IAAY,EAAE,EAAE;IAC1D,YAAY,CAAC,wBAAwB,EAAE,IAAI,CAAC,CAAC;IAC7C,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC;QAC/C,MAAM,IAAI,eAAe,CACxB,2EAA2E;YAC1E,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC/B,CAAC;IACH,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,IAAY,EAAE,EAAE;IACvD,YAAY,CAAC,sBAAsB,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAC;IAE9D,IAAI,aAAa,CAAC,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,eAAe,CACxB,wCAAwC,mBAAmB,CAAC,IAAI,CAC/D,IAAI,CACJ,gBAAgB,CACjB,CAAC;IACH,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAAa,EAAE,EAAE;IACzD,IAAI,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,eAAe,CACxB,sDAAsD,CACtD,CAAC;IACH,CAAC;AACF,CAAC,CAAC"}
|
package/dist/lib/config.d.ts
CHANGED
@@ -96,6 +96,11 @@ export declare const LOKI_READ_HOST: string | undefined;
|
|
96
96
|
export declare const LOKI_WRITE_PORT: number;
|
97
97
|
export declare const LOKI_READ_PORT: number;
|
98
98
|
export declare const LOKI_WRITE_PCT: number;
|
99
|
+
/**
|
100
|
+
* This is the percent of log read requests that will go to loki, however the number of logs fetched from loki
|
101
|
+
* will vary based upon the type of those read requests, eg it could be a long streaming request or a one-off fetch
|
102
|
+
*/
|
103
|
+
export declare const LOKI_READ_PCT: number;
|
99
104
|
export declare const NDJSON_CTYPE = "application/x-ndjson";
|
100
105
|
export declare const LOGS_HEARTBEAT_INTERVAL = 58000;
|
101
106
|
export declare const LOGS_DEFAULT_HISTORY_COUNT = 1000;
|
package/dist/lib/config.js
CHANGED
@@ -180,6 +180,14 @@ export const LOKI_WRITE_PORT = intVar('LOKI_WRITE_PORT', LOKI_PORT);
|
|
180
180
|
export const LOKI_READ_PORT = intVar('LOKI_READ_PORT', LOKI_PORT);
|
181
181
|
// control the percent of logs written to Loki while scaling up
|
182
182
|
export const LOKI_WRITE_PCT = intVar('LOKI_WRITE_PCT', 0);
|
183
|
+
/**
|
184
|
+
* This is the percent of log read requests that will go to loki, however the number of logs fetched from loki
|
185
|
+
* will vary based upon the type of those read requests, eg it could be a long streaming request or a one-off fetch
|
186
|
+
*/
|
187
|
+
export const LOKI_READ_PCT = intVar('LOKI_READ_PCT', 0);
|
188
|
+
if (LOKI_WRITE_PCT < 100 && LOKI_READ_PCT > 0) {
|
189
|
+
throw new Error('LOKI_READ_PCT can only be set if LOKI_WRITE_PCT is 100');
|
190
|
+
}
|
183
191
|
export const NDJSON_CTYPE = 'application/x-ndjson';
|
184
192
|
// Logs read config
|
185
193
|
export const LOGS_HEARTBEAT_INTERVAL = 58000;
|
package/dist/lib/config.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AACA,OAAO,EACN,OAAO,EACP,KAAK,EACL,MAAM,EACN,OAAO,EACP,WAAW,EACX,WAAW,EACX,OAAO,EACP,YAAY,EACZ,aAAa,EACb,QAAQ,GACR,MAAM,qBAAqB,CAAC;AAE7B,yEAAyE;AACzE,uEAAuE;AACvE,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,MAAM,CAAC,IAAI,OAAe,CAAC;AAC3B,MAAM,UAAU,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CAA6C;QAE7C,iBAAiB,EAAE,CAAC;QACpB,mCAAmC,GAAG,CAAC,CAAC;IACzC,CAAC;IACD,IAAI,+CAA+C,CAClD,CAAyD;QAEzD,iBAAiB,EAAE,CAAC;QACpB,+CAA+C,GAAG,CAAC,CAAC;IACrD,CAAC;CACD,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/open-balena-api",
|
3
3
|
"description": "Internet of things, Made Simple",
|
4
|
-
"version": "30.1.0
|
4
|
+
"version": "30.1.0",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -167,6 +167,6 @@
|
|
167
167
|
"loader": "ts-node/esm/transpile-only"
|
168
168
|
},
|
169
169
|
"versionist": {
|
170
|
-
"publishedAt": "2024-10-
|
170
|
+
"publishedAt": "2024-10-24T11:15:37.154Z"
|
171
171
|
}
|
172
172
|
}
|