unoverse 0.1.210 → 0.1.212
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.
|
@@ -275,7 +275,6 @@ services:
|
|
|
275
275
|
# Connection budget (INFRASTRUCTURE.md, Postgres law) — per-size values
|
|
276
276
|
# rendered by the infra Terraform; unset in local dev = code defaults (10).
|
|
277
277
|
- DB_POOL_ENGINE=${DB_POOL_ENGINE:-}
|
|
278
|
-
- DB_POOL_ENGINE_LEGACY=${DB_POOL_ENGINE_LEGACY:-}
|
|
279
278
|
# Encrypts stored credentials at rest. WITHOUT this the engine falls back to a
|
|
280
279
|
# key committed in source (SECURITY.md § Credential encryption at rest) — set it
|
|
281
280
|
# in every deployment: openssl rand -base64 32
|
|
@@ -83,24 +83,21 @@ locals {
|
|
|
83
83
|
instance = "t3.xlarge"
|
|
84
84
|
pg = "db.t4g.small"
|
|
85
85
|
redis = "cache.t4g.micro"
|
|
86
|
-
pool_engine =
|
|
87
|
-
pool_legacy = 4
|
|
86
|
+
pool_engine = 12
|
|
88
87
|
pool_memory = 4
|
|
89
88
|
}
|
|
90
89
|
medium = { # 8 vCPU / 32 GB
|
|
91
90
|
instance = "m6i.2xlarge"
|
|
92
91
|
pg = "db.t4g.medium"
|
|
93
92
|
redis = "cache.t4g.small"
|
|
94
|
-
pool_engine =
|
|
95
|
-
pool_legacy = 8
|
|
93
|
+
pool_engine = 28
|
|
96
94
|
pool_memory = 10
|
|
97
95
|
}
|
|
98
96
|
large = { # 8 vCPU / 64 GB — memory-optimized: the engine is ONE event loop
|
|
99
97
|
instance = "r6i.2xlarge"
|
|
100
98
|
pg = "db.m6g.large"
|
|
101
99
|
redis = "cache.t4g.medium"
|
|
102
|
-
pool_engine =
|
|
103
|
-
pool_legacy = 12
|
|
100
|
+
pool_engine = 52
|
|
104
101
|
pool_memory = 20
|
|
105
102
|
}
|
|
106
103
|
}
|
|
@@ -102,7 +102,6 @@ output "env_production" {
|
|
|
102
102
|
|
|
103
103
|
# Connection budget (INFRASTRUCTURE.md, size = ${var.size})
|
|
104
104
|
DB_POOL_ENGINE=${local.s.pool_engine}
|
|
105
|
-
DB_POOL_ENGINE_LEGACY=${local.s.pool_legacy}
|
|
106
105
|
DB_POOL_MEMORY=${local.s.pool_memory}
|
|
107
106
|
|
|
108
107
|
# Credential encryption at rest — per-deployment, generated by Terraform.
|
|
@@ -27,9 +27,9 @@ locals {
|
|
|
27
27
|
droplet = "s-4vcpu-16gb-amd" # 4 vCPU / 16 GB — the POC box
|
|
28
28
|
pg = "db-s-1vcpu-1gb" # ~22 backend connections (~19 usable) — hence the pool
|
|
29
29
|
redis = "db-s-1vcpu-1gb"
|
|
30
|
-
# Connection budget: engine
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
# Connection budget: engine 12 / memory 4 (+2 ops, +1 reserve = 19). The engine took the
|
|
31
|
+
# removed legacy pool's 4 on 2026-09-29 (docs/migrations/DATABASE_ROOT_CAUSE.md).
|
|
32
|
+
pool_engine = 12
|
|
33
33
|
pool_memory = 4
|
|
34
34
|
pgbouncer = 17 # backend connections the managed pool holds (leaves 5 direct: migrations + ops)
|
|
35
35
|
}
|
|
@@ -37,8 +37,7 @@ locals {
|
|
|
37
37
|
droplet = "g-8vcpu-32gb"
|
|
38
38
|
pg = "db-s-2vcpu-4gb"
|
|
39
39
|
redis = "db-s-1vcpu-2gb"
|
|
40
|
-
pool_engine =
|
|
41
|
-
pool_legacy = 8
|
|
40
|
+
pool_engine = 28
|
|
42
41
|
pool_memory = 10
|
|
43
42
|
pgbouncer = 40
|
|
44
43
|
}
|
|
@@ -46,8 +45,7 @@ locals {
|
|
|
46
45
|
droplet = "m-8vcpu-64gb" # memory-optimized: the engine is ONE event loop — RAM, not cores
|
|
47
46
|
pg = "db-s-4vcpu-8gb"
|
|
48
47
|
redis = "db-s-2vcpu-4gb"
|
|
49
|
-
pool_engine =
|
|
50
|
-
pool_legacy = 12
|
|
48
|
+
pool_engine = 52
|
|
51
49
|
pool_memory = 20
|
|
52
50
|
pgbouncer = 80
|
|
53
51
|
}
|
|
@@ -95,7 +95,6 @@ output "env_production" {
|
|
|
95
95
|
|
|
96
96
|
# Connection budget (INFRASTRUCTURE.md, size = ${var.size})
|
|
97
97
|
DB_POOL_ENGINE=${local.s.pool_engine}
|
|
98
|
-
DB_POOL_ENGINE_LEGACY=${local.s.pool_legacy}
|
|
99
98
|
DB_POOL_MEMORY=${local.s.pool_memory}
|
|
100
99
|
|
|
101
100
|
# Credential encryption at rest — per-deployment, generated by Terraform.
|
package/package.json
CHANGED