Skip to content

Commit

Permalink
feat(ec2): Bump url_max_timeout to 240s from 120s. (#5565)
Browse files Browse the repository at this point in the history
Initialization of IMDS is periodically exceeding the 120s limit on
instance launch. Increase the timeout to allow for this variance.
    
Update docs to reflect change.
  • Loading branch information
halfdime-code authored Sep 6, 2024
1 parent d8fd56d commit 1a6fd6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloudinit/sources/DataSourceEc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class DataSourceEc2(sources.DataSource):
]

# Setup read_url parameters per get_url_params.
url_max_wait = 120
url_max_wait = 240
url_timeout = 50

_api_token = None # API token for accessing the metadata service
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/cloud-config-datasources.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ datasource:
# The length in seconds to wait before giving up on the metadata
# service. The actual total wait could be up to
# len(resolvable_metadata_urls)*timeout
max_wait : 120
max_wait : 240

#metadata_url: a list of URLs to check for metadata services
metadata_urls:
Expand Down
1 change: 1 addition & 0 deletions tools/.github-cla-signers
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ garzdin
giggsoff
gilbsgilbs
glyg
halfdime-code
hamalq
hcartiaux
holmanb
Expand Down

0 comments on commit 1a6fd6f

Please sign in to comment.