Redis client has no socket timeouts, so a lost Redis connection stalls content requests for minutes
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 641
- Fork
- 178
- Merge medio
- 17h 36m
- PR unite (30g)
- 76
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pulp/pulpcore
-
Content cache ignores the query string, so one path serves the response cached for another queryApertaTriage-Needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Reclaim Space Server ErrorApertaIssue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
pulp/pulpcore#5802 · 10 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Creating a repository version from a large base_version uses excessive memory (can OOM the worker)Forse già presa @dkliban l’ha presa oggi. ApertaIssue Triage-Needed
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
I maintainer di solito rispondono entro 1 giorno
-
Feature Triage-Needed
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di pulp/pulpcore
Issue simili
-
Triage-Needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pulp/pulp-oci-images#875 ·
-
intake mcp-intake needs-human-review priority:high type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Ikalus1988/MisakaNet#5718 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
facebookresearch/autoform-bot#872 ·
I maintainer di solito rispondono entro 1 giorno
-
Dataset.to_json() writes "Value": [] for an empty sequenceForse già presa @DG47 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
area: docs area: providers/oci priority: p3 size: S type: documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
finos/open-resource-broker#933 ·
I maintainer di solito rispondono entro 1 giorno