Performance issues when running unfurl_version_range_v2advisor (and others)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Bug
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- postgresql, python
- Domínio
- backend, databases, performance
Direção de pesquisa
O relatório aponta para o unfurl_version_range_v2advisor improver e para os comandos de gerenciamento import --all e improve --all; comece criando um perfil desses pontos de entrada em relação aos tamanhos das tabelas do PostgreSQL e à consulta pg_stat_user_tables fornecida. Uma contribuição precisaria de uma alteração de desempenho definida e reproduzível e de um critério de conclusão mensurável, nenhum dos quais é especificado atualmente pela issue.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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?
- Linguagem predominante
- Python
- Estrelas
- 716
- Forks
- 347
- Merge médio
- 13h 47min
- PRs com merge (30d)
- 8
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de aboutcode-org/vulnerablecode
-
OSV parser drops all crates.io affected entries because the ecosystem mapping uses cargoTalvez já em andamento @Ashutosh-Panda2004 assumiu há 3 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
aboutcode-org/vulnerablecode#2485 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Docker Compose setup fails on wait-for-it host web:8000 and missing runtime .envTalvez já em andamento @Anurag-S1ngh assumiu há 6 dias. Aberta
Dificuldade 2/5 Meio dia Facilidade para iniciantes 77/100
aboutcode-org/vulnerablecode#2477 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
OVAL parser corrupts version bounds when the epoch is 10, 20 or the version contains "0:"Talvez já em andamento @Ashutosh-Panda2004 assumiu há 4 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
aboutcode-org/vulnerablecode#2474 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
aboutcode-org/vulnerablecode#2426 ·
Mantenedores costumam responder em até 1 dia
-
Get NuGet package versions from federated PURL version data in https://github.com/aboutcode-data/Talvez livre de novo @Anshi321 assumiu há 26 dias e não há nenhum pull request aberto. Abertabug data-quality
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
aboutcode-org/vulnerablecode#2418 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de aboutcode-org/vulnerablecode
Issues semelhantes
-
getchaintips leaves out the active tip once a header is staged on it, where Core always lists itAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
btclib-org/btclib-node#2158 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
dbt-msft/dbt-sqlserver#897 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Gathin23/cleanyourtv#2770 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
vllm-project/vllm#64845 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
dekobon/big-code-analysis#1729 ·
Mantenedores costumam responder em até 1 dia