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.

task.go 813 B

12345678910111213141516171819202122232425262728293031
  1. package algo
  2. type Task struct {
  3. Tid int
  4. Replicas int //副本数
  5. Cpu float64
  6. Mem float64
  7. Disk float64
  8. Time int //单个副本的运行时间
  9. T0 int
  10. T1 int
  11. Pr float64 //延迟最低,用户满意度为1时用户的支付价格
  12. B int
  13. MaxscoreStrategy *Strategy
  14. ResourcePerTask [][]int //存储调度后每个云厂商的具体占用资源剩余执行时间
  15. }
  16. func NewTask(id int, replicas int, cpu float64, mem float64, disk float64, time int, t0 int, t1 int, Pr float64) *Task {
  17. return &Task{
  18. Tid: id,
  19. Replicas: replicas,
  20. Cpu: cpu,
  21. Mem: mem,
  22. Disk: disk,
  23. Time: time,
  24. T0: t0,
  25. T1: t1,
  26. Pr: Pr,
  27. B: 5,
  28. }
  29. }

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.