Performance issues when running unfurl_version_range_v2advisor (and others)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- postgresql, python
- Ambito
- backend, databases, performance
Direzione di ricerca
Il report indica unfurl_version_range_v2advisor improver e i comandi di gestione import --all e improve --all; inizia profilando questi punti di ingresso rispetto alle dimensioni delle tabelle PostgreSQL e alla query pg_stat_user_tables fornita. Un contributo richiederebbe una modifica delle prestazioni definita e riproducibile e un criterio di completamento misurabile, nessuno dei quali è attualmente specificato dall’issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi Team,
first release: v34.0.0rc4 (or earlier)
current release: 38.1.0
Our database dates back 2+years and has grown a lot. I checked the sizes of some of the tables using this command:
SELECT
schemaname AS schema,
relname AS table_name,
n_live_tup AS row_count
FROM
pg_stat_user_tables
ORDER BY
n_live_tup DESC;
Results were staggering:
"vulnerabilities_impactedpackageaffecting" 735403239 =735 mln (!!!)
"vulnerabilities_advisory" 54630236 = 54 mln
"vulnerabilities_advisoryrelatedalias" 54622255 = 54 mln
"vulnerabilities_packagechangelog" 34332358 = 34 mln
"vulnerabilities_vulnerability_severities" 32511124 = 32 mln
"vulnerabilities_vulnerabilityseverity" 32221132 = 32 mln
"vulnerabilities_impactedpackage" 25634100 = 25 mln
"vulnerabilities_impactedpackagefixedby" 8558740 = 8mln
We are running VulnerableCode on OpenShift and decided that we wanted a regular updates of the importers and improvers, so we created CronJobs that would import/improve just one thing each (for example python manage.py import nvd_importer_v2). With the new version we have 137 pods running running at different times of day. While this was a lot but sort of manageable (at least we thought) we have starting noticing problems our database was under enormous load especially when improvers run. While I know that this is caused by parallel runs there is one specific improver that causes our nodes to crash and push the database beyond CPU limits - unfurl_version_range_v2advisor it was running usually for 4 days straight and using north of 44 GiB of RAM on OpenShift and 10-12 CPUs on PostgreSQL side.
With this we tried running importers and improvers as it says in documentation import --all and improve --all but those takes days or weeks to do.
Most recent importer --all run:
CommandError: 8 failed!: apache_kafka_importer_v2,mattermost_importer_v2,gitlab_importer,pypa_importer,npm_importer,nginx_importer,pysec_importer,vulnerabilities.importers.istio.IstioImporter
and it still took 26 hrs. and that is just importers on their own.
We haven't been able to do full run of the improve -all as of yet as I have seen some of those improvers can run for 3-4 days each.
So the question here arises, what to do with this as with this version it is unusable for our production instances.
what to do?
- Delete the whole thing and start over with new db
- Run importers once every 26 hrs, and then start improve --all which will take most likely weeks
- Skip most resource intensive improvers and just do the rest?
I would love to hear your suggestions on possible solutions, or how you run it?
- Lingua principale
- Python
- Stelle
- 716
- Fork
- 347
- Merge medio
- 12h 15m
- PR unite (30g)
- 9
Preparare l'ambiente
- Include un Dockerfile o un 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 aboutcode-org/vulnerablecode
-
OSV parser drops all crates.io affected entries because the ecosystem mapping uses cargoForse già presa @Ashutosh-Panda2004 l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
aboutcode-org/vulnerablecode#2485 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Docker Compose setup fails on wait-for-it host web:8000 and missing runtime .envForse già presa @Anurag-S1ngh l’ha presa 5 giorni fa. Aperta
Difficoltà 2/5 Mezza giornata Idoneità per principianti 77/100
aboutcode-org/vulnerablecode#2477 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
OVAL parser corrupts version bounds when the epoch is 10, 20 or the version contains "0:"Forse già presa @Ashutosh-Panda2004 l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
aboutcode-org/vulnerablecode#2474 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
aboutcode-org/vulnerablecode#2426 ·
I maintainer di solito rispondono entro 1 giorno
-
Get NuGet package versions from federated PURL version data in https://github.com/aboutcode-data/Forse di nuovo libera @Anshi321 l’ha presa 25 giorni fa e non c’è nessuna pull request aperta. Apertabug data-quality
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
aboutcode-org/vulnerablecode#2418 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di aboutcode-org/vulnerablecode
Issue simili
-
Support .aac audio uploadsForse già presa @julien731 l’ha presa oggi. Apertafeature
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nimblehq/audio-transcriber#153 ·
-
help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
antonyrag/ragleap-core#1062 ·
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
gke-labs/kube-agents#4321 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Git-Hospital/githealthcheck#61 ·
I maintainer di solito rispondono entro 1 giorno
-
changelog investigate
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
ramnes/notion-sdk-py#433 ·