@platformatic/service 3.7.1 → 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 +52 -4
package/config.d.ts CHANGED
@@ -597,6 +597,18 @@ export interface PlatformaticServiceConfig {
597
597
  [k: string]: unknown;
598
598
  };
599
599
  };
600
+ verticalScaler?: {
601
+ enabled?: boolean;
602
+ maxTotalWorkers?: number;
603
+ minWorkers?: number;
604
+ maxWorkers?: number;
605
+ scaleUpELU?: number;
606
+ scaleDownELU?: number;
607
+ minELUDiff?: number;
608
+ timeWindowSec?: number;
609
+ cooldownSec?: number;
610
+ scaleIntervalSec?: number;
611
+ };
600
612
  inspectorOptions?: {
601
613
  host?: string;
602
614
  port?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "3.7.1",
3
+ "version": "3.8.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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.7.1",
71
- "@platformatic/foundation": "3.7.1",
72
- "@platformatic/generators": "3.7.1",
73
- "@platformatic/metrics": "3.7.1",
74
- "@platformatic/telemetry": "3.7.1",
75
- "@platformatic/scalar-theme": "3.7.1"
70
+ "@platformatic/basic": "3.8.0",
71
+ "@platformatic/foundation": "3.8.0",
72
+ "@platformatic/generators": "3.8.0",
73
+ "@platformatic/scalar-theme": "3.8.0",
74
+ "@platformatic/telemetry": "3.8.0",
75
+ "@platformatic/metrics": "3.8.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.7.1.json",
3
- "version": "3.7.1",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/3.8.0.json",
3
+ "version": "3.8.0",
4
4
  "title": "Platformatic Service Config",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1259,8 +1259,7 @@
1259
1259
  {
1260
1260
  "type": "string"
1261
1261
  }
1262
- ],
1263
- "default": 1
1262
+ ]
1264
1263
  },
1265
1264
  "workersRestartDelay": {
1266
1265
  "anyOf": [
@@ -2160,6 +2159,55 @@
2160
2159
  ],
2161
2160
  "additionalProperties": false
2162
2161
  },
2162
+ "verticalScaler": {
2163
+ "type": "object",
2164
+ "properties": {
2165
+ "enabled": {
2166
+ "type": "boolean",
2167
+ "default": true
2168
+ },
2169
+ "maxTotalWorkers": {
2170
+ "type": "number",
2171
+ "minimum": 1
2172
+ },
2173
+ "minWorkers": {
2174
+ "type": "number",
2175
+ "minimum": 1
2176
+ },
2177
+ "maxWorkers": {
2178
+ "type": "number",
2179
+ "minimum": 1
2180
+ },
2181
+ "scaleUpELU": {
2182
+ "type": "number",
2183
+ "minimum": 0,
2184
+ "maximum": 1
2185
+ },
2186
+ "scaleDownELU": {
2187
+ "type": "number",
2188
+ "minimum": 0,
2189
+ "maximum": 1
2190
+ },
2191
+ "minELUDiff": {
2192
+ "type": "number",
2193
+ "minimum": 0,
2194
+ "maximum": 1
2195
+ },
2196
+ "timeWindowSec": {
2197
+ "type": "number",
2198
+ "minimum": 0
2199
+ },
2200
+ "cooldownSec": {
2201
+ "type": "number",
2202
+ "minimum": 0
2203
+ },
2204
+ "scaleIntervalSec": {
2205
+ "type": "number",
2206
+ "minimum": 0
2207
+ }
2208
+ },
2209
+ "additionalProperties": false
2210
+ },
2163
2211
  "inspectorOptions": {
2164
2212
  "type": "object",
2165
2213
  "properties": {