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.NodeResources.justNonNumbers()Returns this with all numbers set to 0NodeResources.justNumbers()Returns this with disk speed, storage type and architecture set to anyNodeResources.multipliedBy(double factor) ClusterResources.nodeResources()HostSpec.realResources()The real resources available for Vespa processes on this node, after subtracting infrastructure overhead.Flavor.resources()CapacityPolicies.specifyFully(NodeResources resources, ClusterSpec clusterSpec) NodeResources.subtract(NodeResources other) ClusterResources.totalResources()Returns the total resources of this, that is the number of nodes times the node resourcesstatic NodeResourcesNodeResources.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.withMemoryGiB(double memoryGiB) NodeResources.withUnspecifiedFieldsFrom(NodeResources fullySpecified) NodeResources.withVcpu(double vcpu) static NodeResourcesNodeResources.zero()Methods in com.yahoo.config.provision that return types with arguments of type NodeResourcesModifier and TypeMethodDescriptionNodeResources.asOptional()Returns this.isUnspecified() ?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) booleanNodeResources.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.doubleNodeResources.distanceTo(NodeResources other) booleanNodeResources.equalsWhereSpecified(NodeResources other) Returns true if all the resources of this are the same as or compatible with the given resources: - Equal numbersbooleanNodeResources.satisfies(NodeResources other) Returns true if all the resources of this are the same or larger than the given resourcesCapacityPolicies.specifyFully(NodeResources resources, ClusterSpec clusterSpec) NodeResources.subtract(NodeResources other) ClusterResources.with(NodeResources resources) Flavor.with(NodeResources resources) NodeResources.withUnspecifiedFieldsFrom(NodeResources fullySpecified) 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) Flavor(String name, NodeResources resources, Optional<FlavorOverrides> flavorOverrides, Flavor.Type type, boolean configured, int cost, double cpuSpeedup) 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