Redis client has no socket timeouts, so a lost Redis connection stalls content requests for minutes
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with redis_connection.py, where the Redis client is built from REDIS_HOST and REDIS_PORT without socket timeouts, and check how REDIS_URL is parsed as an alternative path. Read the cache layer that falls back to the database when Redis raises an error, to confirm where the failure surfaces. Reproduce by pointing the client at an address that does not answer and timing a cache call. Done when the host-based client sets connect and socket timeouts and a health check, and the REDIS_URL options are documented.
由索引模型根据 Issue 内容生成。
描述
redis_connection.py builds the client with REDIS_HOST/REDIS_PORT and no socket_timeout, socket_connect_timeout, socket_keepalive or health_check_interval. Every content request consults the cache, and the cache serves the request without Redis when Redis raises an error. With no timeouts, nothing is raised when the Redis server disappears without closing its connections (node loss, network partition): a request on such a pooled connection waits until TCP gives up, which takes minutes, and new connections wait for the OS connect timeout.
Measured with redis-py 8.1 against an address that does not answer: a cache call fails after about 20 s without options and after about 4 s with socket_connect_timeout=1&socket_timeout=2 in REDIS_URL (three retries).
Suggestion: default timeouts and a health check when the client is built from REDIS_HOST, and documenting the REDIS_URL query options for deployments that set it.
- 主要语言
- Python
- 星标
- 641
- 派生
- 178
- 平均合并
- 17 小时 36 分钟
- 30 天内合并 PR
- 76
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pulp/pulpcore 的其他 Issue
-
Content cache ignores the query string, so one path serves the response cached for another query未关闭Triage-Needed
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Issue
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Feature
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
Creating a repository version from a large base_version uses excessive memory (can OOM the worker)可能已有人在做 @dkliban 今天认领。 未关闭Issue Triage-Needed
难度 4/5 3-5 天 新手友好度 18/100
维护者通常 1 天内回复
-
Feature Triage-Needed
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
相似的 Issue
-
Triage-Needed
难度 2/5 1-3 小时 新手友好度 72/100
pulp/pulp-oci-images#875 ·
-
intake mcp-intake needs-human-review priority:high type:bug
难度 2/5 1-3 小时 新手友好度 66/100
Ikalus1988/MisakaNet#5718 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
facebookresearch/autoform-bot#872 ·
维护者通常 1 天内回复
-
Dataset.to_json() writes "Value": [] for an empty sequence可能已有人在做 @DG47 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
area: docs area: providers/oci priority: p3 size: S type: documentation
难度 2/5 1-3 小时 新手友好度 82/100
finos/open-resource-broker#933 ·
维护者通常 1 天内回复