Skip to content

Running inference API can sometimes be very slow or fail #94

@BenjaminBossan

Description

@BenjaminBossan

Following up on this slack discussion.

The problem is that the skops CI sometimes times out after we added tests for the inference API (here is a failed run). We did some further investigation and this is what we can say for now:

  1. The call to the inference API is the slow step
  2. It's only the first call that is slow, repeated calls are fast thanks to warm start (but our tests don't benefit from that).
  3. The more processes there are in parallel, the more likely it is for the call to be slow or to time out, but there is a lot of variance
  4. Even 3 parallel processes can already cause slowdown
  5. This happens even without the retry decorator we use
  6. If a call does not finish within 3 min, in the vast majority of times, it times out after 7 min (there is no timeout set from the client side).
  7. Occasionally, we also get an internal server error

ping @adrinjalali

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions