upgrades = exports.upgrades = {}
exports.DEFAULT_QUOTAS =
disk_quota : 3000
cores : 1
cpu_shares : 0
memory : 1000
memory_request : 0
mintime : 1800
network : 0
member_host : 0
upgrades.max_per_project =
disk_quota : 50000
memory : 8000
memory_request : 8000
cores : 4
network : 1
cpu_shares : 2048
mintime : 24*3600*90
member_host : 1
upgrades.params =
disk_quota :
display : 'Disk space'
unit : 'MB'
display_unit : 'MB'
display_factor : 1
pricing_unit : 'GB'
pricing_factor : 1/1000
input_type : 'number'
desc : 'The maximum amount of disk space (in MB) that a project may use.'
memory :
display : 'Shared RAM'
unit : 'MB'
display_unit : 'MB'
display_factor : 1
pricing_unit : 'GB'
pricing_factor : 1/1000
input_type : 'number'
desc : 'Upper bound on RAM that all processes in a project may use in total (shared with other projects; not guaranteed).'
memory_request :
display : 'Dedicated RAM'
unit : 'MB'
display_unit : 'MB'
display_factor : 1
pricing_unit : 'GB'
pricing_factor : 1/1000
input_type : 'number'
desc : "Guaranteed minimum amount of RAM that is dedicated to your project."
cores :
display : 'Shared CPU'
unit : 'core'
display_unit : 'core'
display_factor : 1
pricing_unit : 'core'
pricing_factor : 1
input_type : 'number'
desc : 'Upper bound on the number of shared CPU cores that your project may use (shared with other projects; not guaranteed).'
cpu_shares :
display : 'Dedicated CPU'
unit : 'core'
display_unit : 'core'
display_factor : 1/1024
pricing_unit : 'core'
pricing_factor : 1/1024
input_type : 'number'
desc : 'Guaranteed minimum number of CPU cores that are dedicated to your project.'
mintime :
display : 'Idle timeout'
unit : 'second'
display_unit : 'hour'
display_factor : 1/3600
pricing_unit : 'day'
pricing_factor : 1/86400
input_type : 'number'
desc : 'If the project is not used for this long, then it will be automatically stopped.'
network :
display : 'Internet access'
unit : 'project'
display_unit : 'project'
display_factor : 1
pricing_unit : 'project'
pricing_factor : 1
input_type : 'checkbox'
desc : 'Full internet access enables a project to connect to the computers outside of CoCalc, download software packages, etc.'
member_host :
display : 'Member hosting'
unit : 'project'
display_unit : 'project'
display_factor : 1
pricing_unit : 'project'
pricing_factor : 1
input_type : 'checkbox'
desc : 'Runs this project on a member-only host that is NOT pre-emptible; it will not be randomly rebooted and has less users.'
upgrades.field_order = ['member_host', 'network', 'mintime', 'disk_quota',
'memory', 'memory_request',
'cores', 'cpu_shares']
upgrades.live_subscriptions = [['standard', 'premium', 'professional'],
['small_course', 'medium_course', 'large_course']]
upgrades.period_names =
month : 'month'
year : 'year'
month4 : '4 months'
year1 : 'year'
membership = upgrades.membership = {}
membership.professional =
icon : 'battery-full'
price :
month : 99
year : 999
cancel_at_period_end : false
benefits :
cores : 5
cpu_shares : 1024
disk_quota : 5000*20
member_host : 2*20
memory : 3000*20
memory_request : 1000*4
mintime : 24*3600*20
network : 10*20
membership.premium =
icon : 'battery-three-quarters'
price :
month : 49
year : 499
cancel_at_period_end : false
benefits :
cores : 2
cpu_shares : 512
disk_quota : 5000*8
member_host : 2*8
memory : 3000*8
memory_request : 1000*2
mintime : 24*3600*8
network : 10*8
membership.standard =
icon : 'battery-quarter'
price :
month : 7
year : 79
cancel_at_period_end : false
benefits :
cores : 0
cpu_shares : 0
disk_quota : 5000
member_host : 2
memory : 3000
memory_request : 0
mintime : 24*3600
network : 20
membership.large_course =
icon : 'battery-full'
price :
month4 : 999
year1 : 2499
cancel_at_period_end : true
benefits :
cores : 0
cpu_shares : 0
disk_quota : 0
memory : 0
memory_request : 0
member_host : 250
network : 250
membership.medium_course =
icon : 'battery-three-quarters'
price :
month4 : 399
year1 : 999
cancel_at_period_end : true
benefits :
cores : 0
cpu_shares : 0
disk_quota : 0
memory : 0
memory_request : 0
member_host : 70
network : 70
membership.small_course =
icon : 'battery-quarter'
price :
month4 : 199
year1 : 499
cancel_at_period_end : true
benefits :
cores : 0
cpu_shares : 0
disk_quota : 0
memory : 0
memory_request : 0
member_host : 25
network : 25
membership.student_course =
icon : 'graduation-cap'
price :
month4 : 9
cancel_at_period_end : true
benefits :
cores : 0
cpu_shares : 0
disk_quota : 0
memory : 0
memory_request : 0
member_host : 1
network : 1