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 762 B

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

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.