MaRDI4NFDI / portal-compose

docker-composer repo for mardi
https://portal.mardi4nfdi.de
GNU General Public License v3.0
3 stars 1 forks source link

Increase blazegraph timeout to 1h #443

Closed physikerwelt closed 6 months ago

physikerwelt commented 6 months ago

inspired by https://stackoverflow.com/a/52434226 which passes the blazegraph options directly according to

https://github.com/wikimedia/wikidata-query-rdf/blob/0922c4c4dead1e4937f3c3b4afeb89eb79bd808d/dist/src/script/runBlazegraph.sh#L144

gehel commented 6 months ago

In Wikidata Query Service, we control the query timeouts via the X-BIGDATA-MAX-QUERY-MILLIS HTTP header.

See https://github.com/wikimedia/operations-puppet/blob/production/modules/query_service/templates/nginx.erb#L221 for our implementation. We use an nginx reverse proxy in front of Blazegraph to set this header.

https://github.com/blazegraph/database/wiki/REST_API#query has some documentation as well.

physikerwelt commented 6 months ago

@gehel, thank you very much. That was extremely helpful.