@platformatic/composer 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 +17 -0
  2. package/package.json +3 -3
  3. package/schema.json +51 -3
package/config.d.ts CHANGED
@@ -179,6 +179,7 @@ export interface PlatformaticComposerConfig {
179
179
  [k: string]: unknown;
180
180
  }[];
181
181
  workers?: number | string;
182
+ workersRestartDelay?: number | string;
182
183
  logger?: {
183
184
  level: (
184
185
  | ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
@@ -461,6 +462,18 @@ export interface PlatformaticComposerConfig {
461
462
  [k: string]: unknown;
462
463
  };
463
464
  };
465
+ verticalScaler?: {
466
+ enabled?: boolean;
467
+ maxTotalWorkers?: number;
468
+ minWorkers?: number;
469
+ maxWorkers?: number;
470
+ scaleUpELU?: number;
471
+ scaleDownELU?: number;
472
+ minELUDiff?: number;
473
+ timeWindowSec?: number;
474
+ cooldownSec?: number;
475
+ scaleIntervalSec?: number;
476
+ };
464
477
  inspectorOptions?: {
465
478
  host?: string;
466
479
  port?: number;
@@ -786,6 +799,10 @@ export interface PlatformaticComposerConfig {
786
799
  };
787
800
  addEmptySchema?: boolean;
788
801
  refreshTimeout?: number;
802
+ /**
803
+ * Content types that should be passed through without parsing to enable proxying
804
+ */
805
+ passthroughContentTypes?: string[];
789
806
  };
790
807
  }
791
808
  export interface Info {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/composer",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -23,8 +23,8 @@
23
23
  "json-schema-to-typescript": "^15.0.0"
24
24
  },
25
25
  "dependencies": {
26
- "@platformatic/foundation": "3.7.0",
27
- "@platformatic/gateway": "3.7.0"
26
+ "@platformatic/foundation": "3.8.0",
27
+ "@platformatic/gateway": "3.8.0"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/composer/3.7.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/composer/3.8.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Composer Config",
5
5
  "type": "object",
@@ -933,8 +933,7 @@
933
933
  {
934
934
  "type": "string"
935
935
  }
936
- ],
937
- "default": 1
936
+ ]
938
937
  },
939
938
  "workersRestartDelay": {
940
939
  "anyOf": [
@@ -1834,6 +1833,55 @@
1834
1833
  ],
1835
1834
  "additionalProperties": false
1836
1835
  },
1836
+ "verticalScaler": {
1837
+ "type": "object",
1838
+ "properties": {
1839
+ "enabled": {
1840
+ "type": "boolean",
1841
+ "default": true
1842
+ },
1843
+ "maxTotalWorkers": {
1844
+ "type": "number",
1845
+ "minimum": 1
1846
+ },
1847
+ "minWorkers": {
1848
+ "type": "number",
1849
+ "minimum": 1
1850
+ },
1851
+ "maxWorkers": {
1852
+ "type": "number",
1853
+ "minimum": 1
1854
+ },
1855
+ "scaleUpELU": {
1856
+ "type": "number",
1857
+ "minimum": 0,
1858
+ "maximum": 1
1859
+ },
1860
+ "scaleDownELU": {
1861
+ "type": "number",
1862
+ "minimum": 0,
1863
+ "maximum": 1
1864
+ },
1865
+ "minELUDiff": {
1866
+ "type": "number",
1867
+ "minimum": 0,
1868
+ "maximum": 1
1869
+ },
1870
+ "timeWindowSec": {
1871
+ "type": "number",
1872
+ "minimum": 0
1873
+ },
1874
+ "cooldownSec": {
1875
+ "type": "number",
1876
+ "minimum": 0
1877
+ },
1878
+ "scaleIntervalSec": {
1879
+ "type": "number",
1880
+ "minimum": 0
1881
+ }
1882
+ },
1883
+ "additionalProperties": false
1884
+ },
1837
1885
  "inspectorOptions": {
1838
1886
  "type": "object",
1839
1887
  "properties": {