@platformatic/db 3.7.1 → 3.9.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 +12 -12
  3. package/schema.json +51 -3
package/config.d.ts CHANGED
@@ -767,6 +767,18 @@ export interface PlatformaticDatabaseConfig {
767
767
  [k: string]: unknown;
768
768
  };
769
769
  };
770
+ verticalScaler?: {
771
+ enabled?: boolean;
772
+ maxTotalWorkers?: number;
773
+ minWorkers?: number;
774
+ maxWorkers?: number;
775
+ scaleUpELU?: number;
776
+ scaleDownELU?: number;
777
+ minELUDiff?: number;
778
+ timeWindowSec?: number;
779
+ cooldownSec?: number;
780
+ scaleIntervalSec?: number;
781
+ };
770
782
  inspectorOptions?: {
771
783
  host?: string;
772
784
  port?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/db",
3
- "version": "3.7.1",
3
+ "version": "3.9.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -66,17 +66,17 @@
66
66
  "rfdc": "^1.3.1",
67
67
  "rimraf": "^4.4.1",
68
68
  "semgrator": "^0.3.0",
69
- "@platformatic/basic": "3.7.1",
70
- "@platformatic/db-core": "3.7.1",
71
- "@platformatic/db-authorization": "3.7.1",
72
- "@platformatic/foundation": "3.7.1",
73
- "@platformatic/service": "3.7.1",
74
- "@platformatic/sql-graphql": "3.7.1",
75
- "@platformatic/sql-events": "3.7.1",
76
- "@platformatic/sql-mapper": "3.7.1",
77
- "@platformatic/sql-json-schema-mapper": "3.7.1",
78
- "@platformatic/sql-openapi": "3.7.1",
79
- "@platformatic/telemetry": "3.7.1"
69
+ "@platformatic/basic": "3.9.0",
70
+ "@platformatic/db-authorization": "3.9.0",
71
+ "@platformatic/db-core": "3.9.0",
72
+ "@platformatic/foundation": "3.9.0",
73
+ "@platformatic/sql-events": "3.9.0",
74
+ "@platformatic/sql-graphql": "3.9.0",
75
+ "@platformatic/sql-json-schema-mapper": "3.9.0",
76
+ "@platformatic/service": "3.9.0",
77
+ "@platformatic/sql-mapper": "3.9.0",
78
+ "@platformatic/sql-openapi": "3.9.0",
79
+ "@platformatic/telemetry": "3.9.0"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/db/3.7.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/db/3.9.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Database Config",
5
5
  "type": "object",
@@ -1570,8 +1570,7 @@
1570
1570
  {
1571
1571
  "type": "string"
1572
1572
  }
1573
- ],
1574
- "default": 1
1573
+ ]
1575
1574
  },
1576
1575
  "workersRestartDelay": {
1577
1576
  "anyOf": [
@@ -2471,6 +2470,55 @@
2471
2470
  ],
2472
2471
  "additionalProperties": false
2473
2472
  },
2473
+ "verticalScaler": {
2474
+ "type": "object",
2475
+ "properties": {
2476
+ "enabled": {
2477
+ "type": "boolean",
2478
+ "default": true
2479
+ },
2480
+ "maxTotalWorkers": {
2481
+ "type": "number",
2482
+ "minimum": 1
2483
+ },
2484
+ "minWorkers": {
2485
+ "type": "number",
2486
+ "minimum": 1
2487
+ },
2488
+ "maxWorkers": {
2489
+ "type": "number",
2490
+ "minimum": 1
2491
+ },
2492
+ "scaleUpELU": {
2493
+ "type": "number",
2494
+ "minimum": 0,
2495
+ "maximum": 1
2496
+ },
2497
+ "scaleDownELU": {
2498
+ "type": "number",
2499
+ "minimum": 0,
2500
+ "maximum": 1
2501
+ },
2502
+ "minELUDiff": {
2503
+ "type": "number",
2504
+ "minimum": 0,
2505
+ "maximum": 1
2506
+ },
2507
+ "timeWindowSec": {
2508
+ "type": "number",
2509
+ "minimum": 0
2510
+ },
2511
+ "cooldownSec": {
2512
+ "type": "number",
2513
+ "minimum": 0
2514
+ },
2515
+ "scaleIntervalSec": {
2516
+ "type": "number",
2517
+ "minimum": 0
2518
+ }
2519
+ },
2520
+ "additionalProperties": false
2521
+ },
2474
2522
  "inspectorOptions": {
2475
2523
  "type": "object",
2476
2524
  "properties": {