Giter Club home page Giter Club logo

Comments (3)

francoisjacquet avatar francoisjacquet commented on May 23, 2024 1

Hello @curiosport

RosarioSIS is a lightweight PHP application.

One thing is tuning your VPS for maximum performance (see Apache, PHP and PostgreSQL/MySQL configuration files) which is a topic on its own...

Here is a test: generate a Report Card PDF for 250 students. (values are peaks)
PHP consumed 20 MB RAM.
To this, you have to add RAM used by wkhtmltopdf: 500 MB.
And RAM used by PostgreSQL: 12 MB.

So a PDF will consume a lot more RAM (about 2 MB per page).
But for other requests not involving PDF generation (wkhtmltopdf), 30 MB RAM is enough.

Based on that, you can calculate how many concurrent requests you can handle with 2 GB RAM:
Let's say your VPS consumes 500 MB RAM when idle.
You still have 1500 MB to handle requests.
This is 1500 / 30 = 50 concurrent requests (no PDF).
For PDF requests, this depends on the number of pages of the PDF (2 MB per page on average).

The maximum number of items in a list in RosarioSIS is 1000.
Let's say you have 1000 students or more, you will be able to, at most, print Report Cards for 1000 students at once, which should generate a PDF of 1000 pages.
wkhtmltopdf will consume about 2000 MB RAM
PHP 40 MB
and PostgreSQL 20 MB
plus 500 MB for the system

So, to handle schools of 1000 students or more, I would recommend at least a VPS with 3 GB RAM.

2 GB RAM is enough for up to 750 students (per school).

from rosariosis.

curiosport avatar curiosport commented on May 23, 2024

Thank you very much for the information.

from rosariosis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.