Skip to content

Commit

Permalink
Merge branch 'alexmclarty-change_link_from_t2_instance_to_burstable_i…
Browse files Browse the repository at this point in the history
…nstances'
  • Loading branch information
EverettBerry committed Jan 10, 2024
2 parents adb4c57 + 7a5ae57 commit 2fa5c25
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def translate_platform_name(operating_system, preinstalled_software):
return platform



# Translate between the API and what is used locally
def translate_reserved_terms(term_attributes):
lease_contract_length = term_attributes.get("LeaseContractLength")
Expand Down Expand Up @@ -308,7 +307,11 @@ def add_spot_pricing(imap):
}

except botocore.exceptions.ClientError:
print('WARNING: Spot region "{}" not enabled. Falling back to spot advisor.'.format(region))
print(
'WARNING: Spot region "{}" not enabled. Falling back to spot advisor.'.format(
region
)
)
pass


Expand Down
4 changes: 2 additions & 2 deletions in/index.html.mako
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
% if inst['base_performance']:
<span sort="${inst['base_performance']}">
<abbr title="For T2 instances, the 100% unit represents a High Frequency Intel Xeon Processors with Turbo up to 3.3GHz.">
<a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html" target="_blank">Base performance:
<a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html" target="_blank">Base performance:
${"%g" % (inst['base_performance'] * 100,)}%
</a></abbr>
</span>
Expand All @@ -314,7 +314,7 @@
${inst['vCPU']} vCPUs
% if inst['burst_minutes']:
<abbr title="Given that a CPU Credit represents the performance of a full CPU core for one minute, the maximum credit balance is converted to CPU burst minutes per day by dividing it by the number of vCPUs.">
<a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html" target="_blank">
<a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html" target="_blank">
for a
${"%gh %gm" % divmod(inst['burst_minutes'], 60)}
burst
Expand Down
2 changes: 1 addition & 1 deletion render.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def render(data_file, template_file, destination_file, detail_pages=True):

if __name__ == "__main__":
sitemap = []
sitemap.extend(render("www/instances.json", "in/index.html.mako", "www/index.html", False))
sitemap.extend(render("www/instances.json", "in/index.html.mako", "www/index.html"))
sitemap.extend(
render("www/rds/instances.json", "in/rds.html.mako", "www/rds/index.html")
)
Expand Down
4 changes: 2 additions & 2 deletions scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,14 +805,14 @@ def add_gpu_info(instances):
},
"g5.xlarge": {
"gpu_model": "NVIDIA A10G",
"compute_capability": 8.6,
"compute_capability": 8.6,
"gpu_count": 1,
"cuda_cores": 9616,
"gpu_memory": 24,
},
"g5.2xlarge": {
"gpu_model": "NVIDIA A10G",
"compute_capability": 8.6,
"compute_capability": 8.6,
"gpu_count": 1,
"cuda_cores": 9616,
"gpu_memory": 24,
Expand Down

0 comments on commit 2fa5c25

Please sign in to comment.