@platformatic/gateway 3.7.0 → 3.8.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.
Files changed (3) hide show
  1. package/config.d.ts +12 -0
  2. package/package.json +7 -7
  3. package/schema.json +51 -3
package/config.d.ts CHANGED
@@ -672,6 +672,18 @@ export interface PlatformaticGatewayConfig {
672
672
  [k: string]: unknown;
673
673
  };
674
674
  };
675
+ verticalScaler?: {
676
+ enabled?: boolean;
677
+ maxTotalWorkers?: number;
678
+ minWorkers?: number;
679
+ maxWorkers?: number;
680
+ scaleUpELU?: number;
681
+ scaleDownELU?: number;
682
+ minELUDiff?: number;
683
+ timeWindowSec?: number;
684
+ cooldownSec?: number;
685
+ scaleIntervalSec?: number;
686
+ };
675
687
  inspectorOptions?: {
676
688
  host?: string;
677
689
  port?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/gateway",
3
- "version": "3.7.0",
3
+ "version": "3.8.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.7.0"
36
+ "@platformatic/db": "3.8.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/foundation": "^3.7.0",
68
- "@platformatic/basic": "3.7.0",
69
- "@platformatic/service": "3.7.0",
70
- "@platformatic/scalar-theme": "3.7.0",
71
- "@platformatic/telemetry": "3.7.0"
67
+ "@platformatic/basic": "3.8.0",
68
+ "@platformatic/scalar-theme": "3.8.0",
69
+ "@platformatic/foundation": "^3.8.0",
70
+ "@platformatic/telemetry": "3.8.0",
71
+ "@platformatic/service": "3.8.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.7.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.8.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Gateway Config",
5
5
  "type": "object",
@@ -1521,8 +1521,7 @@
1521
1521
  {
1522
1522
  "type": "string"
1523
1523
  }
1524
- ],
1525
- "default": 1
1524
+ ]
1526
1525
  },
1527
1526
  "workersRestartDelay": {
1528
1527
  "anyOf": [
@@ -2422,6 +2421,55 @@
2422
2421
  ],
2423
2422
  "additionalProperties": false
2424
2423
  },
2424
+ "verticalScaler": {
2425
+ "type": "object",
2426
+ "properties": {
2427
+ "enabled": {
2428
+ "type": "boolean",
2429
+ "default": true
2430
+ },
2431
+ "maxTotalWorkers": {
2432
+ "type": "number",
2433
+ "minimum": 1
2434
+ },
2435
+ "minWorkers": {
2436
+ "type": "number",
2437
+ "minimum": 1
2438
+ },
2439
+ "maxWorkers": {
2440
+ "type": "number",
2441
+ "minimum": 1
2442
+ },
2443
+ "scaleUpELU": {
2444
+ "type": "number",
2445
+ "minimum": 0,
2446
+ "maximum": 1
2447
+ },
2448
+ "scaleDownELU": {
2449
+ "type": "number",
2450
+ "minimum": 0,
2451
+ "maximum": 1
2452
+ },
2453
+ "minELUDiff": {
2454
+ "type": "number",
2455
+ "minimum": 0,
2456
+ "maximum": 1
2457
+ },
2458
+ "timeWindowSec": {
2459
+ "type": "number",
2460
+ "minimum": 0
2461
+ },
2462
+ "cooldownSec": {
2463
+ "type": "number",
2464
+ "minimum": 0
2465
+ },
2466
+ "scaleIntervalSec": {
2467
+ "type": "number",
2468
+ "minimum": 0
2469
+ }
2470
+ },
2471
+ "additionalProperties": false
2472
+ },
2425
2473
  "inspectorOptions": {
2426
2474
  "type": "object",
2427
2475
  "properties": {