Comments (10)
@mcshlain, can you please try running the issue35
branch branch to confirm that those changes take care of timeout you reported?
from odinson.
Will do.
from odinson.
The branch did not solve the issue, I'm still getting the connection cut after 75 seconds:
'''
$ date > time.it && curl -X GET "http://localhost:9000/api/search?odinsonQuery=%5B%5D%20%3Cnsubj%20%5B%5D" -H "accept: application/json" || date >> time.it
$ cat time.it
Mon Sep 23 09:12:49 IDT 2019
Mon Sep 23 09:14:04 IDT 2019
'''
from odinson.
I've encountered this:
https://www.playframework.com/documentation/2.6.x/SettingsAkkaHttp
There is an option there called idleTimeout:
# The idle timeout for an open connection after which it will be closed
# Set to null or "infinite" to disable the timeout, but notice that this
# is not encouraged since timeout are important mechanisms to protect your
# servers from malicious attacks or programming mistakes.
idleTimeout = 75 seconds
which is set to exactly 75 seconds, I tried playing with it at some point but couldn't make it work, but I have no experience with the play framework so I might have not been setting it correctly.
from odinson.
Thanks for testing it out.
Would you mind trying once more? I think I've figured out the problem. It seems that in development mode the HTTP server starts before the config is available, so this sort of setting has to be specified in the project's build.sbt
.
from odinson.
The new change worked, the query I used returned after 750 seconds (so it did not got cut after 75).
from odinson.
Curious to hear what sort of query and corpus you're using, but glad this last change took care of the timeout.
from odinson.
We're using the full wikipedia corpus (the index is 100GB) and I tested this with a [] <nsubj []
query. This is not the query that is actually interesting but it recreated the problem we encountered with other queries.
from odinson.
Now that's a real index! You're probably already aware of this, but if you're not using the UI (or at least not the detailed parse view), you can set this config property to false to substantially reduce the size of the index:
from odinson.
thanks, I don't actually remember if we used this option or not when creating the index.
from odinson.
Related Issues (20)
- v1.0.0
- Live indexing
- Bug when using metadataQuery via REST API HOT 2
- Finalize Odinson v0.6.0
- Remove `backend` subproject from Odinson HOT 3
- Suggested clarification to documentation to fix "Error downloading org.clulab:glove-840b-300d-10f" issue HOT 4
- Build error occurs when compiling 0.5.0 or 0.6.0 HOT 5
- Support deleting Odinson docs from index HOT 1
- Getting error in running the walkthrough example HOT 5
- CluProcessor vs. BioCluProcessor HOT 2
- Update -RC1 sbt
- How to operate the extra shell HOT 2
- Broken link to Odinson REST API repository in docs/index.md HOT 1
- Odin --> Odinson for extractions from individual text fragments. HOT 4
- standardize configuration YAML structure and represent it as a POJO
- The resolver has gone missing
- Support parallel queries HOT 1
- Documentation link is not working HOT 7
- cannot capture multiple terms
- [BUG] join queries fail when combining metadata filters and odinson queries with exact range quantifiers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odinson.