@balena/open-balena-api 30.1.0-build-service-install-as-async-job-ad1f30d03dc7336bb9e01e51bd3310ae70d0e7ef-1 → 30.1.0-build-service-install-as-async-job-f06e3878c984b1d08abbd9230755a136c13cf86e-1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ import _ from 'lodash';
2
2
  import { EventEmitter } from 'events';
3
3
  import loki from 'loki-grpc-client';
4
4
  import { errors, sbvrUtils, permissions } from '@balena/pinejs';
5
- import { LOKI_HOST, LOKI_PORT } from '../../../../lib/config.js';
5
+ import { LOKI_READ_HOST, LOKI_READ_PORT, LOKI_WRITE_HOST, LOKI_WRITE_PORT, } from '../../../../lib/config.js';
6
6
  import { captureException } from '../../../../infra/error-handling/index.js';
7
7
  import { setCurrentSubscriptions, incrementSubscriptionTotal, incrementPublishCallSuccessTotal, incrementPublishCallFailedTotal, incrementLokiPushErrorTotal, incrementPublishLogMessagesTotal, incrementPublishLogMessagesDropped, incrementLokiPushTotal, updateLokiPushDurationHistogram, incrementPublishCallTotal, } from './metrics.js';
8
8
  import { setTimeout } from 'timers/promises';
@@ -11,6 +11,8 @@ const { BadRequestError } = errors;
11
11
  const statusKeys = _.transform(loki.status, function (result, value, key) {
12
12
  result[value] = key;
13
13
  }, {});
14
+ const lokiQueryAddress = `${LOKI_READ_HOST}:${LOKI_READ_PORT}`;
15
+ const lokiPushAddress = `${LOKI_WRITE_HOST}:${LOKI_WRITE_PORT}`;
14
16
  // Retries disabled so that writes to Redis are not delayed on Loki error
15
17
  const RETRIES_ENABLED = false;
16
18
  // Timeout set to 1s so that writes to Redis are not delayed if Loki is slow
@@ -76,8 +78,8 @@ export class LokiBackend {
76
78
  tailCalls;
77
79
  constructor() {
78
80
  this.subscriptions = new EventEmitter();
79
- this.querier = new loki.QuerierClient(`${LOKI_HOST}:${LOKI_PORT}`, loki.createInsecureCredentials());
80
- this.pusher = new loki.PusherClient(`${LOKI_HOST}:${LOKI_PORT}`, loki.createInsecureCredentials());
81
+ this.querier = new loki.QuerierClient(lokiQueryAddress, loki.createInsecureCredentials());
82
+ this.pusher = new loki.PusherClient(lokiPushAddress, loki.createInsecureCredentials());
81
83
  this.tailCalls = new Map();
82
84
  this.push = backoff(this.push.bind(this), (err) => {
83
85
  incrementLokiPushErrorTotal(err.code ? statusKeys[err.code] : 'UNDEFINED');
@@ -111,7 +113,7 @@ export class LokiBackend {
111
113
  streams.push(...queryResponse.getStreamsList());
112
114
  });
113
115
  call.on('error', (error) => {
114
- const message = `Failed to query logs from ${LOKI_HOST}:${LOKI_PORT} for device ${ctx.uuid}`;
116
+ const message = `Failed to query logs from ${lokiQueryAddress} for device ${ctx.uuid}`;
115
117
  captureException(error, message);
116
118
  reject(new BadRequestError(message));
117
119
  });
@@ -134,7 +136,7 @@ export class LokiBackend {
134
136
  catch (err) {
135
137
  incrementPublishCallFailedTotal();
136
138
  incrementPublishLogMessagesDropped(countLogs);
137
- let message = `Failed to publish logs to ${LOKI_HOST}:${LOKI_PORT} for device ${ctx.uuid}`;
139
+ let message = `Failed to publish logs to ${lokiPushAddress} for device ${ctx.uuid}`;
138
140
  if (VERBOSE_ERROR_MESSAGE) {
139
141
  message += JSON.stringify(logs, (key, value) => (key === 'nanoTimestamp' ? undefined : value), '\t').substring(0, 1000);
140
142
  }
@@ -181,7 +183,7 @@ export class LokiBackend {
181
183
  });
182
184
  call.on('error', (err) => {
183
185
  if (err.details !== 'Cancelled') {
184
- captureException(err, `Loki tail call error from ${LOKI_HOST}:${LOKI_PORT} for device ${ctx.uuid}`);
186
+ captureException(err, `Loki tail call error from ${lokiQueryAddress} for device ${ctx.uuid}`);
185
187
  }
186
188
  this.subscriptions.removeListener(key, subscription);
187
189
  this.tailCalls.delete(key);
@@ -1 +1 @@
1
- {"version":3,"file":"loki.js","sourceRoot":"","sources":["../../../../../src/features/device-logs/lib/backends/loki.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ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AAE,KAAK,EAAE,EAAE,CAClD,GAAG,KAAK,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAC3C,CAAC;YACF,+CAA+C;YAC/C,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,YAAY,EAAE;iBACnC,OAAO,CAAC,OAAO,CAAC;iBAChB,YAAY,CAAC,SAAS,CAAC,CAAC;YAC1B,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;YACnC,yBAAyB;YACzB,IAAI,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;YACjC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACb,sCAAsC;gBACtC,MAAM,GAAG,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBAClC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;gBACzB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBACrB,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;YAC9B,CAAC;YACD,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;QACD,OAAO,OAAO,CAAC;IAChB,CAAC;CACD"}
@@ -1,7 +1,7 @@
1
1
  import _ from 'lodash';
2
2
  import { RedisBackend } from './backends/redis.js';
3
- import { LOGS_DEFAULT_RETENTION_LIMIT, LOKI_HOST, LOKI_WRITE_PCT, } from '../../../lib/config.js';
4
- export const LOKI_ENABLED = LOKI_HOST && LOKI_WRITE_PCT > 0;
3
+ import { LOGS_DEFAULT_RETENTION_LIMIT, LOKI_READ_HOST, LOKI_WRITE_HOST, LOKI_WRITE_PCT, } from '../../../lib/config.js';
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
6
  export function addRetentionLimit(ctx) {
7
7
  return {
@@ -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,SAAS,EACT,cAAc,GACd,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,IAAI,cAAc,GAAG,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE,CACvC,YAAY,IAAI,cAAc,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC;AAEtD,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"}
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;AAEtD,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"}
@@ -12,28 +12,28 @@ const { api } = sbvrUtils;
12
12
  const supervisor = new Supervisor();
13
13
  const getWriteContext = (() => {
14
14
  const $getWriteContext = multiCacheMemoizee(async (uuid, req) => {
15
- return await sbvrUtils.db.readTransaction(async (tx) => {
16
- try {
17
- const result = await api.resin.request({
15
+ try {
16
+ const result = await sbvrUtils.db.readTransaction(async (tx) => {
17
+ return await api.resin.request({
18
18
  method: 'POST',
19
19
  // We use a parameter alias to signify to pinejs that it's a beneficial query to cache
20
20
  url: `device(uuid=@uuid)/canAccess?@uuid='${uuid}'`,
21
21
  passthrough: { req, tx },
22
22
  body: { action: 'write-log' },
23
23
  });
24
- const deviceId = result?.d?.[0]?.id;
25
- if (deviceId == null) {
26
- return false;
27
- }
28
- return addRetentionLimit({
29
- id: deviceId,
30
- uuid,
31
- });
32
- }
33
- catch {
24
+ });
25
+ const deviceId = result?.d?.[0]?.id;
26
+ if (deviceId == null) {
34
27
  return false;
35
28
  }
36
- });
29
+ return addRetentionLimit({
30
+ id: deviceId,
31
+ uuid,
32
+ });
33
+ }
34
+ catch {
35
+ return false;
36
+ }
37
37
  }, {
38
38
  cacheKey: 'getDeviceLogsWriteContext',
39
39
  promise: true,
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/store.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,YAAY,EACZ,mBAAmB,GACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EACN,oCAAoC,EACpC,uCAAuC,EACvC,0BAA0B,EAC1B,uBAAuB,EACvB,YAAY,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GACvB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,EACL,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,GACzB,GAAG,MAAM,CAAC;AACX,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;AAEpC,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE;IAC7B,MAAM,gBAAgB,GAAG,kBAAkB,CAC1C,KAAK,EACJ,IAAY,EACZ,GAA8B,EACA,EAAE;QAChC,OAAO,MAAM,SAAS,CAAC,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE;YACtD,IAAI,CAAC;gBACJ,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC;o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AC;YACZ,CAAC;QACF,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACd,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QAClC,CAAC;IACF,CAAC;IACD,SAAS,QAAQ;QAChB,IAAI,gBAAgB,KAAK,KAAK,EAAE,CAAC;YAChC,OAAO;QACR,CAAC;QACD,8DAA8D;QAC9D,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS;YAC9B,CAAC,CAAC,0BAA0B;YAC5B,CAAC,CAAC,uCAAuC,CAAC;QAC3C,UAAU,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QAC9B,gBAAgB,GAAG,IAAI,CAAC;IACzB,CAAC;AACF,CAAC"}
@@ -91,8 +91,10 @@ export declare const REDIS: {
91
91
  };
92
92
  export declare const REDIS_LOGS_SHARDED_PUBSUB: boolean;
93
93
  export declare const REDIS_LOGS_COMPRESSION_ENABLED: boolean;
94
- export declare const LOKI_HOST: string | undefined;
95
- export declare const LOKI_PORT: number;
94
+ export declare const LOKI_WRITE_HOST: string | undefined;
95
+ export declare const LOKI_READ_HOST: string | undefined;
96
+ export declare const LOKI_WRITE_PORT: number;
97
+ export declare const LOKI_READ_PORT: number;
96
98
  export declare const LOKI_WRITE_PCT: number;
97
99
  export declare const NDJSON_CTYPE = "application/x-ndjson";
98
100
  export declare const LOGS_HEARTBEAT_INTERVAL = 58000;
@@ -172,8 +172,12 @@ export const REDIS = {
172
172
  };
173
173
  export const REDIS_LOGS_SHARDED_PUBSUB = boolVar('REDIS_LOGS_SHARDED_PUBSUB', false);
174
174
  export const REDIS_LOGS_COMPRESSION_ENABLED = boolVar('REDIS_LOGS_COMPRESSION_ENABLED', true);
175
- export const LOKI_HOST = optionalVar('LOKI_HOST');
176
- export const LOKI_PORT = intVar('LOKI_PORT', 9095);
175
+ const LOKI_HOST = optionalVar('LOKI_HOST');
176
+ export const LOKI_WRITE_HOST = optionalVar('LOKI_WRITE_HOST', LOKI_HOST);
177
+ export const LOKI_READ_HOST = optionalVar('LOKI_READ_HOST', LOKI_HOST);
178
+ const LOKI_PORT = intVar('LOKI_PORT', 9095);
179
+ export const LOKI_WRITE_PORT = intVar('LOKI_WRITE_PORT', LOKI_PORT);
180
+ export const LOKI_READ_PORT = intVar('LOKI_READ_PORT', LOKI_PORT);
177
181
  // control the percent of logs written to Loki while scaling up
178
182
  export const LOKI_WRITE_PCT = intVar('LOKI_WRITE_PCT', 0);
179
183
  export const NDJSON_CTYPE = 'application/x-ndjson';
@@ -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,UAAU,CAAC,CAAiB;IAC3C,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CACd,iDAAiD,OAAO,WAAW,CAAC,GAAG,CACvE,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC,CAAC;AACb,CAAC;AAED,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BrB,CAAC;AAEF,MAAM,CAAN,IAAY,wBAEX;AAFD,WAAY,wBAAwB;IACnC,mJAA8C,CAAA;AAC/C,CAAC,EAFW,wBAAwB,KAAxB,wBAAwB,QAEnC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAChD,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC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ACpB,mBAAmB,GAAG,CAAC,CAAC;IACzB,CAAC;IACD,IAAI,0CAA0C,CAC7C,CAAoD;QAEpD,iBAAiB,EAAE,CAAC;QACpB,0CAA0C,GAAG,CAAC,CAAC;IAChD,CAAC;IACD,IAAI,wBAAwB,CAAC,CAAkC;QAC9D,iBAAiB,EAAE,CAAC;QACpB,wBAAwB,GAAG,CAAC,CAAC;IAC9B,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-build-service-install-as-async-job-ad1f30d03dc7336bb9e01e51bd3310ae70d0e7ef-1",
4
+ "version": "30.1.0-build-service-install-as-async-job-f06e3878c984b1d08abbd9230755a136c13cf86e-1",
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-22T13:29:45.281Z"
170
+ "publishedAt": "2024-10-23T14:31:16.137Z"
171
171
  }
172
172
  }