Repository navigation
Expand file tree
/
Copy pathregion.tt2
More file actions
189 lines (179 loc) · 7.86 KB
/
Copy pathregion.tt2
File metadata and controls
189 lines (179 loc) · 7.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[%- PROCESS header.tt2 -%]
<h1>
Google Cloud Region [% region.name %]
[% IF region.regionLocation %] <small class="text-muted">[% region.regionLocation %]</small>[% END %]
<small>[% badgeLowCo2Region(region) %]</small>
</h1>
<blockquote class="blockquote">
<p>
Out of a total of [% instances.size %] Google Compute Engine machine types,
<mark>[% instances_in_region.size %] machine types</mark> are available in Google Cloud region [% region.name %]
([% countryFlag(region.regionLocationCountryCode) %]
[% IF region.regionLocationLong %][% region.regionLocationLong %][% ELSIF region.regionLocation %][% region.regionLocation %][% END %]).
</p>
</blockquote>
<p class="d-grid gap-2 d-lg-block">
<a class="btn btn-success" href="/grid.html?region=[% region.name %]" role="button">✅ Instance Picker with filter on region [% region.name %]</a>
[% IF region.regionLat && region.regionLng %]<a class="btn btn-secondary" href="https://www.google.com/maps/search/?api=1&query=[% region.regionLat %]%2C[% region.regionLng %]" role="button">🗺️ Show region [% region.name %] on Google Maps</a>[% END %]
</p>
<div class="row">
<div class="col-xxl-6">
<h2 id="disk-types">Persistent Disk Types</h2>
<p>Costs and pricing for Google Compute disk types in Google Cloud region [% region.name %][% IF region.regionLocation %] ([% region.regionLocation %])[% END %].</p>
<div class="table-responsive">
<table class="table table-hover table-striped table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th title="Price per GB and month">1 GB</th>
<th title="Minimum capacity per disk">Min. Disk Size</th>
<th title="Price per minimum disk size and month">Min. Month</th>
</tr>
</thead>
<tbody>
[%
FOREACH disk IN disks_in_region;
minDiskSize = 10;
IF disk.name == 'pd-extreme'; minDiskSize = 500; END;
IF disk.name == 'local-ssd'; minDiskSize = 375; END;
%]
<tr>
<td>[% disk.name %]</td>
<td>[% disk.description %]</td>
[% IF disk.monthGb %]
<td class="currency" title="Costs for 1 GB [% disk.name %] persistent disk per month in region [% region.name %]: [% disk.monthGb %] USD">[% disk.monthGb %]</td>
<td title="Minimum capacity per [% disk.name %] persistent disk: [% minDiskSize %] GB">[% minDiskSize %] GB</td>
<td class="currency" title="Costs for [% minDiskSize %] GB [% disk.name %] persistent disk per month in region [% region.name %]: [% disk.monthGb*minDiskSize FILTER format("%.2f") %] USD">[% disk.monthGb*minDiskSize FILTER format("%.2f") %]</td>
[% ELSE %]
<td>???</td>
<td>[% minDiskSize %] GB</td>
<td>???</td>
[% END %]
</tr>
[% END %]
</tbody>
</table>
</div>
</div> <!-- // col -->
<div class="col-xxl-6">
<h2 id="region-carbon">Carbon Data</h2>
<p>Higher CFE% will emit lower carbon emissions.</p>
<div class="table-responsive">
<table class="table table-hover table-striped table-bordered">
<tr>
<th>Google CFE%</th>
<td>[% IF region.regionCfe %][% region.regionCfe %] %[% ELSE %]?[% END %]</td>
</tr>
<tr>
<th>Grid carbon intensity (gCO2eq/kWh)</th>
<td>[% IF region.regionCo2Kwh %][% region.regionCo2Kwh %][% ELSE %]?[% END %]</td>
</tr>
<tr>
<th>Google Cloud net operational GHG emissions</th>
<td>0</td>
</tr>
</table>
</div><!-- // table-responsive -->
</div> <!-- // col -->
</div> <!-- // row -->
<h2 id="machine-types">Machine Types in [% region.name %]</h2>
<p>Costs and pricing for Google Compute Engine machine types in Google Cloud region [% region.name %][% IF region.regionLocation %] ([% region.regionLocation %])[% END %].</p>
<div class="table-responsive">
<table
class="table table-sm table-hover table-bordered"
data-classes="table table-sm table-hover table-bordered"
data-toggle="table"
data-sort-name="vcpu"
data-sort-order="asc"
data-sortable="true"
data-sticky-header="true"
>
<thead>
<tr>
<th scope="col" colspan="6">Machine Type</th>
<th scope="col">Zones</th>
<th scope="col" colspan="5">Costs</th>
<th scope="col" colspan="3">OS</th>
</tr>
<tr>
<th scope="row" data-sortable="true">Name</th>
<th scope="col" data-field="vcpu" data-sortable="true">vCPU</th>
<th scope="col" data-sortable="true">Base Clock</th>
<th scope="col" data-sortable="true">Memory</th>
<th scope="col"></th>
<th scope="col" title="CPU Platforms">#Platf.</th>
<th scope="col">#</th>
<!-- Costs -->
<th scope="col" data-sortable="true">Hour</th>
<th scope="col" data-sortable="true">Spot</th>
<th scope="col" data-sortable="true">Month</th>
<th scope="col" data-sortable="true">1Y CUD</th>
<th scope="col" data-sortable="true">3Y CUD</th>
<!-- OS -->
<th scope="col">SLES</th>
<th scope="col">RHEL</th>
<th scope="col">Windows</th>
</tr>
</thead>
<tbody>
[% FOREACH instance IN instances_in_region %]
<tr>
<td>
<a
href="/[% region.name %]/[% instance.name %].html"
title="Google Compute Engine machine type [% instance.name %] in Google Cloud region [% region.name %]">
[% instance.name %]
</a>
</td>
<td class="text-nowrap">[% instance.vCpus %][% badgeSharedCpu(instance) %]</td>
<td class="frequency" title="CPU base clock frequency: [% instance.cpuBaseClock %] GHz">[% instance.cpuBaseClock %]</td>
<td class="memory" title="Random-access memory: [% instance.memoryGB %] GB">[% instance.memoryGB %]</td>
<td>
[% badgeCpuManufactur(instance) %]
[% badgeGpu(instance) %]
[% badgeSap(instance) %]
[% badgeHana(instance) %]
[% badgeSpot(instance) %]
[% badgeSud(instance) %]
[% badgeLocalSsd(instance) %]
</td>
<td [% IF instance.availableCpuPlatformCount < instance.cpuPlatformCount %]class="table-warning"[% END%] title="Available CPU platforms for machine type [% instance.name %] in region [% region.name %]">[% IF instance.availableCpuPlatformCount %][% instance.availableCpuPlatformCount %][% ELSE %]<span class="text-muted">?</span>[% END %]</td>
<td title="Available in [% instance.zoneCount %] zone[% IF instance.zoneCount > 1 %]s[% END %]">[% instance.zoneCount %]</td>
<!-- Costs -->
<td class="currency" title="[% instance.name %] costs per hour: [% instance.hour %] USD">[% instance.hour %]</td>
<td class="currency" title="[% instance.name %] costs per hour with spot provisioning model (Spot VM): [% instance.hourSpot %] USD">[% instance.hourSpot %]</td>
<td class="currency" title="[% instance.name %] costs per month: [% instance.month %] USD[% IF instance.sud %] with sustained use discounts (SUD) applied[% END %]">[% instance.month %]</td>
<td class="currency" title="[% instance.name %] costs per month w. 1Y CUD: [% instance.month1yCud %] USD">[% instance.month1yCud %]</td>
<td class="currency" title="[% instance.name %] costs per month w. 3Y CUD: [% instance.month3yCud %] USD">[% instance.month3yCud %]</td>
<!-- OS -->
<td class="currency" title="[% instance.name %] license costs for SUSE Linux Enterprise Server: [% instance.monthSles %] USD">[% instance.monthSles %]</td>
<td class="currency" title="[% instance.name %] license costs for Red Hat Enterprise Linux: [% instance.monthRhel %] USD">[% instance.monthRhel %]</td>
<td class="currency" title="[% instance.name %] license costs for Microsoft Windows Server: [% instance.monthWindows %] USD">[% instance.monthWindows %]</td>
</tr>
</tr>
[% END %]
</tbody>
</table>
</div><!-- table-responsive -->
[%-
id = region.id - 1
prev = id - 1
next = id + 1
-%]
<nav class="mt-2">
<ul class="pagination justify-content-center">
[% IF id > 0 %]
<li class="page-item"><a class="page-link" href="/[% regions.$prev.name %].html">← [% regions.$prev.name %]</a></li>
[% ELSE %]
<li class="page-item disabled"><span class="page-link">←</span></li>
[% END %]
<li class="page-item active" aria-current="page"><span class="page-link">[% region.name %]</span></li>
[% IF regions.$next.id %]
<li class="page-item"><a class="page-link" href="/[% regions.$next.name %].html">[% regions.$next.name %] →</a></li>
[% ELSE %]
<li class="page-item disabled"><span class="page-link">→</span></li>
[% END %]
</ul>
</nav>
[% PROCESS footer.tt2 %]