You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

strategy.go 796 B

1234567891011121314151617181920212223242526272829
  1. package strategy
  2. const (
  3. REPLICATION = "replication"
  4. RESOURCES_PRICING = "resourcesPricing"
  5. STATIC_WEIGHT = "staticWeight"
  6. DYNAMIC_RESOURCES = "dynamicResources"
  7. RANDOM = "random"
  8. DATA_LOCALITY = "dataLocality" //感知数据位置,数据调度和计算调度协同,近数据调度
  9. ENERGY_CONSUMPTION = "energyConsumption" //根据各集群总体能耗水平调度作业,优先选择能耗低的集群调度作业
  10. )
  11. var (
  12. strategyNames = []string{REPLICATION, RESOURCES_PRICING, STATIC_WEIGHT, DYNAMIC_RESOURCES, RANDOM}
  13. )
  14. type Strategy interface {
  15. Schedule() ([]*AssignedCluster, error)
  16. }
  17. type AssignedCluster struct {
  18. ClusterId string
  19. ClusterName string
  20. Replicas int32
  21. }
  22. func GetStrategyNames() []string {
  23. return strategyNames
  24. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.