@platformatic/gateway 3.9.0 → 3.11.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 -1
- package/package.json +7 -7
- package/schema.json +47 -5
package/config.d.ts
CHANGED
|
@@ -595,6 +595,7 @@ export interface PlatformaticGatewayConfig {
|
|
|
595
595
|
};
|
|
596
596
|
};
|
|
597
597
|
plugins?: string[];
|
|
598
|
+
timeout?: number | string;
|
|
598
599
|
};
|
|
599
600
|
telemetry?: {
|
|
600
601
|
enabled?: boolean | string;
|
|
@@ -675,14 +676,16 @@ export interface PlatformaticGatewayConfig {
|
|
|
675
676
|
verticalScaler?: {
|
|
676
677
|
enabled?: boolean;
|
|
677
678
|
maxTotalWorkers?: number;
|
|
679
|
+
maxTotalMemory?: number;
|
|
678
680
|
minWorkers?: number;
|
|
679
681
|
maxWorkers?: number;
|
|
680
682
|
scaleUpELU?: number;
|
|
681
683
|
scaleDownELU?: number;
|
|
682
|
-
minELUDiff?: number;
|
|
683
684
|
timeWindowSec?: number;
|
|
685
|
+
scaleDownTimeWindowSec?: number;
|
|
684
686
|
cooldownSec?: number;
|
|
685
687
|
scaleIntervalSec?: number;
|
|
688
|
+
gracePeriod?: number;
|
|
686
689
|
};
|
|
687
690
|
inspectorOptions?: {
|
|
688
691
|
host?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/gateway",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typescript": "^5.5.4",
|
|
34
34
|
"why-is-node-running": "2",
|
|
35
35
|
"ws": "^8.16.0",
|
|
36
|
-
"@platformatic/db": "3.
|
|
36
|
+
"@platformatic/db": "3.11.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@fastify/error": "^4.0.0",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"rfdc": "^1.3.1",
|
|
65
65
|
"semgrator": "^0.3.0",
|
|
66
66
|
"undici": "^7.0.0",
|
|
67
|
-
"@platformatic/basic": "3.
|
|
68
|
-
"@platformatic/foundation": "^3.
|
|
69
|
-
"@platformatic/scalar-theme": "3.
|
|
70
|
-
"@platformatic/telemetry": "3.
|
|
71
|
-
"@platformatic/service": "3.
|
|
67
|
+
"@platformatic/basic": "3.11.0",
|
|
68
|
+
"@platformatic/foundation": "^3.11.0",
|
|
69
|
+
"@platformatic/scalar-theme": "3.11.0",
|
|
70
|
+
"@platformatic/telemetry": "3.11.0",
|
|
71
|
+
"@platformatic/service": "3.11.0"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.11.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Gateway Config",
|
|
5
5
|
"type": "object",
|
|
@@ -1475,6 +1475,30 @@
|
|
|
1475
1475
|
"nodeOptions": {
|
|
1476
1476
|
"type": "string"
|
|
1477
1477
|
},
|
|
1478
|
+
"permissions": {
|
|
1479
|
+
"type": "object",
|
|
1480
|
+
"properties": {
|
|
1481
|
+
"fs": {
|
|
1482
|
+
"type": "object",
|
|
1483
|
+
"properties": {
|
|
1484
|
+
"read": {
|
|
1485
|
+
"type": "array",
|
|
1486
|
+
"items": {
|
|
1487
|
+
"type": "string"
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1490
|
+
"write": {
|
|
1491
|
+
"type": "array",
|
|
1492
|
+
"items": {
|
|
1493
|
+
"type": "string"
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
},
|
|
1497
|
+
"additionalProperties": false
|
|
1498
|
+
}
|
|
1499
|
+
},
|
|
1500
|
+
"additionalProperties": false
|
|
1501
|
+
},
|
|
1478
1502
|
"telemetry": {
|
|
1479
1503
|
"type": "object",
|
|
1480
1504
|
"properties": {
|
|
@@ -2285,6 +2309,17 @@
|
|
|
2285
2309
|
}
|
|
2286
2310
|
]
|
|
2287
2311
|
}
|
|
2312
|
+
},
|
|
2313
|
+
"timeout": {
|
|
2314
|
+
"anyOf": [
|
|
2315
|
+
{
|
|
2316
|
+
"type": "integer"
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
"type": "string"
|
|
2320
|
+
}
|
|
2321
|
+
],
|
|
2322
|
+
"default": 10000
|
|
2288
2323
|
}
|
|
2289
2324
|
},
|
|
2290
2325
|
"additionalProperties": false
|
|
@@ -2432,6 +2467,10 @@
|
|
|
2432
2467
|
"type": "number",
|
|
2433
2468
|
"minimum": 1
|
|
2434
2469
|
},
|
|
2470
|
+
"maxTotalMemory": {
|
|
2471
|
+
"type": "number",
|
|
2472
|
+
"minimum": 0
|
|
2473
|
+
},
|
|
2435
2474
|
"minWorkers": {
|
|
2436
2475
|
"type": "number",
|
|
2437
2476
|
"minimum": 1
|
|
@@ -2450,12 +2489,11 @@
|
|
|
2450
2489
|
"minimum": 0,
|
|
2451
2490
|
"maximum": 1
|
|
2452
2491
|
},
|
|
2453
|
-
"
|
|
2492
|
+
"timeWindowSec": {
|
|
2454
2493
|
"type": "number",
|
|
2455
|
-
"minimum": 0
|
|
2456
|
-
"maximum": 1
|
|
2494
|
+
"minimum": 0
|
|
2457
2495
|
},
|
|
2458
|
-
"
|
|
2496
|
+
"scaleDownTimeWindowSec": {
|
|
2459
2497
|
"type": "number",
|
|
2460
2498
|
"minimum": 0
|
|
2461
2499
|
},
|
|
@@ -2466,6 +2504,10 @@
|
|
|
2466
2504
|
"scaleIntervalSec": {
|
|
2467
2505
|
"type": "number",
|
|
2468
2506
|
"minimum": 0
|
|
2507
|
+
},
|
|
2508
|
+
"gracePeriod": {
|
|
2509
|
+
"type": "number",
|
|
2510
|
+
"minimum": 0
|
|
2469
2511
|
}
|
|
2470
2512
|
},
|
|
2471
2513
|
"additionalProperties": false
|