Giter Site home page Giter Site logo

Comments (10)

myedibleenso avatar myedibleenso commented on June 3, 2024

@mcshlain, can you please try running the issue35 branch branch to confirm that those changes take care of timeout you reported?

from odinson.

mcshlain avatar mcshlain commented on June 3, 2024

Will do.

from odinson.

mcshlain avatar mcshlain commented on June 3, 2024

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.

mcshlain avatar mcshlain commented on June 3, 2024

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.

myedibleenso avatar myedibleenso commented on June 3, 2024

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.

mcshlain avatar mcshlain commented on June 3, 2024

The new change worked, the query I used returned after 750 seconds (so it did not got cut after 75).

from odinson.

myedibleenso avatar myedibleenso commented on June 3, 2024

Curious to hear what sort of query and corpus you're using, but glad this last change took care of the timeout.

from odinson.

mcshlain avatar mcshlain commented on June 3, 2024

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.

myedibleenso avatar myedibleenso commented on June 3, 2024

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.

mcshlain avatar mcshlain commented on June 3, 2024

thanks, I don't actually remember if we used this option or not when creating the index.

from odinson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.