-
Notifications
You must be signed in to change notification settings - Fork 290
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
Invenio v3.0.0a1 #3550
Invenio v3.0.0a1 #3550
Conversation
Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Works for me. I installed it twice got both time a slow answer on the first REST requests. Do we have something loading when the first request is received? |
Wait I can reproduce the problem in fact. This is not just slowing but stopping on chrome. When using firefox, the API requests run after one or two seconds instead of being stopped. It's as if the process was still serving the UI and stopped processing the API requests. It is still listening for them though as the server log has |
The API is not blocked when running in multi-threaded mode:
Also if I open a UI page in chrome, wait for it to load and then kill the server, I get this error:
|
FWIW I don't seem to observe any delay. If I open a web page as in your scenario step 1, the subsequent API query is fast and immediate: $ time curl -XGET http://localhost:5000/api/records/1 -H "Accept: application/json"
{
"data": {
"software": "Invenioyyy",
"title": "Invenio 3 Rocks"
},
"id": 1,
"links": {
"self": "http://localhost:5000/api/records/1"
}
}
real 0m0.043s
user 0m0.008s
sys 0m0.016s |
Yes I saw that sometime this not happen. But when it does it blocks each time. I used I have been trying to force a keep-alive socket with curl to see if this was the problem but the macos version seems cripled (or at least that what curl says in the output). If the issue is still here next week I will try to work on it again, I spent already too much time on it with B2Share release comming. |
Forget it, @jirikuncar explained that it's just werkzeug accepting only one connection in single threaded process. |
I got to the fifth line of Lars' gist where the process is halted by the |
@otron Did you use the exact same lines? As Invenio is not released yet they have to be changed a little in order to use this pull request. |
@nharraud I did use the exact same lines. Which ones require which changes? |
see checking-out-pull-requests-locally. Instead of installing Invenio you fetch this pull request and make |
Hahaha. Right, yeah, makes sense it won't work if it assumes the PR branch of the repository is residing in Thanks! Suggest adding the following between lines 3 and 4:
|
Guide assumes redis is running on the system, although it doesn't mention this. |
@otron WRT testing the branch, the explicit addition of
if they don't check out the sources. WRT Redis, it is briefly mentioned in the |
@tiborsimko Thanks for the clarification. I assumed the instructions were for this specific PR/branch so that people could verify that it worked or check it out or whatever. It wasn't clear to me that they were actually meant as a suggestion for the install procedure instructions post-merge/release on PyPi. |
Signed-off-by: Lars Holm Nielsen lars.holm.nielsen@cern.ch
See https://gist.github.com/lnielsen/982d3ea51d2d69983bce