Skip to content

maximum response time #28

Open
Open

Description

@Toon-nooT

I am having a POST function that currently takes up to 20 seconds. I see the request to the endpoint in my dashboard, but the response time seems to be 0 . Is there some kind of upper limit here?

Activity

  1. tom-draper commented on Nov 9, 2023

    @tom-draper
    Owner

    The response time measures the time between your server receiving the request and sending the response back, it doesn't capture any network latency. So it's possible to be zero if it's a quick function, but it sounds like you should be getting a much larger response time, so something doesn't sound right there. There isn't any upper limit set. Which API framework are you using?

  2. Toon-nooT commented on Nov 9, 2023

    @Toon-nooT
    Author

    It is FastAPI. I am positively sure the function itself takes so long as it's an AI inference task on CPU (which will take ~2 seconds when switching to a GPU later). I get a server response 200 OK back, so the function itself is working fine.

  3. Toon-nooT commented on Nov 9, 2023

    @Toon-nooT
    Author

    I just tried a few more calls and now it registers a median of ~30k milliseconds. So it does work now. Not sure why it showed 0 at first...

  4. tom-draper commented on Nov 9, 2023

    @tom-draper
    Owner

    Interesting, so it's measuring it inconsistently, I'll look into that. How are you hosting your API?

  5. Toon-nooT commented on Nov 9, 2023

    @Toon-nooT
    Author

    My API is hosted in a docker on Huggingface spaces, maybe that has something to do with it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions