46 points · by ithkuil · 4y ago · 36 comments
I changed my mind, this image is really what they ought to be showing. It gets the point across:
https://i0.wp.com/blog.openj9.org/wp-content/uploads/2021/09...
What you're looking at is allocation of multiple apps inside of nodes in a cluster. With a JIT Server in each node, the memory required for each instance of the app is reduced, such that the effect is more instances can be fit in the same node size than before.
It reminds me of "bonuses" on equipment in RPGs. You lose 1 equipment slot to have it taken up by the item, but in return the rest of your equipment gets a bonus that more than makes up for the slot you can't use now.
Think of it more like continuous PGO, but the delta perf improvement is much higher.
Yes there have been AOT compilers since around 2000, however you will notice that they target specific deployment cases, and also offer JIT caches in alternative.
Actually that is also how Android rebooted their AOT efforts in version 7.
You can see it in GraalVM and native image as well.
It would use the network to do the JIT on this custom Java box, and it was super fast as long as your machine shared a fast switch with the box.
I wonder if this is basically the resurrection of that with some extra magic to make it work over the internet.
* Anything involving autoscaling
* My usecase of 1000s of servers doing ETL type work with java processes getting created and destroyed often.
I don't think this is a great boon for long lived services.
However I’d rather scrap the software and rewrite it in something with a full AOT compiler and rapid startup at this point. And without more dependencies which will fuck up mid deployment whenever cloud provider X falls over.
"it can reduce compute resources by up to 50 per cent"
How ... Do they not include their cloud service in the computations required?
Hmmm... maybe just having a monolith at that point is better? If you can run 100 containers on one box, why not just run one environment on one box?
The garbage collection choices are going to be unique to the workload running on that server and have little information worth sharing that will speed up operations.
Not sure why you're so confused? Instead of compiling one method a thousand times, you compile it once and share the result. You still count the computation needed for the one compilation, but strictly reduces compute resources as less work is being done overall.
Sounds ridiculous and even a bit pointless because you'd still need the capacity to run lots of compilations along not-yet-optimized code during startup (e.g. after redeploy), but with cluster size being highly variable and usage cost more and more replacing capacity cost as the primary concern this might actually work out. For very large clusters and certain workloads. And the more you modulate cluster size depending on demand, the bigger the benefit from reusing across nodes. Sure, it would be more straight-forward to just clone a fully baked node, but there's a nice peace of mind in not having to decide between cold start and hot clone, just leave it to the self-organization mechanism.
> every node already has?
No every node doesn't already have it. That's the point. One node computes on behalf of everyone.
> you'd still need the capacity to run lots of compilations along not-yet-optimized code during startup
Well no - nodes also have interpreters so they don't wait. And it's not any slower for someone else to run the compilation on your behalf - the result comes in the same time. And most code doesn't change between redeploys so doesn't need to be recompiled.
https://www.theregister.com/2021/12/15/azul_introduces_remot...
Edit: Could @dang change the link to https://www.theregister.com/2021/12/15/azul_introduces_remot...