projects
/
aquarium
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Refils resource for handling credit refils
[aquarium]
/
dist
/
policy.yaml
1
aquariumpolicy:
2
resources:
3
- resource:
4
name: bandwidthup
5
unit: MB/hr
6
complex: false
7
costpolicy: discrete
8
- resource:
9
name: bandwidthdown
10
unit: MB/hr
11
complex: false
12
costpolicy: discrete
13
- resource:
14
name: vmtime
15
unit: Hour
16
complex: true
17
costpolicy: onoff
18
- resource:
19
name: diskspace
20
unit: MB/hr
21
complex: false
22
costpolicy: continuous
23
- resource:
24
name: refills
25
unit: credits
26
complex: false
27
costpolicy: once
28
29
implicitvars:
30
- price
31
- volume
32
33
algorithms:
34
- algorithm:
35
name: default
36
bandwidthup: $price times $volume
37
bandwidthdown: $price times $volume
38
vmtime: $price times $volume
39
diskspace: $price times $volume
40
bookpages: $price times $volume
41
refills: $price times $volume
42
effective:
43
from: 0
44
45
pricelists:
46
- pricelist:
47
name: default
48
bandwidthup: 0.01
49
bandwidthdown: 0.02
50
vmtime: 0.1
51
diskspace: 0.05
52
bookpages: 0.1
53
refills: 1
54
effective:
55
from: 0
56
57
creditplans:
58
- creditplan:
59
name: default
60
credits: 100
61
at: "00 00 1 * *"
62
effective:
63
from: 0
64
65
agreements:
66
- agreement:
67
name: default
68
algorithm: default
69
pricelist: default
70
creditplan: default
71