Comments (11)
We can't re-purpose the OS column as you can have windows/kvm, freebsd/kvm, etc.
The unfortunately/poorly-named attribute for this purpose is "type", which returns either "smartmachine" or "virtualmachine". We can expose that and hide pubdate to make space for it. Down the road, it'll be good to be able to rename the type field and values to something better but it can be done only if we support versioning.
from node-triton.
It would not be ok to overload any existing column for that purpose. A new column is required.
from node-triton.
In the TODO.txt I'd had this: *type*: cloudapi changes to clarify: LX, docker, smartos, kvm instances
I don't have a solid proposal yet. Cloudapi's renaming of "type" values sucks. Would could have a triton
client-side translation to a typ
or kind
column that had nicer values: container/vm or lx/smartos/kvm or whatever.
from node-triton.
I'd like to make sure we talk about three "types" of compute instances:
Docker containers
Docker containers on Triton can run images from a variety of registries, including public and private. See detailed documentation for connecting to those registries in containers → Docker → registries.
Infrastructure containers
Infrastructure containers running container-native Linux and SmartOS, or pre-configured installations of up-stack software such as databases or load balancers offer the advantage of bare-metal performance with the elasticity of containers and security that's only available using Triton.
See information about available images, including bare operating systems and configured applications in containers → infrastructure containers → images. Also see details about creating a custom container-native image.
Hardware virtual machines
Not every workload can be deployed as a container. We also offer images for KVM-based hardware virtual machines to support the broadest range of legacy or special purpose operating systems.
Available images include FreeBSD, Linux (not container-native), and Windows.
Specifically, we don't want to differentiate between "lx" and "smartos" instances, as the way they fit into people's infrastructure needs is identical: they're infrastructure containers.
Some docs references from language:
from node-triton.
@askfongjojo , @misterbisson what are the scenarios of concerns for the the ascii output prepending "kvm" for this new tool? "kvm windows" and "kvm bsd" seem fine. Seems like an elegant hack. Another column is not human-friendly particularly when the collision is only currently in linux; docker images all are named "docker*".
- OT: is there recent discussion about naming new kvm linux images with "kvm" in the name? The dropping of "lx" for ubuntu has caused much fun.
- OT: is there a cloudapi jira related to a field for the three "types": inf containers, docker, and kvm?
- OT: for docker images any plan to make human friendly column exposing the docker image name? I'd like to incorperate this in adminui search if possible.
from node-triton.
@lloydde Re: docker images: The get the "friendly" docker name is user specific and needs to talk to sdc-docker to get that info. That docker images live in imgapi is (at least currently) an implementation detail.
from node-triton.
@misterbisson Suggestions for the short names for those three types/kinds/flavours of instances?
from node-triton.
needs to talk to sdc-docker to get that info
Prime! Tx.
from node-triton.
@trentm, re: short names. It depends on how short you want.
Instance types of different lengths:
- Docker c.
- Infrastructure c.
- Hardware VM
- Docker c.
- Infrastruct. c.
- Hardware VM
- DC
- IC
- HVM
Side questions:
More seriously, I should point out that I use "hardware virtual machine" instead of just "virtual machine" to distinguish the instance type from our language in the admin UI and CloudAPI where we call every instance type a "machine."
from node-triton.
Per discussion on PUBAPI-1161 (https://smartos.org/bugview/PUBAPI-1161), just going to expose the 'type' field in default triton images
output. See write up on output changes (for this and triton instances
changes that are similar) here: https://gist.github.com/trentm/62f78bb5141e75ec6abe
The question of exposing Docker image details in triton images
is a larger separate discussion.
from node-triton.
This will be in [email protected] (probably later today)
from node-triton.
Related Issues (20)
- `triton rbac role[s]` should support new role API HOT 1
- Un-hide --act-as option and add environment var HOT 1
- v7.5.0 HOT 1
- triton inst migration finalize: error: not a valid migration action HOT 2
- Want Triton image update / tag HOT 1
- fs.unlink() requires a callback HOT 9
- node-triton fails to resolve host when a CNAME HOT 1
- triton volume list and triton volume sizes should agree on a unit HOT 1
- Honor the XDG directory conventions HOT 1
- `triton profile` should generate certs for cmon
- triton rbac commands generate os.tmpDir deprecation warning HOT 1
- Unhide volumes HOT 1
- Wrong CLI_CONFIG_DIR when XDG_CONFIG_HOME is set HOT 1
- want act-as support for "triton profile docker-setup" and "triton profile cmon-certgen" HOT 1
- cmon-certgen should generate an example prometheus.yml HOT 1
- want --primary argument to "triton inst nic create" HOT 1
- AssertionError in keyring.js caused by OpenSSL 3 HOT 4
- BadDigestError: Content-MD5 when body has non-ascii characters HOT 4
- want cloud-config syntactic sugar
- Want npm lockfile HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-triton.