teste de carga
#run java gradle bootRun
#pytest test_*.py --cov=. --cov-report=
pytest --cov=. tests/ --cov-fail-under 80 --cov-report xml --cov-report term-missing
mysqldump -u root -p"devel123" -h 127.0.0.1 test > devops/sql-scripts/dump-mysql.sql
PGPASSWORD=test pg_dump -h 127.0.0.1 -U gustavo -F p test > dump-postgres.sql
tunning
shared_buffers='2GB' # to ensure buffers our dataset
work_mem='2GB' # increase work_mem as it helps a lot for analytical stuff
max_parallel_workers_per_gather=2 # the default actually, so just as a reminder
shared_preload_libraries='pg_stat_statements' # for storing/analyzing test results
logging_collector=on
gunicorn bench_blacksheep:app --workers=8 -b "0.0.0.0:8080" --worker-class=uvicorn.workers.UvicornWorker --log-level error
taskset -c 1 wrk --latency -t1 -c100 -d30s http://127.0.0.1:8080/