monarch-initiative / biolink-api

API for linked biological knowledge
https://api.monarchinitiative.org/api/
BSD 3-Clause "New" or "Revised" License
63 stars 25 forks source link

504 errors for /sim/search when limit varies #379

Closed cemordaunt closed 2 years ago

cemordaunt commented 2 years ago

Thanks so much for maintaining this API. I've been running queries with /sim/search and I keep getting 504 Gateway Timeouts when I change the limit setting. I also occasionally get 500 errors. See below for examples, I'd really appreciate any help to solve this.

Query 1 (limit = 10) https://api.monarchinitiative.org/api/sim/search?is_feature_set=false&metric=phenodigm&id=MONDO%3A0001134&limit=10&taxon=10090

Query 1

Query 2 (limit = 5) https://api.monarchinitiative.org/api/sim/search?is_feature_set=false&metric=phenodigm&id=MONDO%3A0001134&limit=5&taxon=10090

Query 2
kshefchek commented 2 years ago

thanks for reaching out! the underlying analysis server that drives this service went down for ~24 hours, and I think what you were seeing is related to some odd caching behavior. The lower limit query should now be working. In the future we may add a rate limit to make sure the service can stay up - would you mind sharing your analysis needs (ie total number of requests, frequency)?

kshefchek commented 2 years ago

we've recently updated some limits that should result in better performance moving forward, please let us know if you continue to see issues. Also feel free to reach out to discuss your analysis needs - https://monarchinitiative.org/help/contact

cemordaunt commented 2 years ago

Great, thank you for your help on this!