feat: add reconcile strategies, deep check, rate limit and cost profile
- reconcile --strategy head, --deep (checksum_mismatch), restore needs the same SHA-256 - [reconciler] max_objects_per_second (2000), pause interrupted by signal - --apply stops rechecks once the limit is exceeded (unchecked) - pass cost in the summary: S3 objects and requests, bytes, DB sessions, phases - S3 client counters, cleaner exits with os._exit after main() - fault tests, hook args, driver reconcile-signal --pace - bench profile reconcile / reconcile_quick: fill outside the API, gateway metrics, background load - sync spec deltas, rules, AGENTS.md, PLAN.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -280,6 +280,10 @@ class Reconciler(BaseModel):
|
||||
page_size: int = Field(default=1000, ge=1, le=1000)
|
||||
# предел изменений за проход: больше — ни одного изменения и код 3
|
||||
max_changes: int = Field(default=100, ge=1)
|
||||
# предел скорости прохода: объектов S3 в секунду в среднем от начала
|
||||
# прохода (ключи страниц списка, HEAD, GET, DELETE); 0 — без предела
|
||||
# (design change `track2-reconcile-cost`, решение 6)
|
||||
max_objects_per_second: float = Field(default=2000.0, ge=0)
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
|
||||
Reference in New Issue
Block a user