Skip to content

Commit 31c1dc5

Browse files
authored
Merge pull request #320 from korpling/document-query-timeout
Document query_timeout config parameter
2 parents bcdaefc + ccbd486 commit 31c1dc5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/src/rest/configuration.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ host = "localhost"
1313
graphannis = "data/"
1414
sqlite = "service.sqlite"
1515
disk_based = false
16+
# Use 25% Of the free memory
1617
cache = {PercentOfFreeMemory = 25.0}
18+
# Optional timeout for queries in seconds. No timeout is applied if parameter is
19+
# not given.
20+
query_timeout = 60
1721

1822
[logging]
1923
debug = false
@@ -56,6 +60,8 @@ cache = {FixedMaxMemory = 8000}
5660
```
5761
at most 8 GB of RAM.
5862

63+
Queries can be aborted automatically after a specific timeout, by setting the `query_timeout` parameter which specifies the timeout in seconds.
64+
5965
## [logging] section
6066

6167
Per default, graphANNIS will only output information, warning and error

0 commit comments

Comments
 (0)