mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
feat(core): implement sync outbox mechanism and refactor provider validation
- Introduce `SyncOutboxService` and model to retry failed CP-to-Redis sync operations - Update `SyncService` to handle sync failures by enqueuing tasks to the outbox - Centralize provider group and API key validation logic into `ProviderGroupManager` - Refactor API handlers to utilize the new manager and robust sync methods - Add configuration options for sync outbox (interval, batch size, retries)
This commit is contained in:
@@ -70,6 +70,10 @@ EZ-API 是“控制平面”,负责管理事实来源 (Source of Truth)。
|
||||
| `EZ_LOG_RETENTION_DAYS` | `30` | 日志保留天数。 |
|
||||
| `EZ_LOG_MAX_RECORDS` | `1000000` | 日志最大记录数。 |
|
||||
| `EZ_LOG_PARTITIONING` | `off` | 日志分区(off/month/day)。 |
|
||||
| `EZ_SYNC_OUTBOX_ENABLED` | `true` | CP->Redis 同步失败时启用 outbox 重试。 |
|
||||
| `EZ_SYNC_OUTBOX_INTERVAL_SECONDS` | `5` | outbox 重试间隔(秒)。 |
|
||||
| `EZ_SYNC_OUTBOX_BATCH_SIZE` | `200` | outbox 单次处理数量。 |
|
||||
| `EZ_SYNC_OUTBOX_MAX_RETRIES` | `10` | outbox 最大重试次数。 |
|
||||
| `EZ_MODEL_REGISTRY_ENABLED` | `false` | 模型注册表开关。 |
|
||||
| `EZ_MODEL_REGISTRY_REFRESH_SECONDS` | `1800` | 模型注册表刷新间隔。 |
|
||||
| `EZ_MODEL_REGISTRY_CACHE_DIR` | `./data/model-registry` | 模型注册表缓存目录。 |
|
||||
|
||||
Reference in New Issue
Block a user