lab5: ограничение одновременных upload-spool и evidence после ревью

Process-level semaphore bounds temporary disk use on the upload path; refresh raw evidence after the review fixes.
This commit is contained in:
Vladislav Kunetskiy
2026-10-30 23:16:12 +03:00
parent 9d7a0acb5a
commit e40a5cf215
13 changed files with 69 additions and 48 deletions
+1
View File
@@ -105,6 +105,7 @@ type Admission struct {
MaxPendingPerUser int `mapstructure:"max_pending_per_user" validate:"required,gte=0"`
MaxPending int `mapstructure:"max_pending" validate:"required,gte=0"`
MaxStagedBytes int64 `mapstructure:"max_staged_bytes" validate:"required,gte=0"`
MaxConcurrent int `mapstructure:"max_concurrent_uploads" validate:"omitempty,gt=0"`
}
// S3 describes the object store and attachment limits. Access keys are checked