Skip to content

Commit

Permalink
optimize wait times for how long it takes Amazon to launch a server
Browse files Browse the repository at this point in the history
test benchmarks:

    small server
        launched in us-east-1
            69 seconds with a minimal backup
            40 seconds without a backup

        launched in eu-west-1
            53 seconds

    micro server
        launched in us-east-1
            47 seconds without a backup
            66 with a minimal backup
  • Loading branch information
lirazsiri committed Aug 5, 2011
1 parent a8936bb commit 3d32331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudtask/_hub.py
Expand Up @@ -20,7 +20,7 @@ class Hub:
class Error(Exception): class Error(Exception):
pass pass


def __init__(self, apikey, wait_first=5, wait_status=5, wait_retry=5, retries=2): def __init__(self, apikey, wait_first=30, wait_status=10, wait_retry=5, retries=2):


self.apikey = apikey self.apikey = apikey
self.wait_first = wait_first self.wait_first = wait_first
Expand Down

0 comments on commit 3d32331

Please sign in to comment.