Severe performance issue in Npgsql 10 when PGSSLROOTCERT is set to system store
I maintainer di solito rispondono entro 6 giorni
Nessuno ha ancora preso questa issue.
- #6418 di @qualcuno — chiusa senza merge
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 20/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- csharp, postgresql
- Ambito
- databases, performance
Direzione di ricerca
Start by reading commit 73202604c3d66d4b55c81d3d532bf0e78cc5c2ee and the linked pull request #6418 to understand the certificate-chain validation change and work already underway. Compare the system-store case with custom certificate files; done means avoiding the reported connection-timeout performance problem while preserving the expected validation for custom files.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
After updating from Npgsql 8 to 10, we experienced frequent database connection timeouts, and traced them to commit 73202604c3d66d4b55c81d3d532bf0e78cc5c2ee, which adds an additional certificate chain validation in case the PGSSLROOTCERT environment variable is set.
While this additional validation is expected if PGSSLROOTCERT is set to a custom file, it becomes a significant performance problem if PGSSLROOTCERT is in fact set to the system certificate store, which was the case in the environment I was operating in -- probably because in contrast to Npgsql, libpq requires PGSSLROOTCERT for certificate validation. The reason for the large performance difference is that the actual system store includes a cache, whereas the custom certificates are loaded from disk every time.
As I expect other users to run into the same problem, it would be useful if Npgsql could detect this problem and either silently use the system store or at least warn the user and instruct them to unset PGSSLROOTCERT specifically for the Npgsql-based application. I will create a PR, but unfortunately I could not find a way to ask .NET for the system store location it actually used.
- Lingua principale
- C#
- Stelle
- 3.7k
- Fork
- 890
- Merge medio
- 4g 11h
- PR unite (30g)
- 19
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Nessuna 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 npgsql/npgsql
-
Writing a decimal as numeric allocates a short[9] per valueForse già presa @tamasprincz97-dot l’ha presa 13 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 89/100
I maintainer di solito rispondono entro 6 giorni
-
Reading a large interval as TimeSpan returns a wrong value instead of throwingForse già presa @Mr444-dev l’ha presa 7 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
npgsql/npgsql#6569 · 2 commenti ·
I maintainer di solito rispondono entro 6 giorni
-
ReadReplicationSlot returns the slot name as passed, not the one the server readForse già presa @Brar l’ha presa 8 giorni fa. Apertareplication
npgsql/npgsql#6735 · 1 assegnatario ·
I maintainer di solito rispondono entro 6 giorni
Tutte le issue di npgsql/npgsql
Issue simili
-
Issue-Bug Needs-Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
JiaFeiMiao-K-Cat/DiscImageStudio#281 ·
I maintainer di solito rispondono entro 1 giorno
-
area/access-management Frontend onboarding candidate :handshake:
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Altinn/altinn-auth#4941 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
aws/aws-sdk-net#4586 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno