@platformatic/runtime 3.72.0 → 4.0.0-alpha.1

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.
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.72.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/runtime/4.0.0-alpha.1.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Runtime Config",
5
5
  "type": "object",
@@ -47,7 +47,8 @@
47
47
  "type": "boolean",
48
48
  "default": false
49
49
  }
50
- }
50
+ },
51
+ "title": "ExtensionEntry"
51
52
  },
52
53
  {
53
54
  "type": "array",
@@ -76,16 +77,14 @@
76
77
  "type": "boolean",
77
78
  "default": false
78
79
  }
79
- }
80
+ },
81
+ "title": "ExtensionEntry"
80
82
  }
81
83
  ]
82
84
  }
83
85
  }
84
86
  ]
85
87
  },
86
- "entrypoint": {
87
- "type": "string"
88
- },
89
88
  "basePath": {
90
89
  "type": "string"
91
90
  },
@@ -137,13 +136,14 @@
137
136
  "default": true
138
137
  },
139
138
  "config": {
140
- "type": "string"
141
- },
142
- "useHttp": {
143
- "type": "boolean"
144
- },
145
- "websocket": {
146
- "type": "boolean"
139
+ "anyOf": [
140
+ {
141
+ "type": "string"
142
+ },
143
+ {
144
+ "type": "object"
145
+ }
146
+ ]
147
147
  },
148
148
  "reuseTcpPorts": {
149
149
  "type": "boolean",
@@ -152,7 +152,8 @@
152
152
  "workers": {
153
153
  "anyOf": [
154
154
  {
155
- "type": "number"
155
+ "type": "integer",
156
+ "minimum": 1
156
157
  },
157
158
  {
158
159
  "type": "string"
@@ -161,28 +162,31 @@
161
162
  "type": "object",
162
163
  "properties": {
163
164
  "static": {
164
- "type": "number",
165
+ "type": "integer",
165
166
  "minimum": 1
166
167
  },
168
+ "dynamic": {
169
+ "type": "boolean"
170
+ },
167
171
  "minimum": {
168
- "type": "number",
172
+ "type": "integer",
169
173
  "minimum": 1
170
174
  },
171
175
  "maximum": {
172
- "type": "number",
176
+ "type": "integer",
173
177
  "minimum": 0
174
178
  },
175
- "scaleUpELU": {
179
+ "eluThreshold": {
176
180
  "type": "number",
177
- "minimum": 0,
181
+ "exclusiveMinimum": 0,
178
182
  "maximum": 1
179
183
  },
180
- "scaleDownELU": {
184
+ "heapThresholdMb": {
181
185
  "type": "number",
182
- "minimum": 0,
183
- "maximum": 1
186
+ "exclusiveMinimum": 0
184
187
  }
185
- }
188
+ },
189
+ "additionalProperties": false
186
190
  }
187
191
  ]
188
192
  },
@@ -436,12 +440,12 @@
436
440
  },
437
441
  "additionalProperties": false
438
442
  },
439
- "telemetry": {
443
+ "tracing": {
440
444
  "type": "object",
441
445
  "properties": {
442
446
  "instrumentations": {
443
447
  "type": "array",
444
- "description": "An array of instrumentations loaded if telemetry is enabled",
448
+ "description": "An array of instrumentations loaded if tracing is enabled",
445
449
  "items": {
446
450
  "oneOf": [
447
451
  {
@@ -486,6 +490,10 @@
486
490
  "directory": {
487
491
  "type": "string",
488
492
  "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
493
+ },
494
+ "awaitFirstWorker": {
495
+ "type": "boolean",
496
+ "description": "Wait for the first worker to start before starting the remaining workers"
489
497
  }
490
498
  },
491
499
  "additionalProperties": false
@@ -515,7 +523,8 @@
515
523
  }
516
524
  ]
517
525
  }
518
- }
526
+ },
527
+ "title": "ApplicationEntryOverrides"
519
528
  }
520
529
  }
521
530
  }
@@ -565,21 +574,25 @@
565
574
  "resolvePath": true
566
575
  },
567
576
  "config": {
568
- "type": "string"
577
+ "anyOf": [
578
+ {
579
+ "type": "string"
580
+ },
581
+ {
582
+ "type": "object"
583
+ }
584
+ ]
569
585
  },
570
586
  "url": {
571
587
  "type": "string"
572
588
  },
589
+ "module": {
590
+ "type": "string"
591
+ },
573
592
  "gitBranch": {
574
593
  "type": "string",
575
594
  "default": "main"
576
595
  },
577
- "useHttp": {
578
- "type": "boolean"
579
- },
580
- "websocket": {
581
- "type": "boolean"
582
- },
583
596
  "reuseTcpPorts": {
584
597
  "type": "boolean",
585
598
  "default": true
@@ -587,7 +600,8 @@
587
600
  "workers": {
588
601
  "anyOf": [
589
602
  {
590
- "type": "number"
603
+ "type": "integer",
604
+ "minimum": 1
591
605
  },
592
606
  {
593
607
  "type": "string"
@@ -596,28 +610,32 @@
596
610
  "type": "object",
597
611
  "properties": {
598
612
  "static": {
599
- "type": "number",
613
+ "type": "integer",
600
614
  "minimum": 1
601
615
  },
616
+ "dynamic": {
617
+ "type": "boolean"
618
+ },
602
619
  "minimum": {
603
- "type": "number",
620
+ "type": "integer",
604
621
  "minimum": 1
605
622
  },
606
623
  "maximum": {
607
- "type": "number",
624
+ "type": "integer",
608
625
  "minimum": 0
609
626
  },
610
- "scaleUpELU": {
627
+ "eluThreshold": {
611
628
  "type": "number",
612
- "minimum": 0,
629
+ "exclusiveMinimum": 0,
613
630
  "maximum": 1
614
631
  },
615
- "scaleDownELU": {
632
+ "heapThresholdMb": {
616
633
  "type": "number",
617
- "minimum": 0,
618
- "maximum": 1
634
+ "exclusiveMinimum": 0
619
635
  }
620
- }
636
+ },
637
+ "additionalProperties": false,
638
+ "title": "ApplicationWorkersOptions"
621
639
  }
622
640
  ]
623
641
  },
@@ -770,7 +788,8 @@
770
788
  ]
771
789
  }
772
790
  },
773
- "additionalProperties": false
791
+ "additionalProperties": false,
792
+ "title": "ApplicationHealthOptions"
774
793
  },
775
794
  "restartOnError": {
776
795
  "description": "Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.",
@@ -869,14 +888,15 @@
869
888
  "additionalProperties": false
870
889
  }
871
890
  },
872
- "additionalProperties": false
891
+ "additionalProperties": false,
892
+ "title": "PermissionsOptions"
873
893
  },
874
- "telemetry": {
894
+ "tracing": {
875
895
  "type": "object",
876
896
  "properties": {
877
897
  "instrumentations": {
878
898
  "type": "array",
879
- "description": "An array of instrumentations loaded if telemetry is enabled",
899
+ "description": "An array of instrumentations loaded if tracing is enabled",
880
900
  "items": {
881
901
  "oneOf": [
882
902
  {
@@ -903,7 +923,8 @@
903
923
  ]
904
924
  }
905
925
  }
906
- }
926
+ },
927
+ "title": "ApplicationTelemetryOverrides"
907
928
  },
908
929
  "compileCache": {
909
930
  "anyOf": [
@@ -921,9 +942,14 @@
921
942
  "directory": {
922
943
  "type": "string",
923
944
  "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
945
+ },
946
+ "awaitFirstWorker": {
947
+ "type": "boolean",
948
+ "description": "Wait for the first worker to start before starting the remaining workers"
924
949
  }
925
950
  },
926
- "additionalProperties": false
951
+ "additionalProperties": false,
952
+ "title": "CompileCacheOptions"
927
953
  }
928
954
  ]
929
955
  },
@@ -950,7 +976,8 @@
950
976
  }
951
977
  ]
952
978
  }
953
- }
979
+ },
980
+ "title": "ApplicationEntry"
954
981
  }
955
982
  },
956
983
  "services": {
@@ -998,21 +1025,25 @@
998
1025
  "resolvePath": true
999
1026
  },
1000
1027
  "config": {
1001
- "type": "string"
1028
+ "anyOf": [
1029
+ {
1030
+ "type": "string"
1031
+ },
1032
+ {
1033
+ "type": "object"
1034
+ }
1035
+ ]
1002
1036
  },
1003
1037
  "url": {
1004
1038
  "type": "string"
1005
1039
  },
1040
+ "module": {
1041
+ "type": "string"
1042
+ },
1006
1043
  "gitBranch": {
1007
1044
  "type": "string",
1008
1045
  "default": "main"
1009
1046
  },
1010
- "useHttp": {
1011
- "type": "boolean"
1012
- },
1013
- "websocket": {
1014
- "type": "boolean"
1015
- },
1016
1047
  "reuseTcpPorts": {
1017
1048
  "type": "boolean",
1018
1049
  "default": true
@@ -1020,7 +1051,8 @@
1020
1051
  "workers": {
1021
1052
  "anyOf": [
1022
1053
  {
1023
- "type": "number"
1054
+ "type": "integer",
1055
+ "minimum": 1
1024
1056
  },
1025
1057
  {
1026
1058
  "type": "string"
@@ -1029,28 +1061,32 @@
1029
1061
  "type": "object",
1030
1062
  "properties": {
1031
1063
  "static": {
1032
- "type": "number",
1064
+ "type": "integer",
1033
1065
  "minimum": 1
1034
1066
  },
1067
+ "dynamic": {
1068
+ "type": "boolean"
1069
+ },
1035
1070
  "minimum": {
1036
- "type": "number",
1071
+ "type": "integer",
1037
1072
  "minimum": 1
1038
1073
  },
1039
1074
  "maximum": {
1040
- "type": "number",
1075
+ "type": "integer",
1041
1076
  "minimum": 0
1042
1077
  },
1043
- "scaleUpELU": {
1078
+ "eluThreshold": {
1044
1079
  "type": "number",
1045
- "minimum": 0,
1080
+ "exclusiveMinimum": 0,
1046
1081
  "maximum": 1
1047
1082
  },
1048
- "scaleDownELU": {
1083
+ "heapThresholdMb": {
1049
1084
  "type": "number",
1050
- "minimum": 0,
1051
- "maximum": 1
1085
+ "exclusiveMinimum": 0
1052
1086
  }
1053
- }
1087
+ },
1088
+ "additionalProperties": false,
1089
+ "title": "ApplicationWorkersOptions"
1054
1090
  }
1055
1091
  ]
1056
1092
  },
@@ -1203,7 +1239,8 @@
1203
1239
  ]
1204
1240
  }
1205
1241
  },
1206
- "additionalProperties": false
1242
+ "additionalProperties": false,
1243
+ "title": "ApplicationHealthOptions"
1207
1244
  },
1208
1245
  "restartOnError": {
1209
1246
  "description": "Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.",
@@ -1302,14 +1339,15 @@
1302
1339
  "additionalProperties": false
1303
1340
  }
1304
1341
  },
1305
- "additionalProperties": false
1342
+ "additionalProperties": false,
1343
+ "title": "PermissionsOptions"
1306
1344
  },
1307
- "telemetry": {
1345
+ "tracing": {
1308
1346
  "type": "object",
1309
1347
  "properties": {
1310
1348
  "instrumentations": {
1311
1349
  "type": "array",
1312
- "description": "An array of instrumentations loaded if telemetry is enabled",
1350
+ "description": "An array of instrumentations loaded if tracing is enabled",
1313
1351
  "items": {
1314
1352
  "oneOf": [
1315
1353
  {
@@ -1336,7 +1374,8 @@
1336
1374
  ]
1337
1375
  }
1338
1376
  }
1339
- }
1377
+ },
1378
+ "title": "ApplicationTelemetryOverrides"
1340
1379
  },
1341
1380
  "compileCache": {
1342
1381
  "anyOf": [
@@ -1354,9 +1393,14 @@
1354
1393
  "directory": {
1355
1394
  "type": "string",
1356
1395
  "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
1396
+ },
1397
+ "awaitFirstWorker": {
1398
+ "type": "boolean",
1399
+ "description": "Wait for the first worker to start before starting the remaining workers"
1357
1400
  }
1358
1401
  },
1359
- "additionalProperties": false
1402
+ "additionalProperties": false,
1403
+ "title": "CompileCacheOptions"
1360
1404
  }
1361
1405
  ]
1362
1406
  },
@@ -1383,7 +1427,8 @@
1383
1427
  }
1384
1428
  ]
1385
1429
  }
1386
- }
1430
+ },
1431
+ "title": "ApplicationEntry"
1387
1432
  }
1388
1433
  },
1389
1434
  "web": {
@@ -1431,21 +1476,25 @@
1431
1476
  "resolvePath": true
1432
1477
  },
1433
1478
  "config": {
1434
- "type": "string"
1479
+ "anyOf": [
1480
+ {
1481
+ "type": "string"
1482
+ },
1483
+ {
1484
+ "type": "object"
1485
+ }
1486
+ ]
1435
1487
  },
1436
1488
  "url": {
1437
1489
  "type": "string"
1438
1490
  },
1491
+ "module": {
1492
+ "type": "string"
1493
+ },
1439
1494
  "gitBranch": {
1440
1495
  "type": "string",
1441
1496
  "default": "main"
1442
1497
  },
1443
- "useHttp": {
1444
- "type": "boolean"
1445
- },
1446
- "websocket": {
1447
- "type": "boolean"
1448
- },
1449
1498
  "reuseTcpPorts": {
1450
1499
  "type": "boolean",
1451
1500
  "default": true
@@ -1453,7 +1502,8 @@
1453
1502
  "workers": {
1454
1503
  "anyOf": [
1455
1504
  {
1456
- "type": "number"
1505
+ "type": "integer",
1506
+ "minimum": 1
1457
1507
  },
1458
1508
  {
1459
1509
  "type": "string"
@@ -1462,28 +1512,32 @@
1462
1512
  "type": "object",
1463
1513
  "properties": {
1464
1514
  "static": {
1465
- "type": "number",
1515
+ "type": "integer",
1466
1516
  "minimum": 1
1467
1517
  },
1518
+ "dynamic": {
1519
+ "type": "boolean"
1520
+ },
1468
1521
  "minimum": {
1469
- "type": "number",
1522
+ "type": "integer",
1470
1523
  "minimum": 1
1471
1524
  },
1472
1525
  "maximum": {
1473
- "type": "number",
1526
+ "type": "integer",
1474
1527
  "minimum": 0
1475
1528
  },
1476
- "scaleUpELU": {
1529
+ "eluThreshold": {
1477
1530
  "type": "number",
1478
- "minimum": 0,
1531
+ "exclusiveMinimum": 0,
1479
1532
  "maximum": 1
1480
1533
  },
1481
- "scaleDownELU": {
1534
+ "heapThresholdMb": {
1482
1535
  "type": "number",
1483
- "minimum": 0,
1484
- "maximum": 1
1536
+ "exclusiveMinimum": 0
1485
1537
  }
1486
- }
1538
+ },
1539
+ "additionalProperties": false,
1540
+ "title": "ApplicationWorkersOptions"
1487
1541
  }
1488
1542
  ]
1489
1543
  },
@@ -1636,7 +1690,8 @@
1636
1690
  ]
1637
1691
  }
1638
1692
  },
1639
- "additionalProperties": false
1693
+ "additionalProperties": false,
1694
+ "title": "ApplicationHealthOptions"
1640
1695
  },
1641
1696
  "restartOnError": {
1642
1697
  "description": "Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.",
@@ -1735,14 +1790,15 @@
1735
1790
  "additionalProperties": false
1736
1791
  }
1737
1792
  },
1738
- "additionalProperties": false
1793
+ "additionalProperties": false,
1794
+ "title": "PermissionsOptions"
1739
1795
  },
1740
- "telemetry": {
1796
+ "tracing": {
1741
1797
  "type": "object",
1742
1798
  "properties": {
1743
1799
  "instrumentations": {
1744
1800
  "type": "array",
1745
- "description": "An array of instrumentations loaded if telemetry is enabled",
1801
+ "description": "An array of instrumentations loaded if tracing is enabled",
1746
1802
  "items": {
1747
1803
  "oneOf": [
1748
1804
  {
@@ -1769,7 +1825,8 @@
1769
1825
  ]
1770
1826
  }
1771
1827
  }
1772
- }
1828
+ },
1829
+ "title": "ApplicationTelemetryOverrides"
1773
1830
  },
1774
1831
  "compileCache": {
1775
1832
  "anyOf": [
@@ -1787,9 +1844,14 @@
1787
1844
  "directory": {
1788
1845
  "type": "string",
1789
1846
  "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
1847
+ },
1848
+ "awaitFirstWorker": {
1849
+ "type": "boolean",
1850
+ "description": "Wait for the first worker to start before starting the remaining workers"
1790
1851
  }
1791
1852
  },
1792
- "additionalProperties": false
1853
+ "additionalProperties": false,
1854
+ "title": "CompileCacheOptions"
1793
1855
  }
1794
1856
  ]
1795
1857
  },
@@ -1816,13 +1878,14 @@
1816
1878
  }
1817
1879
  ]
1818
1880
  }
1819
- }
1881
+ },
1882
+ "title": "ApplicationEntry"
1820
1883
  }
1821
1884
  },
1822
1885
  "workers": {
1823
1886
  "anyOf": [
1824
1887
  {
1825
- "type": "number",
1888
+ "type": "integer",
1826
1889
  "minimum": 1
1827
1890
  },
1828
1891
  {
@@ -1832,48 +1895,94 @@
1832
1895
  "type": "object",
1833
1896
  "properties": {
1834
1897
  "static": {
1835
- "type": "number",
1898
+ "type": "integer",
1836
1899
  "minimum": 1
1837
1900
  },
1838
1901
  "dynamic": {
1839
- "type": "boolean",
1840
- "default": false
1902
+ "type": "boolean"
1841
1903
  },
1842
1904
  "minimum": {
1843
- "type": "number",
1905
+ "type": "integer",
1844
1906
  "minimum": 1
1845
1907
  },
1846
1908
  "maximum": {
1847
- "type": "number",
1909
+ "type": "integer",
1848
1910
  "minimum": 0
1849
1911
  },
1850
1912
  "total": {
1851
- "type": "number",
1913
+ "type": "integer",
1852
1914
  "minimum": 1
1853
1915
  },
1854
1916
  "maxMemory": {
1855
1917
  "type": "number",
1856
1918
  "minimum": 0
1857
1919
  },
1858
- "cooldown": {
1920
+ "eluThreshold": {
1921
+ "type": "number",
1922
+ "exclusiveMinimum": 0,
1923
+ "maximum": 1
1924
+ },
1925
+ "heapThresholdMb": {
1926
+ "type": "number",
1927
+ "exclusiveMinimum": 0
1928
+ },
1929
+ "processIntervalMs": {
1859
1930
  "type": "number",
1860
1931
  "minimum": 0
1861
1932
  },
1862
- "gracePeriod": {
1933
+ "maxScaleUpStep": {
1934
+ "type": "integer",
1935
+ "minimum": 1
1936
+ },
1937
+ "redistributionMs": {
1863
1938
  "type": "number",
1864
1939
  "minimum": 0
1865
1940
  },
1866
- "scaleUpELU": {
1941
+ "alphaUp": {
1942
+ "type": "number",
1943
+ "minimum": 0,
1944
+ "maximum": 1
1945
+ },
1946
+ "alphaDown": {
1947
+ "type": "number",
1948
+ "minimum": 0,
1949
+ "maximum": 1
1950
+ },
1951
+ "betaUp": {
1867
1952
  "type": "number",
1868
1953
  "minimum": 0,
1869
1954
  "maximum": 1
1870
1955
  },
1871
- "scaleDownELU": {
1956
+ "betaDown": {
1872
1957
  "type": "number",
1873
1958
  "minimum": 0,
1874
1959
  "maximum": 1
1960
+ },
1961
+ "cooldowns": {
1962
+ "type": "object",
1963
+ "properties": {
1964
+ "scaleUpAfterScaleUpMs": {
1965
+ "type": "number",
1966
+ "minimum": 0
1967
+ },
1968
+ "scaleUpAfterScaleDownMs": {
1969
+ "type": "number",
1970
+ "minimum": 0
1971
+ },
1972
+ "scaleDownAfterScaleUpMs": {
1973
+ "type": "number",
1974
+ "minimum": 0
1975
+ },
1976
+ "scaleDownAfterScaleDownMs": {
1977
+ "type": "number",
1978
+ "minimum": 0
1979
+ }
1980
+ },
1981
+ "additionalProperties": false
1875
1982
  }
1876
- }
1983
+ },
1984
+ "additionalProperties": false,
1985
+ "title": "WorkersOptions"
1877
1986
  }
1878
1987
  ]
1879
1988
  },
@@ -1894,7 +2003,8 @@
1894
2003
  "properties": {
1895
2004
  "level": {
1896
2005
  "type": "string",
1897
- "description": "The log level. It must be one of the standard pino levels (fatal, error, warn, info, debug, trace, silent) or, when customLevels is set, one of the custom levels."
2006
+ "minLength": 1,
2007
+ "description": "A standard Pino log level or a level defined in customLevels."
1898
2008
  },
1899
2009
  "transport": {
1900
2010
  "anyOf": [
@@ -2112,164 +2222,9 @@
2112
2222
  "additionalProperties": false
2113
2223
  }
2114
2224
  },
2115
- "if": {
2116
- "not": {
2117
- "required": [
2118
- "customLevels"
2119
- ]
2120
- }
2121
- },
2122
- "then": {
2123
- "properties": {
2124
- "level": {
2125
- "oneOf": [
2126
- {
2127
- "enum": [
2128
- "fatal",
2129
- "error",
2130
- "warn",
2131
- "info",
2132
- "debug",
2133
- "trace",
2134
- "silent"
2135
- ]
2136
- },
2137
- {
2138
- "pattern": "^\\{.+\\}$"
2139
- }
2140
- ]
2141
- }
2142
- }
2143
- },
2144
2225
  "default": {},
2145
- "additionalProperties": true
2146
- },
2147
- "server": {
2148
- "type": "object",
2149
- "properties": {
2150
- "hostname": {
2151
- "type": "string"
2152
- },
2153
- "port": {
2154
- "anyOf": [
2155
- {
2156
- "type": "integer"
2157
- },
2158
- {
2159
- "type": "string"
2160
- }
2161
- ]
2162
- },
2163
- "portAssignment": {
2164
- "type": "string",
2165
- "enum": [
2166
- "shared",
2167
- "perWorkerIncrement"
2168
- ],
2169
- "description": "Configures how entrypoint server worker ports are assigned. When set to shared, all workers listen on the same port. When set to perWorkerIncrement, each worker will use its own port, starting from port (worker 0)."
2170
- },
2171
- "backlog": {
2172
- "type": "integer",
2173
- "description": "The maximum length of the queue of pending connections"
2174
- },
2175
- "http2": {
2176
- "type": "boolean"
2177
- },
2178
- "https": {
2179
- "type": "object",
2180
- "properties": {
2181
- "allowHTTP1": {
2182
- "type": "boolean"
2183
- },
2184
- "key": {
2185
- "anyOf": [
2186
- {
2187
- "type": "string"
2188
- },
2189
- {
2190
- "type": "object",
2191
- "properties": {
2192
- "path": {
2193
- "type": "string",
2194
- "resolvePath": true
2195
- }
2196
- },
2197
- "additionalProperties": false
2198
- },
2199
- {
2200
- "type": "array",
2201
- "items": {
2202
- "anyOf": [
2203
- {
2204
- "type": "string"
2205
- },
2206
- {
2207
- "type": "object",
2208
- "properties": {
2209
- "path": {
2210
- "type": "string",
2211
- "resolvePath": true
2212
- }
2213
- },
2214
- "additionalProperties": false
2215
- }
2216
- ]
2217
- }
2218
- }
2219
- ]
2220
- },
2221
- "cert": {
2222
- "anyOf": [
2223
- {
2224
- "type": "string"
2225
- },
2226
- {
2227
- "type": "object",
2228
- "properties": {
2229
- "path": {
2230
- "type": "string",
2231
- "resolvePath": true
2232
- }
2233
- },
2234
- "additionalProperties": false
2235
- },
2236
- {
2237
- "type": "array",
2238
- "items": {
2239
- "anyOf": [
2240
- {
2241
- "type": "string"
2242
- },
2243
- {
2244
- "type": "object",
2245
- "properties": {
2246
- "path": {
2247
- "type": "string",
2248
- "resolvePath": true
2249
- }
2250
- },
2251
- "additionalProperties": false
2252
- }
2253
- ]
2254
- }
2255
- }
2256
- ]
2257
- },
2258
- "requestCert": {
2259
- "type": "boolean"
2260
- },
2261
- "rejectUnauthorized": {
2262
- "type": "boolean"
2263
- }
2264
- },
2265
- "additionalProperties": false,
2266
- "required": [
2267
- "key",
2268
- "cert"
2269
- ]
2270
- }
2271
- },
2272
- "additionalProperties": false
2226
+ "additionalProperties": true,
2227
+ "title": "RuntimeLoggerOptions"
2273
2228
  },
2274
2229
  "reuseTcpPorts": {
2275
2230
  "type": "boolean",
@@ -2341,7 +2296,8 @@
2341
2296
  "runtime",
2342
2297
  "application"
2343
2298
  ],
2344
- "additionalProperties": false
2299
+ "additionalProperties": false,
2300
+ "title": "GracefulShutdownOptions"
2345
2301
  },
2346
2302
  "health": {
2347
2303
  "type": "object",
@@ -2503,7 +2459,8 @@
2503
2459
  "default": 262144
2504
2460
  }
2505
2461
  },
2506
- "additionalProperties": false
2462
+ "additionalProperties": false,
2463
+ "title": "HealthOptions"
2507
2464
  },
2508
2465
  "healthProbes": {
2509
2466
  "anyOf": [
@@ -2620,7 +2577,8 @@
2620
2577
  ]
2621
2578
  }
2622
2579
  },
2623
- "additionalProperties": false
2580
+ "additionalProperties": false,
2581
+ "title": "HealthProbesOptions"
2624
2582
  }
2625
2583
  ],
2626
2584
  "default": true
@@ -2717,7 +2675,8 @@
2717
2675
  }
2718
2676
  ]
2719
2677
  }
2720
- }
2678
+ },
2679
+ "title": "UndiciOptions"
2721
2680
  },
2722
2681
  "httpCache": {
2723
2682
  "oneOf": [
@@ -2773,7 +2732,8 @@
2773
2732
  "default": "shared",
2774
2733
  "description": "Cache type. \"shared\" caches may be shared between users, \"private\" caches are user-specific."
2775
2734
  }
2776
- }
2735
+ },
2736
+ "title": "HttpCacheOptions"
2777
2737
  }
2778
2738
  ]
2779
2739
  },
@@ -2814,7 +2774,8 @@
2814
2774
  "description": "Custom path for the control socket. If not specified, uses the default platform-specific location."
2815
2775
  }
2816
2776
  },
2817
- "additionalProperties": false
2777
+ "additionalProperties": false,
2778
+ "title": "ManagementApiOptions"
2818
2779
  }
2819
2780
  ],
2820
2781
  "default": true
@@ -2967,7 +2928,8 @@
2967
2928
  "required": [
2968
2929
  "key",
2969
2930
  "cert"
2970
- ]
2931
+ ],
2932
+ "title": "HttpsOptions"
2971
2933
  },
2972
2934
  "auth": {
2973
2935
  "type": "object",
@@ -3246,11 +3208,13 @@
3246
3208
  }
3247
3209
  }
3248
3210
  },
3249
- "additionalProperties": false
3211
+ "additionalProperties": false,
3212
+ "title": "MetricsOptions"
3250
3213
  }
3251
- ]
3214
+ ],
3215
+ "default": false
3252
3216
  },
3253
- "telemetry": {
3217
+ "tracing": {
3254
3218
  "type": "object",
3255
3219
  "properties": {
3256
3220
  "enabled": {
@@ -3421,93 +3385,8 @@
3421
3385
  "required": [
3422
3386
  "applicationName"
3423
3387
  ],
3424
- "additionalProperties": false
3425
- },
3426
- "verticalScaler": {
3427
- "type": "object",
3428
- "properties": {
3429
- "enabled": {
3430
- "type": "boolean",
3431
- "default": true
3432
- },
3433
- "maxTotalWorkers": {
3434
- "type": "number",
3435
- "minimum": 1
3436
- },
3437
- "maxTotalMemory": {
3438
- "type": "number",
3439
- "minimum": 0
3440
- },
3441
- "minWorkers": {
3442
- "type": "number",
3443
- "minimum": 1
3444
- },
3445
- "maxWorkers": {
3446
- "type": "number",
3447
- "minimum": 1
3448
- },
3449
- "cooldownSec": {
3450
- "type": "number",
3451
- "minimum": 0
3452
- },
3453
- "gracePeriod": {
3454
- "type": "number",
3455
- "minimum": 0
3456
- },
3457
- "scaleUpELU": {
3458
- "type": "number",
3459
- "minimum": 0,
3460
- "maximum": 1
3461
- },
3462
- "scaleDownELU": {
3463
- "type": "number",
3464
- "minimum": 0,
3465
- "maximum": 1
3466
- },
3467
- "timeWindowSec": {
3468
- "type": "number",
3469
- "minimum": 0,
3470
- "deprecated": true
3471
- },
3472
- "scaleDownTimeWindowSec": {
3473
- "type": "number",
3474
- "minimum": 0,
3475
- "deprecated": true
3476
- },
3477
- "scaleIntervalSec": {
3478
- "type": "number",
3479
- "minimum": 0,
3480
- "deprecated": true
3481
- },
3482
- "applications": {
3483
- "type": "object",
3484
- "additionalProperties": {
3485
- "type": "object",
3486
- "properties": {
3487
- "minWorkers": {
3488
- "type": "number",
3489
- "minimum": 1
3490
- },
3491
- "maxWorkers": {
3492
- "type": "number",
3493
- "minimum": 1
3494
- },
3495
- "scaleUpELU": {
3496
- "type": "number",
3497
- "minimum": 0,
3498
- "maximum": 1
3499
- },
3500
- "scaleDownELU": {
3501
- "type": "number",
3502
- "minimum": 0,
3503
- "maximum": 1
3504
- }
3505
- },
3506
- "additionalProperties": false
3507
- }
3508
- }
3509
- },
3510
- "additionalProperties": false
3388
+ "additionalProperties": false,
3389
+ "title": "TelemetryOptions"
3511
3390
  },
3512
3391
  "inspectorOptions": {
3513
3392
  "type": "object",
@@ -3596,72 +3475,6 @@
3596
3475
  },
3597
3476
  "default": []
3598
3477
  },
3599
- "scheduler": {
3600
- "type": "array",
3601
- "items": {
3602
- "type": "object",
3603
- "properties": {
3604
- "enabled": {
3605
- "anyOf": [
3606
- {
3607
- "type": "boolean"
3608
- },
3609
- {
3610
- "type": "string"
3611
- }
3612
- ],
3613
- "default": true
3614
- },
3615
- "name": {
3616
- "type": "string"
3617
- },
3618
- "cron": {
3619
- "type": "string"
3620
- },
3621
- "callbackUrl": {
3622
- "type": "string"
3623
- },
3624
- "method": {
3625
- "type": "string",
3626
- "enum": [
3627
- "GET",
3628
- "POST",
3629
- "PUT",
3630
- "PATCH",
3631
- "DELETE"
3632
- ],
3633
- "default": "GET"
3634
- },
3635
- "headers": {
3636
- "type": "object",
3637
- "additionalProperties": {
3638
- "type": "string"
3639
- }
3640
- },
3641
- "body": {
3642
- "anyOf": [
3643
- {
3644
- "type": "string"
3645
- },
3646
- {
3647
- "type": "object",
3648
- "additionalProperties": true
3649
- }
3650
- ]
3651
- },
3652
- "maxRetries": {
3653
- "type": "number",
3654
- "minimum": 0,
3655
- "default": 3
3656
- }
3657
- },
3658
- "required": [
3659
- "name",
3660
- "cron",
3661
- "callbackUrl"
3662
- ]
3663
- }
3664
- },
3665
3478
  "policies": {
3666
3479
  "type": "object",
3667
3480
  "properties": {
@@ -3706,11 +3519,17 @@
3706
3519
  "directory": {
3707
3520
  "type": "string",
3708
3521
  "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
3522
+ },
3523
+ "awaitFirstWorker": {
3524
+ "type": "boolean",
3525
+ "description": "Wait for the first worker to start before starting the remaining workers"
3709
3526
  }
3710
3527
  },
3711
- "additionalProperties": false
3528
+ "additionalProperties": false,
3529
+ "title": "CompileCacheOptions"
3712
3530
  }
3713
- ]
3531
+ ],
3532
+ "default": true
3714
3533
  },
3715
3534
  "module": {
3716
3535
  "type": "string"