Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Slow operations should be non-blocking #4

Open

Description

@brummett

Creating a database, new and from a template
dropping a database

Activity

  1. brummett commented on Aug 8, 2014

    @brummett
    ContributorAuthor

    uploading a template file

  2. brummett commented on Nov 11, 2014

    @brummett
    ContributorAuthor

    The only possible slow thing now can be creating a DB from a template or a template from a DB

  3. nnutter commented on Feb 28, 2015

    @nnutter
    Contributor

    I'm wondering if create the DB from the template has some Postgres lock contention, see genome/genome#524, which is causing HTTP timeouts.

  4. nnutter commented on Mar 1, 2015

    @nnutter
    Contributor

    I increased the timeouts to 30 seconds in genome-env and now I saw 4 out of ~12 model tests get this error:

    Got error response 502: Proxy Error at /usr/bin/test-db-database-create line 15

  5. brummett commented on Mar 2, 2015

    @brummett
    ContributorAuthor

    The original purpose of this issue was to start using the Mojo event loop in places where long-running handlers (like the old dump-database-load to copy DBs) would block the system from servicing other HTTP requests.

    The docs for Mojo::Pg shows how this might work. Look for Mojo::IOLoop->delay.

    Do you know if the timeouts we're getting are because it's taking too long to service a new HTTP connection (because it's still busy doing the last one) or to copy the database? The first problem would be fixed with this event loop thing, but not the second.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions