feat: add private S3 storage (SeaweedFS) with bootstrap and client
- s3 and s3-bootstrap services: SeaweedFS 4.48 pinned by digest, internals on loopback, signing key, private bucket, API user policy, privacy checks on every bootstrap - [s3] settings and aiobotocore client in src/infra/s3: deadline per call, no retries, 503 on outage or rejected credentials - make start_s3, stop_s3, s3_check; run_dev, test_isolated, wipe_data and restart hook include S3 - failure_checks with own S3 and readiness check without it; bench generates S3 secrets and filters them out of the passport - rules, AGENTS.md, skill; sync health delta; KNOWN_ISSUES: rollout_from Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
не трогает. Решение 3 design change `failure-checks`.
|
||||
|
||||
Действия:
|
||||
stop|start|pause|unpause postgres|valkey
|
||||
stop|start|pause|unpause postgres|valkey|s3
|
||||
flush-cache FLUSHALL
|
||||
cache-hits keyspace_hits из INFO stats
|
||||
cache-has-chat <chat_id> EXISTS ключа карточки: 0 или 1
|
||||
@@ -49,7 +49,7 @@ COMPOSE_FILES = (
|
||||
ROOT / "student-tests" / "failures.compose.yml",
|
||||
)
|
||||
PROJECT_SUFFIX = "-failures"
|
||||
SERVICES = ("postgres", "valkey")
|
||||
SERVICES = ("postgres", "valkey", "s3")
|
||||
# та же проверка, что в healthcheck сервиса в docker-compose.yml. У
|
||||
# PostgreSQL стенда отказов healthcheck переопределён на базу postgres
|
||||
# (failures.compose.yml), а проба после start / unpause ходит в базу
|
||||
@@ -59,6 +59,10 @@ PROBES = {
|
||||
"postgres": 'pg_isready -q -h 127.0.0.1 -U "$POSTGRES_USER" '
|
||||
'-d "$POSTGRES_DB"',
|
||||
"valkey": 'test "$(valkey-cli -p "$VALKEY_PORT" ping)" = PONG',
|
||||
# master выбран, filer и шлюз S3 отвечают — как healthcheck сервиса s3
|
||||
"s3": "wget -q -O /dev/null http://127.0.0.1:9333/cluster/healthz && "
|
||||
"wget -q -O /dev/null http://127.0.0.1:8888/healthz && "
|
||||
'wget -q -O /dev/null "http://127.0.0.1:$S3_PORT/healthz"',
|
||||
}
|
||||
PROBE_TIMEOUT_S = 30
|
||||
# начало ключа карточки — копия CACHE_KEY_PREFIX из src/utils/constants.py:
|
||||
|
||||
Reference in New Issue
Block a user