|
2 | 2 | title: Usage and cost estimator |
3 | 3 | weight: 200 |
4 | 4 | toc: true |
5 | | -draft: true |
6 | 5 | nd-docs: DOCS-000 |
7 | 6 | url: /nginxaas/google/billing/usage-and-cost-estimator/ |
8 | 7 | type: |
9 | 8 | - concept |
10 | 9 | --- |
11 | 10 |
|
12 | 11 | {{< raw-html >}} |
13 | | - |
14 | 12 | <link rel="stylesheet" href="/nginxaas-google/css/cost-calculator_v2.css"> |
15 | 13 | <div id="calculator"> |
16 | | - <h3 id="calculator-section-heading"> |
17 | | - Cost Estimation for Enterprise Plan |
18 | | - <button id="printButton">Print Estimate</button> |
19 | | - </h3> |
20 | | - <div class="section"> |
21 | | - <div class="form-section"> |
22 | | - <div class="form-section-content"> |
23 | | - <h4>1. Estimate NCU Usage </h4> |
24 | | - <div> |
25 | | - <div class="form-field"> |
26 | | - <label for="avgNewConnsPerSec"> |
27 | | - Average New Connections per Second |
28 | | - </label> |
29 | | - <input id="avgNewConnsPerSec" type="number" /> |
30 | | - </div> |
31 | | - <div class="form-field avg-conn-duration-container"> |
32 | | - <label for="avgConnDuration"> |
33 | | - Average Connection Duration |
34 | | - </label> |
35 | | - <input id="avgConnDuration" type="number" /> |
36 | | - </div> |
37 | | - <div class="form-field bandwidth-input-container"> |
38 | | - <label for="totalBandwidth"> |
39 | | - Total Processed Data |
40 | | - </label> |
41 | | - <input id="totalBandwidth" type="number" /> |
42 | | - </div> |
43 | | - </div> |
44 | | - </div> |
45 | | - <div class="form-section-content"> |
46 | | - <div class=form-section-footer> |
47 | | - <div class="totals"> |
48 | | - <span>NGINX Capacity Units Needed</span> |
49 | | - <span id="ncuEstimateValue">--</span> |
50 | | - <span> Sold in bundles of 10, with a minimum of 10</span> |
51 | | - </div> |
52 | | - <details id="ncu-usage-details"> |
53 | | - <summary>Show calculations</summary> |
54 | | - <div id="ncuEstimateDetails"> |
55 | | - <div class="math"> |
56 | | - <var id="ncuEstConnRate">x</var> new connections per second * |
57 | | - <var id="ncuEstConnDuration">y</var> average connection duration seconds = |
58 | | - <var id="ncuEstAvgConn">z</var> average concurrent connections |
59 | | - </div> |
60 | | - <pre class="math"> |
61 | | -Max( |
62 | | - <var id="ncuEstAvgConn2">x</var> concurrent connections / <span id="ncuEstConnsPerNcu"></span> Conns per NCU, |
63 | | - <var id="ncuEstConnRate2">y</var> connections per second / <span id="ncuEstConnsPerSecondPerNcu"></span> conns per second per NCU, |
64 | | - <var id="ncuEstDataRate">z</var> Mbps / <span id="ncuEstMbpsPerNcu"></span>Mbps per NCU |
65 | | -) = <var id="ncuEstMin1"></var> NCUs |
66 | | -</pre> |
67 | | - <div class="math"> |
68 | | - Usage needs at least <var id="ncuEstMin">x</var> NCUs, rounded to the nearest 10, with a minimum of 10 = <var id="ncuEstTotal">total</var> NCUs |
69 | | - </div> |
70 | | - </div> |
71 | | - </details> |
72 | | - </div> |
73 | | - </div> |
| 14 | + <h3 id="calculator-section-heading"> |
| 15 | + Cost Estimation for Enterprise Plan |
| 16 | + <button id="printButton">Print Estimate</button> |
| 17 | + </h3> |
| 18 | + |
| 19 | + <div class="section"> |
| 20 | + <div class="form-section"> |
| 21 | + <div class="form-section-content"> |
| 22 | + <h4 id="calculator-section-heading">Estimate Monthly Cost</h4> |
| 23 | + |
| 24 | + <div class="form-field"> |
| 25 | + <label for="numNcus">NCUs</label> |
| 26 | + <input id="numNcus" type="number" step="10" min="10" /> |
74 | 27 | </div> |
75 | | - <div class="form-section"> |
76 | | - <div class=form-section-content> |
77 | | - <h4 id="calculator-section-heading"> |
78 | | - 2. Estimate Monthly Cost |
79 | | - </h4> |
80 | | - <div class="form-field"> |
81 | | - <label for="region"> |
82 | | - Region |
83 | | - </label> |
84 | | - <select id="region"> |
85 | | - <!-- options appended from tiers data --> |
86 | | - </select> |
87 | | - </div> |
88 | | - <div class="form-field"> |
89 | | - <label for="numNcus"> |
90 | | - NCUs <span class="label-details">- value from usage estimate: <span id="numNcusEstVal"> - </span></span> |
91 | | - </label> |
92 | | - <input id="numNcus" type="number" step="10" min="10" /> |
93 | | - <span id="ncuValidation"></span> |
94 | | - </div> |
95 | | - <div class="form-field"> |
96 | | - <label for="numHours"> |
97 | | - Hours <span class="label-details">- used in a month</span> |
98 | | - </label> |
99 | | - <input id="numHours" type="number"/> |
100 | | - </div> |
101 | | - <div class="form-field"> |
102 | | - <label for="numListenPorts"> |
103 | | - Listen Ports <span class="label-details">- first 5 are included</span> |
104 | | - </label> |
105 | | - <input id="numListenPorts" type="number"/> |
106 | | - </div> |
107 | | - <div class="form-field"> |
108 | | - <label for="isWAF"> |
109 | | - Utilize WAF <span class="label-details"></span> |
110 | | - </label> |
111 | | - <input type="checkbox" id="isWAF" /> |
112 | | - </div> |
113 | | - </div> |
114 | | - <div class=form-section-content> |
115 | | - <div id="totals-section"> |
116 | | - <span class="total-text">Total Monthly Payment</span> |
117 | | - <span id="total-value" class="total-text">--</span> |
118 | | - <div class="subtitle"> |
119 | | - The standard Azure networking and bandwidth charges apply to NGINX deployments. |
120 | | - </div> |
121 | | - <details id="total-cost-details"> |
122 | | - <summary>Show calculations</summary> |
123 | | - <div class="details-content"> |
124 | | - <div class="details-section"> |
125 | | - <p class="math"> |
126 | | - <var id="cost-detail-hours"></var> hours * ((<var id="cost-detail-ncus"></var> NCUs * <var id="cost-detail-tier-cost"></var> per NCU per hour) + <var id="cost-detail-listen-ports"></var> additional listen ports * <var id="cost-detail-listen-ports-cost"></var>) = <var id="cost-detail-total"></var> |
127 | | - </br> |
128 | | - </p> |
129 | | - </div> |
130 | | - <div class="details-section"> |
131 | | - <table class="math" id="tiers-costs-table"> |
132 | | - <tr> |
133 | | - <th>Region</th> |
134 | | - <th>Tier</th> |
135 | | - <th>Cost per NCU/hr</th> |
136 | | - </tr> |
137 | | - <!-- tier costs data appended here --> |
138 | | - </table> |
139 | | - </div> |
140 | | - </div> |
141 | | - </details> |
142 | | - </div> |
| 28 | + |
| 29 | + <div class="form-field"> |
| 30 | + <label for="numHours"> |
| 31 | + Hours <span class="label-details">- used in a month</span> |
| 32 | + </label> |
| 33 | + <input id="numHours" type="number" /> |
| 34 | + </div> |
| 35 | + |
| 36 | + <div class="form-field"> |
| 37 | + <label for="dataProcessedGb">Data Processed (GB/month)</label> |
| 38 | + <input id="dataProcessedGb" type="number" /> |
| 39 | + </div> |
| 40 | + </div> |
| 41 | + |
| 42 | + <div class="form-section-content"> |
| 43 | + <div id="totals-section"> |
| 44 | + <span class="total-text">Total Monthly Payment</span> |
| 45 | + <span id="total-value" class="total-text">--</span> |
| 46 | + |
| 47 | + <details id="total-cost-details"> |
| 48 | + <summary>Show calculations</summary> |
| 49 | + <div class="details-content"> |
| 50 | + <div class="details-section"> |
| 51 | + <p class="math"> |
| 52 | + <var id="cost-detail-hours"></var> hours * ( |
| 53 | + <var id="cost-detail-fixed-hourly"></var> fixed/hr + |
| 54 | + <var id="cost-detail-ncus"></var> NCUs * <var id="cost-detail-ncu-hourly"></var> per NCU/hr |
| 55 | + ) |
| 56 | + + <var id="cost-detail-data-gb"></var> GB * <var id="cost-detail-data-pergb"></var> per GB |
| 57 | + = <var id="cost-detail-total"></var> |
| 58 | + </p> |
| 59 | + </div> |
143 | 60 | </div> |
| 61 | + </details> |
144 | 62 | </div> |
| 63 | + </div> |
145 | 64 | </div> |
| 65 | + </div> |
146 | 66 | </div> |
147 | | -<script type="module" src="/nginxaas-google/js/cost-calculator_v2.js"></script> |
| 67 | + |
| 68 | +<script type="module" src="/nginxaas-google/js/cost-calculator_gc.js"></script> |
| 69 | + |
148 | 70 | {{< /raw-html >}} |
0 commit comments