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

Timeout when validating resources with large number of arcs #112

Open
labra opened this issue May 18, 2020 · 1 comment
Open

Timeout when validating resources with large number of arcs #112

labra opened this issue May 18, 2020 · 1 comment

Comments

@labra
Copy link
Member

labra commented May 18, 2020

The following attempt of validation (a Shanghai hospital) agains the entity schema of hospitals:

curl -i -X POST -H "Content-type:multipart/form-data" 'http://localhost:8080/api/wikidata/validate' \
                                                         --form-string 'item=<http://www.wikidata.org/entity/Q33121756>' \
                                                         --form-string 'entitySchema=E187'

gives a timeout because the entity schema E187 refers to country and the country is Chile (Q148) which seems to take more time than expected to be retrieved and the whole result is a timeout.

Check how we can improve this situation by increasing the time the server waits or using some kind of streaming retrieval.

@labra
Copy link
Member Author

labra commented May 25, 2020

Looking at logs, there is a warning:

requestTimeout (5 minutes) is >= idleTimeout (1 minute). It is recommended to configure responseHeaderTimeout < requestTimeout < idleTimeout or disable some of them explicitly by setting them to Duration.Inf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant