@platformatic/foundation 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 (2) hide show
  1. package/lib/schema.js +19 -1
  2. package/package.json +1 -1
package/lib/schema.js CHANGED
@@ -49,6 +49,23 @@ export const workers = {
49
49
  ]
50
50
  }
51
51
 
52
+ const verticalScaler = {
53
+ type: 'object',
54
+ properties: {
55
+ enabled: { type: 'boolean', default: true },
56
+ maxTotalWorkers: { type: 'number', minimum: 1 },
57
+ minWorkers: { type: 'number', minimum: 1 },
58
+ maxWorkers: { type: 'number', minimum: 1 },
59
+ scaleUpELU: { type: 'number', minimum: 0, maximum: 1 },
60
+ scaleDownELU: { type: 'number', minimum: 0, maximum: 1 },
61
+ minELUDiff: { type: 'number', minimum: 0, maximum: 1 },
62
+ timeWindowSec: { type: 'number', minimum: 0 },
63
+ cooldownSec: { type: 'number', minimum: 0 },
64
+ scaleIntervalSec: { type: 'number', minimum: 0 }
65
+ },
66
+ additionalProperties: false
67
+ }
68
+
52
69
  export const preload = {
53
70
  anyOf: [
54
71
  { type: 'string', resolvePath: true },
@@ -833,7 +850,7 @@ export const runtimeProperties = {
833
850
  applications,
834
851
  services: applications,
835
852
  web: applications,
836
- workers: { ...workers, default: 1 },
853
+ workers: { ...workers },
837
854
  workersRestartDelay: {
838
855
  anyOf: [
839
856
  {
@@ -1110,6 +1127,7 @@ export const runtimeProperties = {
1110
1127
  ]
1111
1128
  },
1112
1129
  telemetry,
1130
+ verticalScaler,
1113
1131
  inspectorOptions: {
1114
1132
  type: 'object',
1115
1133
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/foundation",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "Platformatic Foundation",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",