From bf825ea2d211607d10463c8cb82c51de6f1f3203 Mon Sep 17 00:00:00 2001
From: Phillip Jensen
- CPU/h
-
-
- Env/h
+ Monthly cost USD
+
- Start price
+ Monthly cost GLM
@@ -314,6 +312,11 @@ export const ProviderList = ({ endpoint, initialData, enableShowingOfflineNodes
v{provider.version}
+ {provider.runtimes.vm?.is_overpriced ? (
+
+ Overpriced
+
+ ) : null}
@@ -358,24 +361,13 @@ export const ProviderList = ({ endpoint, initialData, enableShowingOfflineNodes
- {priceHashMapOrDefault(provider, "golem.usage.cpu_sec")}{" "}
- GLM
+ {RoundingFunction(provider.runtimes.vm?.monthly_price_usd)}{" "}
+ $
- {priceHashMapOrDefault(provider, "golem.usage.duration_sec")}{" "}
- GLM
-
-
-
-
- {
- (
- provider.runtimes.vm?.properties["golem.com.pricing.model.linear.coeffs"] ||
- provider.runtimes.wasmtime.properties["golem.com.pricing.model.linear.coeffs"]
- ).slice(-1)[0]
- }{" "}
+ {RoundingFunction(provider.runtimes.vm?.monthly_price_glm)}{" "}
GLM
diff --git a/pages/network/provider/[node_id].tsx b/pages/network/provider/[node_id].tsx
index a0b7a42..513f0e4 100644
--- a/pages/network/provider/[node_id].tsx
+++ b/pages/network/provider/[node_id].tsx
@@ -131,6 +131,7 @@ export const ProviderDetailed = ({ initialData, initialIncome }: { initialData:
v{nodeData[0].version}
+
+ Comparing this node against an AWS {nodeData[0].runtimes.vm?.overpriced_compared_to.name} instance with{" "}
+ {nodeData[0].runtimes.vm?.overpriced_compared_to.vcpu} cores and{" "}
+ {nodeData[0].runtimes.vm?.overpriced_compared_to.memory} GB memory shows that
+
+ this provider is most likely overpriced. We suggest configuring a pricing setting of: CPU/h 0 GLM, Env/h{" "}
+ {nodeData[0].runtimes.vm?.suggest_env_per_hour_price} GLM, Start 0 GLM.
which equals the
+ monthly USD price (${nodeData[0].runtimes.vm?.overpriced_compared_to.price_usd}) of the{" "}
+ {nodeData[0].runtimes.vm?.overpriced_compared_to.name} instance
+
+
This nodes monthly USD cost is ${nodeData[0].runtimes.vm?.monthly_price_usd}
+
+ Comparing this node against an AWS {nodeData[0].runtimes.vm?.cheaper_than.name} instance with{" "}
+ {nodeData[0].runtimes.vm?.cheaper_than.vcpu} cores and {nodeData[0].runtimes.vm?.cheaper_than.memory} GB
+ memory shows that
+
+ this provider is more cost-effective. The Monthly USD price of the AWS{" "}
+ {nodeData[0].runtimes.vm?.cheaper_than.name} instance is $(
+ {nodeData[0].runtimes.vm?.cheaper_than.price_usd * 730}).
+
This node's monthly USD cost is ${nodeData[0].runtimes.vm?.monthly_price_usd}, which is roughly{" "}
+ {RoundingFunction(nodeData[0].runtimes.vm?.times_cheaper)} times cheaper compared to AWS.
+