You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Re-land the shm-floor knob from the closed#80 on top of the CR
materialisation refactor. `compute_shm_and_shared_buffers` derives shm
from the pod's memory request/limit; for analytics workloads that
derived value is often lower than what shared_buffers benefits from,
and bumping memory request just to raise shm burns k8s scheduling
budget for no real gain.
Adds:
- `PostgresPhysicalReplicaSpec.shmSizeFloor: Option<Quantity>` — the
Deployment builder now takes `max(computed_shm, floor)` and scales
`shared_buffers_mb` proportionally so postgres actually uses the
extra shm.
- `IntentConfig.shm_size_floor` (verify: 512Mi, analytics-dev / -dbt:
2Gi) — materialised into the CR spec by
IntentConfig::to_replica_spec.
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,7 @@ Defines a continuously-refreshed replica of a PostgreSQL database restored from
95
95
| `storageSizeOverride` | `Quantity` | No | — | Override dynamic sizing with a fixed PVC size. When absent, PVC size is calculated from snapshot size. |
96
96
| `storageSizeMaximum` | `Quantity` | No | `2Ti` | Maximum allowed PVC size. The restore will fail if the computed size exceeds this limit. |
97
97
| `resources` | `ResourceRequirements` | No | — | CPU/memory resource requirements for the PostgreSQL pods. |
98
+
| `shmSizeFloor` | `Quantity` | No | — | Floor on the postgres pod's `/dev/shm` sizing. When set, the Deployment uses `max(computed, shmSizeFloor)` — the computed value is derived from `resources` by [`compute_shm_and_shared_buffers`]. Useful when a workload's `shared_buffers` needs more shm than the resource-derived value provides, without wanting to bump the container's memory request. |
98
99
| `serviceAnnotations` | `map[string]string` | No | — | Annotations applied to the Service. |
99
100
| `podAnnotations` | `map[string]string` | No | — | Annotations applied to the PostgreSQL pods. |
100
101
| `affinity` | `Affinity` | No | — | Pod scheduling affinity rules. |
0 commit comments