News for hackers. Stuff that matters.
Re:Fixing Python Performance with Rust by bmh100 on Wednesday October 19, 2016 @07:25PM (#12748617)
Small question: since this is improving performance on a given machine, isn't this actually an example of vertical scaling, as opposed to horizontal?
Re:Fixing Python Performance with Rust by mattrobenolt on Wednesday October 19, 2016 @08:24PM (#12748955)
I guess this is just phrased a bit oddly. It's just a factor in helping us scale by requiring us to use our hardware more efficiently. Not sure I'd say it's horizontally or vertically. We've just made each unit of work cheaper to help things along.
Re:Fixing Python Performance with Rust by Rapzid on Wednesday October 19, 2016 @11:57PM (#12749645)
It's vertical almost by definition. I'll say it.
Re:Fixing Python Performance with Rust by delluminatus on Wednesday October 19, 2016 @07:45PM (#12748726)
I don't think it's either. "Scaling" refers to growing the amount of compute power you are using. This change falls into a different bucket, which is making more efficient use of the compute that's already available.

If they are running multiple Docker containers, the improved efficiency would allow them to run more containers per host computer. Maybe that's what they meant, although it's not really horizontal scaling either.

Re:Fixing Python Performance with Rust by fowl2 on Thursday October 20, 2016 @01:38AM (#12749945)
I think scaling is more about serving demand - whether you you use more resources on a single box, more resources by using more boxes or use the same resources more efficiently you're still scaling.
Re:Fixing Python Performance with Rust by computerphage on Thursday October 20, 2016 @10:53AM (#12752771)
This is the closest to my use of the term. I'd go further and say that using more resources on a single box is vertical scaling, using more boxes is horizontal, and this thing is neither. How about density scaling?
Re:Fixing Python Performance with Rust by Yen on Thursday October 20, 2016 @02:10PM (#12754700)
A previous HN discussion proposed the term "scaling deeper".

Scaling Horizontally - spending resources on adding more nodes to a cluster, so more work can get done in parallel. Scaling Vertically - spending resources on adding computational power to individual nodes, so an individual job can get done faster. Scaling Deeply - spending resources on understanding and optimizing an application, so each job can get done with less computational power.

Each of these can be thought of as an orthogonal axis, with its own curve of diminishing returns.

Re:Fixing Python Performance with Rust by byronyi on Wednesday October 19, 2016 @09:49PM (#12749314)
Why does it have to do with scaling in the first place?

Performance has nothing to do with scalability whatsoever, by the way.

Re:Fixing Python Performance with Rust by johncolanduoni on Wednesday October 19, 2016 @10:17PM (#12749395)
If you halve the memory and CPU usage of a given service (that's not IO bound), have you not improved it's vertical scalability?
Re:Fixing Python Performance with Rust by cyphar on Wednesday October 19, 2016 @11:29PM (#12749576)
Not if those things aren't the bottleneck. Scalability is such a buzzword. The correct term is "performance" or "overhead". Scalability matters when you're talking about an entire system that you're deploying on many machines -- the problem space and technical discussion is different to fixing a performance issue in Python.
Re:Fixing Python Performance with Rust by zeeg on Thursday October 20, 2016 @02:09AM (#12750036)
David from Sentry here. I've got a long history of talking about scale in the python/web ecosystems. I'll echo what some others have said: scale is fundamentally a business metric.

If we can do more with less machines it's no different than doing more with more machines. We added triple our infrastructure to handle the Python load while we resolved this CPU issue, and that wasn't "scaling" (literally, it causes other scale concerns).

Fixing the root cause let's us drop all of those new machines as well as some older ones. The scalability of the system has greatly increased because of this and other factors -- primarily that many or all systems aren't actually "horizontally" scaleable.

Re:Fixing Python Performance with Rust by RandomBK on Wednesday October 19, 2016 @10:16PM (#12749390)
Unless we know where the application is bottlenecked, it's hard to say how this affects scaling. Reducing CPU usage may have no real effect on scalability if IO is what's keeping them back.