Uploaded image for project: 'PredictionIO (Retired)'
  1. PredictionIO (Retired)
  2. PIO-95

Raise request timeout for REST API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.0-incubating
    • 0.12.0-incubating
    • Core
    • None

    Description

      We've found the default 20-second REST API request timeout is too short for our batch-prediction use cases. We're running PredictionIO on Heroku which has its own timeout starting at 30-seconds. So we'd prefer a more generous or easily configurable timeout to allow Heroku's routing layer to impose & track this limit in the platform layer.

      I investigated how to configure this and found Spray `application.conf`. This PR simply increases the timeout.

      I would love guidance on how we might extract this config into an environment variable or a value in `pio-env.sh`.

      Investigation / implementation PR: https://github.com/apache/incubator-predictionio/pull/394

      Attachments

        Issue Links

          Activity

            People

              marsikai Mars Hall
              marsikai Mars Hall
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: