joyent-cloud-pricing 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2111e58865d22fde24d32147061b876f61abd621
4
- data.tar.gz: 8fc86f5970562d9758afe1638f58095022cc5ffb
3
+ metadata.gz: 9e21a4eda1ba831465a4959fbb54890ba6055193
4
+ data.tar.gz: 0f572f94cc18c4c4a923ec3b968c291497236c25
5
5
  SHA512:
6
- metadata.gz: d9f9cf9eefc2c6f429830316b550ee2705441b5697a58bbffe2f47caa0bfb5304ae758748c1c120e1e55b1c50225b3ad3807282534d896ea9c889a6e7313aa5f
7
- data.tar.gz: 4dbe5bc3c410a42f14f722fc8057a6088c27db829101d1ebfa4169141d11caa4d499bf4b338d761391fc45e74a66743165dacf08bae637d05ded22f030e5eac3
6
+ metadata.gz: 2869b73f42a968ae8197a46c52ad8f8945090876c7801877df14e9e1512622700e25b27d88ba5afbdc9466f21b90560ab6d635203b96b643f6e49432e889898b
7
+ data.tar.gz: e16a073a306ada4bd9f2a1bc3c0aed3e8980c7e4afd6f3483dcd045908d8da07f7ba0f7f5dd8c259779dee44396f1c245e7e486877415dea410b61815b4c9fe5
data/README.md CHANGED
@@ -150,6 +150,22 @@ custom:
150
150
  The structure is the same as in the main file ```joyent_pricing.yml```, and the contents will
151
151
  simply be merged on top of Joyent's standard pricing, so you can even overwrite existing flavors.
152
152
 
153
+ ### On Demand Discounts
154
+
155
+ If (hypothetically speaking) you were able to negotiate a flat percentage discount off the on-demand
156
+ rates, you could add the following to the commit pricing file:
157
+
158
+ ```yaml
159
+ defaults: &defaults
160
+ years: 1
161
+
162
+ discount:
163
+ type: :percent
164
+ value: 5
165
+ ```
166
+
167
+ This would apply %5 discount to all on-demand rates. Any reserve pricing would not be affected.
168
+
153
169
  ### Reporter
154
170
 
155
171
  This module is used by ```knife joyent server price``` plugin to calculate pricing with and without
@@ -1,90 +1,181 @@
1
1
  ---
2
- :date: '2014-03-30 00:02:20 -0700'
2
+ :date: '2015-06-25 10:44:38 -0700'
3
3
  :pricing:
4
- :g3-standard-0.625-smartos:
5
- :name: g3-standard-0.625-smartos
4
+ :t4-standard-128M:
5
+ :name: t4-standard-128M
6
6
  :os: SmartOS
7
- :cost: 0.02
8
- :cpus: 0.15
9
- :disk: 20
10
- :ram: 0.625
11
- :g3-standard-1.75-smartos:
12
- :name: g3-standard-1.75-smartos
7
+ :cost: 0.003
8
+ :cpus: 0.0625
9
+ :disk: 3
10
+ :ram: 0.128
11
+ :t4-standard-256M:
12
+ :name: t4-standard-256M
13
13
  :os: SmartOS
14
- :cost: 0.056
15
- :cpus: 1.0
16
- :disk: 56
17
- :ram: 1.75
18
- :g3-standard-3.75-smartos:
19
- :name: g3-standard-3.75-smartos
14
+ :cost: 0.007
15
+ :cpus: 0.125
16
+ :disk: 6
17
+ :ram: 0.256
18
+ :t4-standard-512M:
19
+ :name: t4-standard-512M
20
20
  :os: SmartOS
21
- :cost: 0.12
21
+ :cost: 0.013
22
+ :cpus: 0.25
23
+ :disk: 12
24
+ :ram: 0.512
25
+ :t4-standard-1G:
26
+ :name: t4-standard-1G
27
+ :os: Windows Enterprise
28
+ :cost: 0.226
29
+ :cpus: 0.5
30
+ :disk: 25
31
+ :ram: 1.0
32
+ :t4-standard-2G:
33
+ :name: t4-standard-2G
34
+ :os: Windows Enterprise
35
+ :cost: 0.253
22
36
  :cpus: 1.0
23
- :disk: 123
24
- :ram: 3.75
25
- :g3-standard-7.5-smartos:
26
- :name: g3-standard-7.5-smartos
27
- :os: SmartOS
28
- :cost: 0.24
37
+ :disk: 50
38
+ :ram: 2.0
39
+ :t4-standard-4G:
40
+ :name: t4-standard-4G
41
+ :os: Windows Enterprise
42
+ :cost: 0.305
29
43
  :cpus: 2.0
30
- :disk: 738
31
- :ram: 7.5
32
- :g3-standard-15-smartos:
33
- :name: g3-standard-15-smartos
44
+ :disk: 100
45
+ :ram: 4.0
46
+ :t4-standard-8G:
47
+ :name: t4-standard-8G
34
48
  :os: SmartOS
35
- :cost: 0.48
49
+ :cost: 0.21
36
50
  :cpus: 4.0
37
- :disk: 1467
38
- :ram: 15.0
39
- :g3-standard-30-smartos:
40
- :name: g3-standard-30-smartos
51
+ :disk: 200
52
+ :ram: 8.0
53
+ :t4-standard-16G:
54
+ :name: t4-standard-16G
41
55
  :os: SmartOS
42
- :cost: 0.96
56
+ :cost: 0.42
43
57
  :cpus: 8.0
44
- :disk: 1683
45
- :ram: 30.0
46
- :g3-standard-48-smartos:
47
- :name: g3-standard-48-smartos
48
- :os: SmartOS
49
- :cost: 1.536
50
- :cpus: 12.0
51
- :disk: 1683
52
- :ram: 48.0
53
- :g3-standard-64-smartos:
54
- :name: g3-standard-64-smartos
58
+ :disk: 400
59
+ :ram: 16.0
60
+ :t4-standard-32G:
61
+ :name: t4-standard-32G
55
62
  :os: SmartOS
56
- :cost: 2.048
63
+ :cost: 0.84
57
64
  :cpus: 16.0
58
- :disk: 2100
65
+ :disk: 800
66
+ :ram: 32.0
67
+ :t4-standard-64G:
68
+ :name: t4-standard-64G
69
+ :os: Windows Standard
70
+ :cost: 1.74
71
+ :cpus: 32.0
72
+ :disk: 1600
59
73
  :ram: 64.0
60
- :g3-standard-80-smartos:
61
- :name: g3-standard-80-smartos
62
- :os: SmartOS
63
- :cost: 2.56
64
- :cpus: 20.0
65
- :disk: 2625
66
- :ram: 80.0
67
- :g3-standard-96-smartos:
68
- :name: g3-standard-96-smartos
69
- :os: SmartOS
70
- :cost: 3.072
71
- :cpus: 24.0
72
- :disk: 3150
74
+ :t4-standard-96G:
75
+ :name: t4-standard-96G
76
+ :os: Windows Enterprise
77
+ :cost: 2.72
78
+ :cpus: 48.0
79
+ :disk: 2300
73
80
  :ram: 96.0
74
- :g3-standard-128-smartos-cc:
75
- :name: g3-standard-128-smartos-cc
76
- :os: SmartOS
77
- :cost: 4.096
78
- :cpus: 32.0
79
- :disk: 4200
81
+ :t4-standard-128G:
82
+ :name: t4-standard-128G
83
+ :os: Windows Enterprise
84
+ :cost: 3.56
85
+ :cpus: 64.0
86
+ :disk: 3100
80
87
  :ram: 128.0
88
+ :t4-standard-160G:
89
+ :name: t4-standard-160G
90
+ :os: Windows Enterprise
91
+ :cost: 4.4
92
+ :cpus: 80.0
93
+ :disk: 3900
94
+ :ram: 160.0
95
+ :t4-standard-196G:
96
+ :name: t4-standard-196G
97
+ :os: Windows Enterprise
98
+ :cost: 5.24
99
+ :cpus: 96.0
100
+ :disk: 4700
101
+ :ram: 196.0
102
+ :t4-standard-224G:
103
+ :name: t4-standard-224G
104
+ :os: SmartOS
105
+ :cost: 5.88
106
+ :cpus: 112.0
107
+ :disk: 5500
108
+ :ram: 224.0
109
+ :g3-highmemory-17.125-kvm:
110
+ :name: g3-highmemory-17.125-kvm
111
+ :os: Linux
112
+ :cost: 0.409
113
+ :cpus: 2.0
114
+ :disk: 420
115
+ :ram: 17.13
116
+ :g3-highmemory-34.25-kvm:
117
+ :name: g3-highmemory-34.25-kvm
118
+ :os: Linux
119
+ :cost: 0.817
120
+ :cpus: 4.0
121
+ :disk: 843
122
+ :ram: 34.25
123
+ :g3-highmemory-68.375-kvm:
124
+ :name: g3-highmemory-68.375-kvm
125
+ :os: Linux
126
+ :cost: 1.63
127
+ :cpus: 8.0
128
+ :disk: 1122
129
+ :ram: 68.38
130
+ :g3-highcpu-1.75-kvm:
131
+ :name: g3-highcpu-1.75-kvm
132
+ :os: Linux
133
+ :cost: 0.127
134
+ :cpus: 2.0
135
+ :disk: 75
136
+ :ram: 1.75
137
+ :g3-highcpu-7-kvm:
138
+ :name: g3-highcpu-7-kvm
139
+ :os: Linux
140
+ :cost: 0.508
141
+ :cpus: 7.0
142
+ :disk: 263
143
+ :ram: 7.0
144
+ :g3-highio-15-kvm:
145
+ :name: g3-highio-15-kvm
146
+ :os: Linux
147
+ :cost: 0.76
148
+ :cpus: 2.0
149
+ :disk: 360
150
+ :ram: 15.0
151
+ :g3-highio-30-kvm:
152
+ :name: g3-highio-30-kvm
153
+ :os: Linux
154
+ :cost: 1.52
155
+ :cpus: 4.0
156
+ :disk: 725
157
+ :ram: 30.0
158
+ :g3-highio-60.5-kvm:
159
+ :name: g3-highio-60.5-kvm
160
+ :os: Linux
161
+ :cost: 3.067
162
+ :cpus: 8.0
163
+ :disk: 1452
164
+ :ram: 60.5
165
+ :g3-highstorage-32-kvm:
166
+ :name: g3-highstorage-32-kvm
167
+ :os: Linux
168
+ :cost: 0.863
169
+ :cpus: 8.0
170
+ :disk: 7680
171
+ :ram: 32.0
81
172
  :g3-highmemory-17.125-smartos:
82
173
  :name: g3-highmemory-17.125-smartos
83
174
  :os: SmartOS
84
175
  :cost: 0.409
85
176
  :cpus: 2.0
86
177
  :disk: 420
87
- :ram: 17.125
178
+ :ram: 17.13
88
179
  :g3-highmemory-34.25-smartos:
89
180
  :name: g3-highmemory-34.25-smartos
90
181
  :os: SmartOS
@@ -98,7 +189,7 @@
98
189
  :cost: 1.63
99
190
  :cpus: 8.0
100
191
  :disk: 1122
101
- :ram: 68.375
192
+ :ram: 68.38
102
193
  :g3-highmemory-144-smartos:
103
194
  :name: g3-highmemory-144-smartos
104
195
  :os: SmartOS
@@ -125,7 +216,7 @@
125
216
  :os: SmartOS
126
217
  :cost: 0.508
127
218
  :cpus: 7.0
128
- :disk: 262
219
+ :disk: 263
129
220
  :ram: 7.0
130
221
  :g3-highcpu-16-smartos:
131
222
  :name: g3-highcpu-16-smartos
@@ -204,108 +295,3 @@
204
295
  :cpus: 32.0
205
296
  :disk: 30720
206
297
  :ram: 128.0
207
- :g3-standard-0.625-kvm:
208
- :name: g3-standard-0.625-kvm
209
- :os: Linux
210
- :cost: 0.02
211
- :cpus: 0.15
212
- :disk: 20
213
- :ram: 0.625
214
- :g3-standard-1.75-kvm:
215
- :name: g3-standard-1.75-kvm
216
- :os: Linux
217
- :cost: 0.056
218
- :cpus: 1.0
219
- :disk: 56
220
- :ram: 1.75
221
- :g3-standard-3.75-kvm:
222
- :name: g3-standard-3.75-kvm
223
- :os: Linux
224
- :cost: 0.12
225
- :cpus: 1.0
226
- :disk: 123
227
- :ram: 3.75
228
- :g3-standard-7.5-kvm:
229
- :name: g3-standard-7.5-kvm
230
- :os: Linux
231
- :cost: 0.24
232
- :cpus: 2.0
233
- :disk: 738
234
- :ram: 7.5
235
- :g3-standard-15-kvm:
236
- :name: g3-standard-15-kvm
237
- :os: Linux
238
- :cost: 0.48
239
- :cpus: 4.0
240
- :disk: 1467
241
- :ram: 15.0
242
- :g3-standard-30-kvm:
243
- :name: g3-standard-30-kvm
244
- :os: Linux
245
- :cost: 0.96
246
- :cpus: 8.0
247
- :disk: 1683
248
- :ram: 30.0
249
- :g3-highmemory-17.125-kvm:
250
- :name: g3-highmemory-17.125-kvm
251
- :os: Linux
252
- :cost: 0.409
253
- :cpus: 2.0
254
- :disk: 420
255
- :ram: 17.125
256
- :g3-highmemory-34.25-kvm:
257
- :name: g3-highmemory-34.25-kvm
258
- :os: Linux
259
- :cost: 0.817
260
- :cpus: 4.0
261
- :disk: 843
262
- :ram: 34.25
263
- :g3-highmemory-68.375-kvm:
264
- :name: g3-highmemory-68.375-kvm
265
- :os: Linux
266
- :cost: 1.63
267
- :cpus: 8.0
268
- :disk: 1122
269
- :ram: 68.375
270
- :g3-highcpu-1.75-kvm:
271
- :name: g3-highcpu-1.75-kvm
272
- :os: Linux
273
- :cost: 0.127
274
- :cpus: 2.0
275
- :disk: 75
276
- :ram: 1.75
277
- :g3-highcpu-7-kvm:
278
- :name: g3-highcpu-7-kvm
279
- :os: Linux
280
- :cost: 0.508
281
- :cpus: 7.0
282
- :disk: 262
283
- :ram: 7.0
284
- :g3-highio-15-kvm:
285
- :name: g3-highio-15-kvm
286
- :os: Linux
287
- :cost: 0.76
288
- :cpus: 2.0
289
- :disk: 360
290
- :ram: 15.0
291
- :g3-highio-30-kvm:
292
- :name: g3-highio-30-kvm
293
- :os: Linux
294
- :cost: 1.52
295
- :cpus: 4.0
296
- :disk: 725
297
- :ram: 30.0
298
- :g3-highio-60.5-kvm:
299
- :name: g3-highio-60.5-kvm
300
- :os: Linux
301
- :cost: 3.067
302
- :cpus: 8.0
303
- :disk: 1452
304
- :ram: 60.5
305
- :g3-highstorage-32-kvm:
306
- :name: g3-highstorage-32-kvm
307
- :os: Linux
308
- :cost: 0.863
309
- :cpus: 8.0
310
- :disk: 7680
311
- :ram: 32.0
@@ -6,17 +6,17 @@ Joyent Pricing Calculator: https://github.com/kigster/joyent-cloud-pricing
6
6
  were excluded from calculations. You could add them to the "custom"
7
7
  section of your reserve pricing file, and specify their cost.
8
8
 
9
- Total # of zones with unknown flavors: <%= sprintf("%20d", unknown_zone_total).red %>
9
+ Total # of instances with unknown flavors: <%= sprintf("%20d", unknown_zone_total).red %>
10
10
  List of unknown flavors below:
11
11
 
12
12
  <%= unknown_zones_for_print.red %>
13
13
  <%= separator %>
14
14
 
15
15
  <%- end -%>
16
- ZONE COUNTS:
17
- Total # of zones <%= sprintf("%20d", zones_in_use.size).cyan %>
16
+ INSTANCE COUNTS:
17
+ Total # of instances <%= sprintf("%20d", zones_in_use.size).cyan %>
18
18
  <%- if have_commit_pricing? -%>
19
- Total # of reserved zones <%= sprintf("%20d", commit.total_zones).green %>
19
+ Total # of reserved instances <%= sprintf("%20d", commit.total_zones).green %>
20
20
  <%- if have_over_reserved_zones? -%>
21
21
  Total # of reserved but absent flavors <%= value = sprintf("%20d", over_reserved_zone_counts.size || 0); value == "0" ? value.blue : value.red %>
22
22
  <%= over_reserved_zones_for_print.magenta %>
@@ -42,7 +42,7 @@ MONTHLY COSTS:
42
42
  <%- end -%>
43
43
  On demand monthly <%= format_price(monthly_overages_price, 20).yellow %>
44
44
  <%- if have_commit_pricing? -%>
45
- Zones under reserve pricing <%= format_price(commit.monthly_price, 20).green %>
45
+ Instances under reserve pricing <%= format_price(commit.monthly_price, 20).green %>
46
46
  <%- end -%>
47
47
  <%- if have_commit_pricing? -%>
48
48
  <%= "___________".cyan %>
@@ -1,7 +1,7 @@
1
1
  module Joyent
2
2
  module Cloud
3
3
  module Pricing
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joyent-cloud-pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Gredeskoul
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  version: '0'
191
191
  requirements: []
192
192
  rubyforge_project:
193
- rubygems_version: 2.2.0
193
+ rubygems_version: 2.2.2
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: Tools for calculating monthly and yearly price of infrastructure hosted on