api-v2 icon indicating copy to clipboard operation
api-v2 copied to clipboard

metadata: expose instance type/size

Open lucab opened this issue 6 years ago • 3 comments

This is a feature request for the link-local /metadata/v1 endpoint (or a documentation enhancement, if the feature is already in place but not documented).

It would be nice to have an "instance type" field as part of the node metadata, so that an host could introspect and detect its own size at runtime. Regarding the content of this additional field, matching the instance type "slug" that is used for the creation API would be good.

We are currently adding introspection logic for CoreOS-style systems, and from an initial survey DO is the only major environment not exposing this piece of information to nodes: https://github.com/coreos/afterburn/issues/277.

/cc @hilary @snormore for further internal triaging/dispatching

lucab avatar Oct 04 '19 08:10 lucab

/cc @andrewsomething

A gentle bump to possibly get some DO internal reaction on this.

lucab avatar Oct 11 '19 08:10 lucab

Thanks for raising this @lucab. It sounds like a reasonable request. I've brought it up with the team that maintains our metadata service internally.

andrewsomething avatar Oct 11 '19 15:10 andrewsomething