Random high lock waiting time in PostgreSQL
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
No source file or test is named. Start by reproducing the reported workload around the solid_cache_entries INSERT ... ON CONFLICT write and the frequent key_hash reads, then inspect PostgreSQL lock-wait behavior under the stated rates. Done means identifying the cause of the intermittent waits and documenting a verified mitigation.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I have been encoutering high lock wait time for the cache write query INSERT INTO "solid_cache_entries" ... randomly. These spikes don't correlate with a surge in traffic or anything. Is there a way for me to investigate more into this and how can I improve the situation?
I have tried using UNLOGGED TABLE as suggested here, which improved cache write perforamnce but it still didn't help.
For context the cache read query SELECT "solid_cache_entries"."key", "solid_cache_entries"."value" FROM "solid_cache_entries" WHERE "solid_cache_entries"."key_hash" IN ($1) is run ~7700 times/s and the cache write query INSERT INTO
"solid_cache_entries" ... ON CONLICT ... is run ~550 times/s, our database server CPU usage is only ~16% when the high lock waiting time happened.
- Lenguaje dominante
- Ruby
- Estrellas
- 1k
- Forks
- 82
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rails/solid_cache
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
rails/solid_cache#307 · 4 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
rails/solid_cache#195 · 6 comentarios ·
-
UNLOGGED TABLE's in postgresql.Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
rails/solid_cache#101 · 5 comentarios · 11 reacciones ·
Todos los issues de rails/solid_cache
Issues similares
-
security
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
grafana/pyroscope#5729 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
rubygems/rubygems.org#6895 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
samvera/hyku#3359 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Child factories do not inherit traits from their parentPosiblemente ocupada @alassek la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
rom-rb/rom-factory#99 ·