[Core] Add opt-in serialized HWR build admission
Signed-off-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
1 parent
039808e0d9
commit
90815cc866
5 files changed
+394
-4
No files matched your search
@@ -313,6 +313,16 @@ One process per exact identity owns a build; other workers wait and then acquire
|
||||
leases for the published artifact. Publication is invisible until all payloads
|
||||
and metadata are validated, hashed, fsynced, and atomically renamed.
|
||||
|
||||
By default, different identities may build concurrently. A domain configured
|
||||
with `CapacityPolicy(build_admission="serialized", max_store_bytes=...)` admits
|
||||
only one producer/publication operation at a time. Warm hits remain concurrent,
|
||||
and admission uses the existing coordination deadline. All workers must agree
|
||||
on the serialized domain's schema-2 capacity policy; use a new root when opting
|
||||
in, since in-place migration of an active domain is unsupported. This prevents
|
||||
competing producers from racing allocation checks but does not provide a
|
||||
filesystem-wide byte quota or automatic stale-data reclamation. See the
|
||||
[module capacity contract](../module/host_weight_runtime.md#validation-and-capacity).
|
||||
|
||||
`coordination_timeout_seconds` bounds filesystem lock acquisition. It does not
|
||||
cancel synchronous validation, a producer that has already started, or atomic
|
||||
publication. A hung in-process producer therefore blocks its owning process and
|
||||
|
||||
Reference in new issue
Block a user