Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requirements in terms of resources #76

Open
yurug opened this issue Aug 15, 2018 · 2 comments
Open

Requirements in terms of resources #76

yurug opened this issue Aug 15, 2018 · 2 comments
Assignees
Labels
kind: enhancement Enhancement to an existing user-facing feature.

Comments

@yurug
Copy link
Collaborator

yurug commented Aug 15, 2018

Which server requirements (RAM, CPUs, etc) should be allocated to learn-ocaml instances? I guess it depends on the number of users interacting with the platform.

We probably need a basic performance monitoring subsystem to collect information and to build solid answers to this question.

@AltGr
Copy link
Collaborator

AltGr commented Aug 15, 2018

The server really doesn't do anything special, anything that can serve web pages should be OK, since all the hard work is done in the client browser. I am adding some storage of data, but that shouldn't be anything your average toaster today can't handle (or I did something wrong!).

As for building the app from an exercise repository (learn-ocaml build), I just checked on a large repo and it doesn't reach 100MB memory usage. It could take a while on a slow machine, though (note: I just re-added parallel builds in my branch).

The main thing that would be worth checking is the network throughput when confronted with a large number of requests, possibly holding quite some bit load: say in the last minutes before a project is due...

@yurug
Copy link
Collaborator Author

yurug commented Aug 31, 2018

I have made some performance measurement with Chrome network monitoring, Google page speed, siege and loadimpact.com. Three conclusions:

  • the server resources consumption (CPU and RAM) indeed seem very low ;
  • the server responds very quickly even under an hundred concurrent users ;
  • the page loading time is around 8 seconds mainly because we do not compress and caching static entities.
    The last item is not too scary: we have many ways to optimize page loading time.

@yurug yurug closed this as completed Aug 31, 2018
@yurug yurug reopened this Aug 31, 2018
@EmileRolley EmileRolley added the kind: enhancement Enhancement to an existing user-facing feature. label Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Enhancement to an existing user-facing feature.
Projects
None yet
Development

No branches or pull requests

3 participants