@platformatic/foundation 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.
Files changed (2) hide show
  1. package/lib/schema.js +33 -31
  2. package/package.json +1 -1
package/lib/schema.js CHANGED
@@ -54,14 +54,16 @@ const verticalScaler = {
54
54
  properties: {
55
55
  enabled: { type: 'boolean', default: true },
56
56
  maxTotalWorkers: { type: 'number', minimum: 1 },
57
+ maxTotalMemory: { type: 'number', minimum: 0 },
57
58
  minWorkers: { type: 'number', minimum: 1 },
58
59
  maxWorkers: { type: 'number', minimum: 1 },
59
60
  scaleUpELU: { type: 'number', minimum: 0, maximum: 1 },
60
61
  scaleDownELU: { type: 'number', minimum: 0, maximum: 1 },
61
- minELUDiff: { type: 'number', minimum: 0, maximum: 1 },
62
62
  timeWindowSec: { type: 'number', minimum: 0 },
63
+ scaleDownTimeWindowSec: { type: 'number', minimum: 0 },
63
64
  cooldownSec: { type: 'number', minimum: 0 },
64
- scaleIntervalSec: { type: 'number', minimum: 0 }
65
+ scaleIntervalSec: { type: 'number', minimum: 0 },
66
+ gracePeriod: { type: 'number', minimum: 0 }
65
67
  },
66
68
  additionalProperties: false
67
69
  }
@@ -735,6 +737,30 @@ export const applications = {
735
737
  nodeOptions: {
736
738
  type: 'string'
737
739
  },
740
+ permissions: {
741
+ type: 'object',
742
+ properties: {
743
+ fs: {
744
+ type: 'object',
745
+ properties: {
746
+ read: {
747
+ type: 'array',
748
+ items: {
749
+ type: 'string'
750
+ }
751
+ },
752
+ write: {
753
+ type: 'array',
754
+ items: {
755
+ type: 'string'
756
+ }
757
+ }
758
+ },
759
+ additionalProperties: false
760
+ }
761
+ },
762
+ additionalProperties: false
763
+ },
738
764
  telemetry: {
739
765
  type: 'object',
740
766
  properties: {
@@ -814,35 +840,7 @@ export const runtimeProperties = {
814
840
  type: 'object',
815
841
  additionalProperties: false,
816
842
  required: ['id'],
817
- properties: {
818
- id: {
819
- type: 'string'
820
- },
821
- config: {
822
- type: 'string'
823
- },
824
- useHttp: {
825
- type: 'boolean'
826
- },
827
- workers,
828
- health: { ...healthWithoutDefaults },
829
- preload,
830
- dependencies: {
831
- type: 'array',
832
- items: {
833
- type: 'string'
834
- }
835
- },
836
- arguments: {
837
- type: 'array',
838
- items: {
839
- type: 'string'
840
- }
841
- },
842
- nodeOptions: {
843
- type: 'string'
844
- }
845
- }
843
+ properties: omitProperties(applications.items.properties, ['path', 'url', 'gitBranch'])
846
844
  }
847
845
  }
848
846
  }
@@ -1120,6 +1118,10 @@ export const runtimeProperties = {
1120
1118
  }
1121
1119
  ]
1122
1120
  }
1121
+ },
1122
+ timeout: {
1123
+ anyOf: [{ type: 'integer' }, { type: 'string' }],
1124
+ default: 10000
1123
1125
  }
1124
1126
  },
1125
1127
  additionalProperties: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/foundation",
3
- "version": "3.9.0",
3
+ "version": "3.11.0",
4
4
  "description": "Platformatic Foundation",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",