@platformatic/service 3.29.0 → 3.30.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/config.d.ts +4 -6
- package/lib/capability.js +5 -2
- package/package.json +9 -9
- package/schema.json +34 -6
package/config.d.ts
CHANGED
|
@@ -325,6 +325,8 @@ export interface PlatformaticServiceConfig {
|
|
|
325
325
|
maxMemory?: number;
|
|
326
326
|
cooldown?: number;
|
|
327
327
|
gracePeriod?: number;
|
|
328
|
+
scaleUpELU?: number;
|
|
329
|
+
scaleDownELU?: number;
|
|
328
330
|
[k: string]: unknown;
|
|
329
331
|
};
|
|
330
332
|
workersRestartDelay?: number | string;
|
|
@@ -657,13 +659,7 @@ export interface PlatformaticServiceConfig {
|
|
|
657
659
|
maxWorkers?: number;
|
|
658
660
|
cooldownSec?: number;
|
|
659
661
|
gracePeriod?: number;
|
|
660
|
-
/**
|
|
661
|
-
* @deprecated
|
|
662
|
-
*/
|
|
663
662
|
scaleUpELU?: number;
|
|
664
|
-
/**
|
|
665
|
-
* @deprecated
|
|
666
|
-
*/
|
|
667
663
|
scaleDownELU?: number;
|
|
668
664
|
/**
|
|
669
665
|
* @deprecated
|
|
@@ -727,6 +723,8 @@ export interface PlatformaticServiceConfig {
|
|
|
727
723
|
static?: number;
|
|
728
724
|
minimum?: number;
|
|
729
725
|
maximum?: number;
|
|
726
|
+
scaleUpELU?: number;
|
|
727
|
+
scaleDownELU?: number;
|
|
730
728
|
[k: string]: unknown;
|
|
731
729
|
};
|
|
732
730
|
health?: {
|
package/lib/capability.js
CHANGED
|
@@ -41,7 +41,10 @@ export class ServiceCapability extends BaseCapability {
|
|
|
41
41
|
|
|
42
42
|
// This must be done before loading the plugins, so they can inspect if the
|
|
43
43
|
// openTelemetry decorator exists and then configure accordingly.
|
|
44
|
-
|
|
44
|
+
// Skip manual telemetry plugin if automatic instrumentation is already active
|
|
45
|
+
// (loaded via --import from node-telemetry.js)
|
|
46
|
+
const hasAutomaticInstrumentation = !!globalThis.platformatic?.tracerProvider
|
|
47
|
+
if (isKeyEnabled('telemetry', config) && !hasAutomaticInstrumentation) {
|
|
45
48
|
await this.#app.register(telemetry, config.telemetry)
|
|
46
49
|
}
|
|
47
50
|
|
|
@@ -69,7 +72,7 @@ export class ServiceCapability extends BaseCapability {
|
|
|
69
72
|
return this.url
|
|
70
73
|
}
|
|
71
74
|
|
|
72
|
-
await super._start()
|
|
75
|
+
await super._start({ listen })
|
|
73
76
|
|
|
74
77
|
// Create the application if needed
|
|
75
78
|
if (!this.#app) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.30.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"self-cert": "^2.0.0",
|
|
29
29
|
"split2": "^4.2.0",
|
|
30
30
|
"typescript": "^5.5.4",
|
|
31
|
-
"undici": "7.
|
|
31
|
+
"undici": "7.18.2",
|
|
32
32
|
"vscode-json-languageservice": "^5.3.9",
|
|
33
33
|
"why-is-node-running": "^2.2.2",
|
|
34
34
|
"yaml": "^2.4.1"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"env-schema": "^6.0.0",
|
|
55
55
|
"execa": "^9.0.0",
|
|
56
56
|
"fast-json-patch": "^3.1.1",
|
|
57
|
-
"fastify": "^5.
|
|
57
|
+
"fastify": "^5.7.0",
|
|
58
58
|
"fastify-plugin": "^5.0.0",
|
|
59
59
|
"graphql": "^16.9.0",
|
|
60
60
|
"help-me": "^5.0.0",
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
"rfdc": "^1.3.1",
|
|
68
68
|
"semgrator": "^0.3.0",
|
|
69
69
|
"undici": "^7.0.0",
|
|
70
|
-
"@platformatic/basic": "3.
|
|
71
|
-
"@platformatic/generators": "3.
|
|
72
|
-
"@platformatic/
|
|
73
|
-
"@platformatic/
|
|
74
|
-
"@platformatic/
|
|
75
|
-
"@platformatic/
|
|
70
|
+
"@platformatic/basic": "3.30.0",
|
|
71
|
+
"@platformatic/generators": "3.30.0",
|
|
72
|
+
"@platformatic/foundation": "3.30.0",
|
|
73
|
+
"@platformatic/scalar-theme": "3.30.0",
|
|
74
|
+
"@platformatic/metrics": "3.30.0",
|
|
75
|
+
"@platformatic/telemetry": "3.30.0"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
78
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/service/3.
|
|
3
|
-
"version": "3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/service/3.30.0.json",
|
|
3
|
+
"version": "3.30.0",
|
|
4
4
|
"title": "Platformatic Service Config",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -1080,6 +1080,16 @@
|
|
|
1080
1080
|
"maximum": {
|
|
1081
1081
|
"type": "number",
|
|
1082
1082
|
"minimum": 0
|
|
1083
|
+
},
|
|
1084
|
+
"scaleUpELU": {
|
|
1085
|
+
"type": "number",
|
|
1086
|
+
"minimum": 0,
|
|
1087
|
+
"maximum": 1
|
|
1088
|
+
},
|
|
1089
|
+
"scaleDownELU": {
|
|
1090
|
+
"type": "number",
|
|
1091
|
+
"minimum": 0,
|
|
1092
|
+
"maximum": 1
|
|
1083
1093
|
}
|
|
1084
1094
|
}
|
|
1085
1095
|
}
|
|
@@ -1359,6 +1369,16 @@
|
|
|
1359
1369
|
"gracePeriod": {
|
|
1360
1370
|
"type": "number",
|
|
1361
1371
|
"minimum": 0
|
|
1372
|
+
},
|
|
1373
|
+
"scaleUpELU": {
|
|
1374
|
+
"type": "number",
|
|
1375
|
+
"minimum": 0,
|
|
1376
|
+
"maximum": 1
|
|
1377
|
+
},
|
|
1378
|
+
"scaleDownELU": {
|
|
1379
|
+
"type": "number",
|
|
1380
|
+
"minimum": 0,
|
|
1381
|
+
"maximum": 1
|
|
1362
1382
|
}
|
|
1363
1383
|
}
|
|
1364
1384
|
}
|
|
@@ -2391,14 +2411,12 @@
|
|
|
2391
2411
|
"scaleUpELU": {
|
|
2392
2412
|
"type": "number",
|
|
2393
2413
|
"minimum": 0,
|
|
2394
|
-
"maximum": 1
|
|
2395
|
-
"deprecated": true
|
|
2414
|
+
"maximum": 1
|
|
2396
2415
|
},
|
|
2397
2416
|
"scaleDownELU": {
|
|
2398
2417
|
"type": "number",
|
|
2399
2418
|
"minimum": 0,
|
|
2400
|
-
"maximum": 1
|
|
2401
|
-
"deprecated": true
|
|
2419
|
+
"maximum": 1
|
|
2402
2420
|
},
|
|
2403
2421
|
"timeWindowSec": {
|
|
2404
2422
|
"type": "number",
|
|
@@ -2599,6 +2617,16 @@
|
|
|
2599
2617
|
"maximum": {
|
|
2600
2618
|
"type": "number",
|
|
2601
2619
|
"minimum": 0
|
|
2620
|
+
},
|
|
2621
|
+
"scaleUpELU": {
|
|
2622
|
+
"type": "number",
|
|
2623
|
+
"minimum": 0,
|
|
2624
|
+
"maximum": 1
|
|
2625
|
+
},
|
|
2626
|
+
"scaleDownELU": {
|
|
2627
|
+
"type": "number",
|
|
2628
|
+
"minimum": 0,
|
|
2629
|
+
"maximum": 1
|
|
2602
2630
|
}
|
|
2603
2631
|
}
|
|
2604
2632
|
}
|