@platformatic/runtime 2.54.0 → 2.55.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 +3 -1
- package/lib/runtime.js +7 -1
- package/package.json +14 -14
- package/schema.json +17 -1
package/config.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type HttpsSchemasPlatformaticDevPlatformaticRuntime2550Json = {
|
|
9
9
|
[k: string]: unknown;
|
|
10
10
|
} & {
|
|
11
11
|
$schema?: string;
|
|
@@ -29,6 +29,7 @@ export type HttpsSchemasPlatformaticDevPlatformaticRuntime2540Json = {
|
|
|
29
29
|
maxELU?: number | string;
|
|
30
30
|
maxHeapUsed?: number | string;
|
|
31
31
|
maxHeapTotal?: number | string;
|
|
32
|
+
maxYoungGeneration?: number;
|
|
32
33
|
};
|
|
33
34
|
preload?: string | string[];
|
|
34
35
|
arguments?: string[];
|
|
@@ -121,6 +122,7 @@ export type HttpsSchemasPlatformaticDevPlatformaticRuntime2540Json = {
|
|
|
121
122
|
maxELU?: number | string;
|
|
122
123
|
maxHeapUsed?: number | string;
|
|
123
124
|
maxHeapTotal?: number | string;
|
|
125
|
+
maxYoungGeneration?: number;
|
|
124
126
|
};
|
|
125
127
|
undici?: {
|
|
126
128
|
agentOptions?: {
|
package/lib/runtime.js
CHANGED
|
@@ -1087,6 +1087,11 @@ class Runtime extends EventEmitter {
|
|
|
1087
1087
|
workerEnv['NODE_OPTIONS'] = `${originalNodeOptions} ${serviceConfig.nodeOptions}`.trim()
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
|
+
const maxOldGenerationSizeMb = Math.floor(
|
|
1091
|
+
(health.maxYoungGeneration > 0 ? health.maxHeapTotal - health.maxYoungGeneration : health.maxHeapTotal) / (1024 * 1024)
|
|
1092
|
+
)
|
|
1093
|
+
const maxYoungGenerationSizeMb = health.maxYoungGeneration ? Math.floor(health.maxYoungGeneration / (1024 * 1024)) : undefined
|
|
1094
|
+
|
|
1090
1095
|
const worker = new Worker(kWorkerFile, {
|
|
1091
1096
|
workerData: {
|
|
1092
1097
|
config,
|
|
@@ -1108,7 +1113,8 @@ class Runtime extends EventEmitter {
|
|
|
1108
1113
|
execArgv,
|
|
1109
1114
|
env: workerEnv,
|
|
1110
1115
|
resourceLimits: {
|
|
1111
|
-
maxOldGenerationSizeMb
|
|
1116
|
+
maxOldGenerationSizeMb,
|
|
1117
|
+
maxYoungGenerationSizeMb
|
|
1112
1118
|
},
|
|
1113
1119
|
stdout: true,
|
|
1114
1120
|
stderr: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/runtime",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.55.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"typescript": "^5.5.4",
|
|
38
38
|
"undici-oidc-interceptor": "^0.5.0",
|
|
39
39
|
"why-is-node-running": "^2.2.2",
|
|
40
|
-
"@platformatic/
|
|
41
|
-
"@platformatic/
|
|
42
|
-
"@platformatic/node": "2.
|
|
43
|
-
"@platformatic/
|
|
44
|
-
"@platformatic/
|
|
45
|
-
"@platformatic/sql-mapper": "2.
|
|
40
|
+
"@platformatic/composer": "2.55.0",
|
|
41
|
+
"@platformatic/db": "2.55.0",
|
|
42
|
+
"@platformatic/node": "2.55.0",
|
|
43
|
+
"@platformatic/sql-graphql": "2.55.0",
|
|
44
|
+
"@platformatic/service": "2.55.0",
|
|
45
|
+
"@platformatic/sql-mapper": "2.55.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@fastify/accepts": "^5.0.0",
|
|
@@ -77,13 +77,13 @@
|
|
|
77
77
|
"undici": "^7.0.0",
|
|
78
78
|
"undici-thread-interceptor": "^0.13.1",
|
|
79
79
|
"ws": "^8.16.0",
|
|
80
|
-
"@platformatic/basic": "2.
|
|
81
|
-
"@platformatic/
|
|
82
|
-
"@platformatic/
|
|
83
|
-
"@platformatic/
|
|
84
|
-
"@platformatic/telemetry": "2.
|
|
85
|
-
"@platformatic/ts-compiler": "2.
|
|
86
|
-
"@platformatic/utils": "2.
|
|
80
|
+
"@platformatic/basic": "2.55.0",
|
|
81
|
+
"@platformatic/itc": "2.55.0",
|
|
82
|
+
"@platformatic/config": "2.55.0",
|
|
83
|
+
"@platformatic/generators": "2.55.0",
|
|
84
|
+
"@platformatic/telemetry": "2.55.0",
|
|
85
|
+
"@platformatic/ts-compiler": "2.55.0",
|
|
86
|
+
"@platformatic/utils": "2.55.0"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|
|
89
89
|
"test": "npm run lint && borp --concurrency=1 --timeout=300000 && tsd",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/runtime/2.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/runtime/2.55.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -154,6 +154,10 @@
|
|
|
154
154
|
"type": "string"
|
|
155
155
|
}
|
|
156
156
|
]
|
|
157
|
+
},
|
|
158
|
+
"maxYoungGeneration": {
|
|
159
|
+
"type": "number",
|
|
160
|
+
"minimum": 0
|
|
157
161
|
}
|
|
158
162
|
},
|
|
159
163
|
"additionalProperties": false
|
|
@@ -318,6 +322,10 @@
|
|
|
318
322
|
"type": "string"
|
|
319
323
|
}
|
|
320
324
|
]
|
|
325
|
+
},
|
|
326
|
+
"maxYoungGeneration": {
|
|
327
|
+
"type": "number",
|
|
328
|
+
"minimum": 0
|
|
321
329
|
}
|
|
322
330
|
},
|
|
323
331
|
"additionalProperties": false
|
|
@@ -547,6 +555,10 @@
|
|
|
547
555
|
"type": "string"
|
|
548
556
|
}
|
|
549
557
|
]
|
|
558
|
+
},
|
|
559
|
+
"maxYoungGeneration": {
|
|
560
|
+
"type": "number",
|
|
561
|
+
"minimum": 0
|
|
550
562
|
}
|
|
551
563
|
},
|
|
552
564
|
"additionalProperties": false
|
|
@@ -976,6 +988,10 @@
|
|
|
976
988
|
"type": "string"
|
|
977
989
|
}
|
|
978
990
|
]
|
|
991
|
+
},
|
|
992
|
+
"maxYoungGeneration": {
|
|
993
|
+
"type": "number",
|
|
994
|
+
"minimum": 0
|
|
979
995
|
}
|
|
980
996
|
},
|
|
981
997
|
"additionalProperties": false
|