News for hackers. Stuff that matters.
Re:A 1.5GB String by Vecr on Saturday April 08, 2023 @04:26PM (#35497273)
The formula to calculate the numbers of needed servers is wrong, as you can't have fractional servers. You should use the pigeonhole principle[0]

[0]: https://en.wikipedia.org/wiki/Pigeonhole_principle

Re:A 1.5GB String by nmilo on Saturday April 08, 2023 @04:32PM (#35497323)
So round it, this is engineering, not math. The safety buffer factor accounts for any rounding errors anyways.
Re:A 1.5GB String by sweettea on Saturday April 08, 2023 @04:33PM (#35497330)
The formula for number of needed servers seems like a fine approximation; I'm very confused how you could use the pigeonhole principle. Perhaps to say that if you have N servers, one of them has at least total_users/N users? But assuming you have a decent methodology for balancing users across servers, and can rebalance to use a new server when added, this has basically the same effects as the formula given so I'm clearly missing why you pointed this out.
Re:A 1.5GB String by sd9 on Saturday April 08, 2023 @04:32PM (#35497322)
The only difference in this case is to take the ceiling. The formula seems fine as an approximation.
Re:A 1.5GB String by cowthulhu on Saturday April 08, 2023 @04:47PM (#35497453)
The formula/metric is clearly an approximation?
Re:A 1.5GB String by Dylan16807 on Saturday April 08, 2023 @04:50PM (#35497491)
Use it how? The actual pigeonhole principle would conclude that you have multiple users on at least one server, and nothing else.

And anything that calculates individual users is the wrong way to do this math.

Re:A 1.5GB String by tiler2915072 on Saturday April 08, 2023 @04:59PM (#35497571)
As others have pointed out for the authors discussion this fact doesn’t really matter.

However what does matter is that the authors probably is not estimating the average correctly partially due to this bug. If they scaled without fixing their excessive string storage, they would probably find their estimate to be off.

Even with the fix I’d be surprised if the underlying distribution of data per user is normally distributed.

Re:A 1.5GB String by IncRnd on Saturday April 08, 2023 @05:48PM (#35497964)
That can obviously be rounded. Nobody will really try to purchase 27% of a server. A different issue is that the formula should include "1+Safety Buffer". Otherwise it needs to be run twice, once with the safety buffer and once without. Even so, I didn't take the formulae on this page to be accurate so much as representational.
Re:A 1.5GB String by gvx on Saturday April 08, 2023 @06:30PM (#35498279)
I assumed the "Safety Buffer" is really more of a "Safety Factor", and is equivalent to 1 + what you or I would call a Safety Buffer.
Re:A 1.5GB String by IncRnd on Saturday April 08, 2023 @07:40PM (#35498709)
Yep. It's really a non-issue. It's was pretty clear to me that the author knows how to use the formula.
Re:A 1.5GB String by ilyt on Saturday April 08, 2023 @10:42PM (#35499632)
It relies on common sense, thing that you lack.
Re:A 1.5GB String by Backslasher on Sunday April 09, 2023 @02:44AM (#35500536)
The real formula we used to order servers was more complex than this, and included regional distribution, requirement peaks etc. I can expand more on that process if this is interesting. However, for the context of this post, this crude approximation suffices IMO