by mwpmaybe · 9y ago · 0 comments
But that doesn't work with Linode plans because they keep increasing the resources every now and then. They doubled the RAM on all the low-end plans a couple of years ago. Before that, they doubled the storage.
Another option would be to use random IDs that point to a specific bundle of resources. But then the plans change, and the previous bundle is no longer available for purchase.
It's hard to use consistent identifiers when the resources they point to change so often. Linode customers absolutely love those free upgrades.
I bet there is a piece of code in Linode codebase that has the plan resources mapped in a table, with a list of ID attached to the various sizes. The genius developer decided that it makes sense to have the "growing number ID" match the "growth in resources" assigned to the plan. In other words, the bigger ID should always mean MORE resources.
This leads them to alter IDs if they have to introduce plan-sizes that are small.
Imagine if AWS did this: you would see riots in the streets!
Presumably you can select the relevant ID based on plan properties (cores, RAM, etc.) rather than hardcoding IDs. Though I completely agree that once a plan has a specific ID, as long as that plan is available the ID should be constant.