@ts-cloud/core 0.7.123 → 0.7.125

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/dist/index.js CHANGED
@@ -22483,6 +22483,9 @@ function resolveManagementDashboardSites(config, environment, opts) {
22483
22483
  preStart: ["bun install --production --no-save"],
22484
22484
  start: `bun ${DASHBOARD_ENTRY} --box --host 127.0.0.1 --port ${port}`,
22485
22485
  port,
22486
+ cpuWeight: 10,
22487
+ ioWeight: 10,
22488
+ tasksMax: 128,
22486
22489
  env: {
22487
22490
  APP_ENV: "production",
22488
22491
  NODE_ENV: "production",
package/dist/types.d.ts CHANGED
@@ -1013,6 +1013,31 @@ export interface SiteConfig {
1013
1013
  * know a site's real ceiling. Should be higher than {@link memoryHigh}.
1014
1014
  */
1015
1015
  memoryMax?: string;
1016
+ /**
1017
+ * systemd `CPUWeight` for this site's unit — its relative share of the CPU
1018
+ * when the box is contended. Default weight is 100; higher wins.
1019
+ *
1020
+ * Worth setting on a shared box, where not everything deserves an equal
1021
+ * slice: the gateway serving every tenant should outrank a nightly batch
1022
+ * job, and a monitoring dashboard should outrank neither. Without it a
1023
+ * background job that saturates the cores slows the serving path exactly as
1024
+ * much as it slows itself.
1025
+ *
1026
+ * Unset by default — a box running one workload has nothing to rank.
1027
+ */
1028
+ cpuWeight?: number;
1029
+ /**
1030
+ * systemd `IOWeight` for this site's unit — the same relative share, for
1031
+ * disk bandwidth. Unset by default.
1032
+ */
1033
+ ioWeight?: number;
1034
+ /**
1035
+ * systemd `TasksMax` for this site's unit — a ceiling on threads and
1036
+ * processes. Catches a runaway spawn loop before it exhausts the box's PID
1037
+ * space, which is a failure that takes down every tenant, not just the one
1038
+ * that caused it. Unset by default.
1039
+ */
1040
+ tasksMax?: number;
1016
1041
  /**
1017
1042
  * SSR only. tar `--exclude` patterns applied when packaging the release
1018
1043
  * tarball. Keep host-specific / heavy paths out of the artifact — most
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ts-cloud/core",
3
3
  "type": "module",
4
- "version": "0.7.123",
4
+ "version": "0.7.125",
5
5
  "description": "Core CloudFormation generation library for ts-cloud",
6
6
  "author": "Chris Breuer <chris@stacksjs.com>",
7
7
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "typecheck": "tsc --noEmit"
32
32
  },
33
33
  "dependencies": {
34
- "@ts-cloud/aws-types": "0.7.123"
34
+ "@ts-cloud/aws-types": "0.7.125"
35
35
  },
36
36
  "devDependencies": {
37
37
  "typescript": "^7.0.2"