Repository navigation
P8:监控、限流、缓存、压测、Docker 部署与 CI;新增 README - #2
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rieval cache, load test, Docker Compose, CI - metrics: per-route counts and P50/P95/P99, error codes, LLM calls/tokens/queue, tool calls, cache hit rates, breaker states; JSON and Prometheus formats - gateway: per-IP token-bucket rate limiting (429 + Retry-After) and a global in-flight cap for plan/chat (503 SERVER_BUSY); aggregated /api/metrics and admin.html behind ADMIN_TOKEN (loopback-only when unset) - retrieval result cache (thread-safe LRU+TTL, cleared on re-ingest) - load test with a mock LLM: capacity, overload, rate limit, circuit breaker - fix: open-circuit rejections were retried with backoff (1-1.8s -> 33-75ms) - fix: Neo4j server-side transaction timeouts now degrade instead of INTERNAL - Docker images for gateway and agent_service, compose with health-gated startup; agent not published; GitHub Actions for tests and image builds - map page loads the Amap JS key from /api/config instead of hardcoding it - pinned requirements; neo4j was missing; training deps split out Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
P8 性能与运维,外加项目 README。
内容
/api/metrics(JSON 或 Prometheus 格式)与监控页admin.html,需要ADMIN_TOKEN访问eval/load_test.py使用模拟 LLM,报告见eval/load_test.md/api/config下发,不再写死在页面里修复(压测与容器实测中发现)
1.8s → 3375msrequirements.txt漏了 neo4j:所有依赖已固定版本验证
docker compose up端到端:就绪检查全部通过,宿主机访问不到 agent 端口,监控接口不带 token 返回 403,真实图谱问题回答正常🤖 Generated with Claude Code