Uses of Class
com.yahoo.config.provision.NodeResources
Packages that use NodeResources
-
Uses of NodeResources in com.yahoo.config.provision
Methods in com.yahoo.config.provision that return NodeResourcesModifier and TypeMethodDescriptionNodeResources.add
(NodeResources other) HostSpec.advertisedResources()
The total advertised resources of this node, typically matching what's requested.static NodeResources
NodeResources.fromLegacyName
(String name) Create this from serial form.NodeResources.justNonNumbers()
Returns this with all numbers set to 0NodeResources.justNumbers()
Returns this with disk speed, storage type and architecture set to anyClusterResources.nodeResources()
HostSpec.realResources()
The real resources available for Vespa processes on this node, after subtracting infrastructure overhead.Flavor.resources()
NodeResources.subtract
(NodeResources other) ClusterResources.totalResources()
Returns the total resources of this, that is the number of nodes times the node resourcesstatic NodeResources
NodeResources.unspecified()
NodeResources.with
(NodeResources.Architecture architecture) NodeResources.with
(NodeResources.DiskSpeed diskSpeed) NodeResources.with
(NodeResources.GpuResources gpuResources) NodeResources.with
(NodeResources.StorageType storageType) NodeResources.withBandwidthGbps
(double bandwidthGbps) NodeResources.withDiskGb
(double diskGb) NodeResources.withMemoryGb
(double memoryGb) NodeResources.withVcpu
(double vcpu) static NodeResources
NodeResources.zero()
Methods in com.yahoo.config.provision that return types with arguments of type NodeResourcesModifier and TypeMethodDescriptionNodeResources.asOptional()
Returns this.isUnspecified() ? Optional.empty() : Optional.of(this)HostSpec.requestedResources()
Returns the requested resources leading to this host being provisioned, or empty if unspecifiedMethods in com.yahoo.config.provision with parameters of type NodeResourcesModifier and TypeMethodDescriptionNodeResources.add
(NodeResources other) boolean
NodeResources.compatibleWith
(NodeResources requested) Returns true if all the resources of this are the same as or compatible with the requested resources: - Equal numbers only where request implies it (i.e not for disk if storage is any/remote, and not for bandwidth where we don't enforce constraints), - Compatible non-numbers.double
NodeResources.distanceTo
(NodeResources other) boolean
NodeResources.equalsWhereSpecified
(NodeResources other) Returns true if all the resources of this are the same as or compatible with the given resources: - Equal numbers.boolean
NodeResources.satisfies
(NodeResources other) Returns true if all the resources of this are the same or larger than the given resourcesNodeResources.subtract
(NodeResources other) ClusterResources.with
(NodeResources resources) Flavor.with
(NodeResources resources) Constructors in com.yahoo.config.provision with parameters of type NodeResourcesModifierConstructorDescriptionClusterResources
(int nodes, int groups, NodeResources nodeResources) Flavor
(NodeResources resources) Creates a *node* flavor from a node resources specFlavor
(String name, NodeResources resources) Creates a *host* flavor for testingFlavor
(String name, NodeResources resources, Optional<FlavorOverrides> flavorOverrides, Flavor.Type type, boolean configured, int cost) HostSpec
(String hostname, NodeResources realResources, NodeResources advertisedResources, NodeResources requestedResources, ClusterMembership membership, Optional<com.yahoo.component.Version> version, Optional<NetworkPorts> networkPorts, Optional<DockerImage> dockerImageRepo) Create a host in a hosted system