-
Notifications
You must be signed in to change notification settings - Fork 66
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
learn-ocaml startup algorithm does not seem to scale #348
Comments
@Aleridia volunteers to take a look at this issue (which will be a first step towards implementing the other User Stories Maxime is working on). At first sight, the implementation will require some form of database (to keep an up-to-date index independently of the |
As a matter of fact, I do not experience this issue. How many students do you have? |
I have 241 students on mine. |
However, the machine is equipped with an efficient SSD so I guess that could explain the difference in terms of efficiency. |
The definition of |
Same question with |
Hi @yurug, thanks for your comments.
~160 students
Unfortunately I cannot check this for the moment as the host that serves our learn-ocaml instance has temporarily shutdown the server (due to some "casual administrative issue" with the Univ.), but I hope to be able to access the files again next week. I'll let you know at that time. Also (but this is only my intuition, not an experiment) I guess the issue is related to the fact each student folder contains git repositories that grow significantly (a priori several new files are created per commit) and this may be amplified by #338 as learn-ocaml now creates empty commits for every student click on the Sync button. |
Anyway, are you in favor of the solution outlined in ocaml/opam#4203 (comment) ? namely:
|
(we can also plan some phone call next week if you want to discuss this in more depth) |
Hello,
(I recently noticed this issue, but I did not investigate further)
Currently (after a whole semester), when the learn-ocaml Docker container is restarted or recreated, the startup takes a very long time (around 2'30) and during that time, the server is offline, which is quite annoying.
cf. the following log:
I'm not sure but I guess the bottleneck is the following line:
learn-ocaml/src/server/learnocaml_server.ml
Line 512 in 145fabc
@yurug did you experience a similar issue?
anyway, maybe we could consider slightly changing the architecture of learn-ocaml's persistent data (e.g. by caching/storing the teachers token in another place?) so that that step is immediate…
The text was updated successfully, but these errors were encountered: