sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

Make it clear WHY some balance is required to start a compute server #7338

Open novoselt opened 8 months ago

novoselt commented 8 months ago

At the moment users are rightfully confused:

"I have $2.36 in my balance and when I try to start the server named "Cheap Test Server" which costs $0.02/hour of operation, I get an error that states "You do not have enough credits to spend up to $2.50 since your balance is $2.36, and this would cause your balance to go below your allowed minimum of $0.00. Please add at least $2.50 to your account. There is a minimum payment of $2.50."

The error message should state exactly the balance required to start the server. Is it a flat amount? does it depend on the server configuration? I think it should cover at least one hour of run-time and perhaps some network traffic. I think it also should give some sense of why it is required.

Something like: Your balance of $2.36 is not sufficient to start this server. You need to have at least $3.02 to cover the cost of running the server for 1 hour as well as 20GB of outgoing network traffic.

Regarding the flat component, however, I think it should be substantially less than the minimum transaction, so that those who added the minimum amount possible can experiment with compute servers. With 1 hour and 10GB it would be $1.52.

novoselt commented 5 months ago

Fresh screenshot on the topic: image

novoselt commented 5 months ago

Regarding the formula used - with aggressive enough checking, one hour should be sufficient and it is exactly the amount the user sees while configuring the server. The message in the box, I think, should say:

"In order to start a compute server you should have enough credit to run it for one hour."

That's it! "Current Balance $9.98" is visible below already. "Add at least $99.73 (plus tax) to your account..." is written on the button. Repeating this information adds very little to clarity, but bloats the interface.

While I am at it, "Transfer" in this context linking to a page to BUY a voucher is very out of place. So it would be nice to get to image

williamstein commented 1 month ago

We check aggressively now (due to abuse) so can make the required amount of time ~10 minutes (say). We should also make sure you can store your data for at least a couple of days, before it gets automatically deleted.