Skip to content

RemoteRunAwsService adds unnecessary delay to Island startup #1636

@mssalvatore

Description

@mssalvatore

When Monkey Island starts, it checks to see if it's running on an AWS instance. When it performs this check, it makes 2 calls, each with a 2-second timeout. In the case where the Island is not running on an AWS instance, this adds approximately 2-4 seconds to the startup of the Island. For users, this is a mild inconvenience. For developers, it's a full-blown annoyance.

Find a way to eliminate this delay. Possible solutions might be:

  1. Lazy-load the AwsInstance object in RemoteRunAwsService, so that it's not actually created until it's need.
  2. Initialize the RemoteRunAwsService on a separate thread so that it does not delay the rest of the startup process.

Note: This doesn't seem to be an issue while running from source on Windows (with pycharm) but does manifest when run from the MSI. It also manifests while running from source on Linux.

Tasks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions