Skip to content

Improving Performance

AAK edited this page Nov 14, 2018 · 1 revision

Improving Performance

  • Prefer python version 3.6.5+

  • Replace default sqlite database with postgresql

  • Use headless version of wkhtmltopdf

  • Use celery for pdf/png conversion

  • Use aiohttp backend for Vinanti for fetching web-pages asynchronously

  • When using gunicorn, adjust workers depending on number of cpu cores of the server.

    According to gunicorn docs, preferred number of workers = 2n+1, where n = number of cores

  • Minimum 2GB RAM

Clone this wiki locally