alibaba

package
v1.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SPOT_DISCOUNT_RATIO = 0.3

Variables

View Source
var GPUInstanceTypeInfo []types.GPUNodeInstanceInfo
View Source
var PricingMap = map[string]*types.GPUNodeInstanceInfo{}
View Source
var RegionCostDifferenceRatio = map[string]float64{
	"us-west-1":   1.0,
	"cn-hangzhou": 0.7,
}

Some regions are more expensive or cheaper than others, if not found in this map, use 1.0 as default ratio TODO: this should be configurable, also indicating some special discounts

Functions

This section is empty.

Types

type AlibabaGPUNodeProvider

type AlibabaGPUNodeProvider struct {
	// contains filtered or unexported fields
}

func NewAlibabaGPUNodeProvider

func NewAlibabaGPUNodeProvider(config tfv1.ComputingVendorConfig) (AlibabaGPUNodeProvider, error)

func (AlibabaGPUNodeProvider) CreateNode

func (AlibabaGPUNodeProvider) GetGPUNodeInstanceTypeInfo

func (p AlibabaGPUNodeProvider) GetGPUNodeInstanceTypeInfo(region string) []types.GPUNodeInstanceInfo

func (AlibabaGPUNodeProvider) GetInstancePricing

func (p AlibabaGPUNodeProvider) GetInstancePricing(instanceType string, region string, capacityType types.CapacityTypeEnum) (float64, error)

func (AlibabaGPUNodeProvider) GetNodeStatus

func (AlibabaGPUNodeProvider) TerminateNode

func (p AlibabaGPUNodeProvider) TerminateNode(ctx context.Context, param *types.NodeIdentityParam) error

func (AlibabaGPUNodeProvider) TestConnection

func (p AlibabaGPUNodeProvider) TestConnection() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL