Chandra Kiran commited on
Commit
37dfe11
·
unverified ·
1 Parent(s): 52ba0e1

Raise the shared result-storage limit to 9 GB

Browse files

STORAGE_LIMIT_GB now defaults to 9 (all testers together), still under R2's
free 10 GB.

Files changed (3) hide show
  1. .env.example +1 -1
  2. README.md +1 -1
  3. api/config.py +1 -1
.env.example CHANGED
@@ -68,7 +68,7 @@ ADMIN_TESTERS= # comma-separated tester names who see the tea
68
  MONTHLY_CREDIT_LIMIT_USD=29.98 # the Modal credit for the month; 0 = no limit
69
  COMPUTE_TESTERS=4 # the credit is split equally: 29.98 / 4 = $7.495 per tester
70
  # COMPUTE_PER_TESTER_USD= # set to override the equal share
71
- STORAGE_LIMIT_GB=8 # new jobs are refused while the R2 bucket holds more (free tier: 10 GB)
72
  # JOB_PRICES=t4=0.00019,l4=0.00025,cpu=0.00004,runpod=0.00031 # USD per second of container time
73
  # JOB_OVERHEAD_S=45 # billed start-up + idle seconds added to each job
74
 
 
68
  MONTHLY_CREDIT_LIMIT_USD=29.98 # the Modal credit for the month; 0 = no limit
69
  COMPUTE_TESTERS=4 # the credit is split equally: 29.98 / 4 = $7.495 per tester
70
  # COMPUTE_PER_TESTER_USD= # set to override the equal share
71
+ STORAGE_LIMIT_GB=9 # all testers together; new jobs wait while R2 holds more (free tier: 10 GB)
72
  # JOB_PRICES=t4=0.00019,l4=0.00025,cpu=0.00004,runpod=0.00031 # USD per second of container time
73
  # JOB_OVERHEAD_S=45 # billed start-up + idle seconds added to each job
74
 
README.md CHANGED
@@ -214,7 +214,7 @@ for download (it opens in any Foxglove app).
214
  5. **Spend limit**: every job's cost is estimated from its run time (`JOB_PRICES`, `JOB_OVERHEAD_S`). A new job is
215
  refused with HTTP 402 unless its worst case still fits in the tester's equal share and in
216
  `MONTHLY_CREDIT_LIMIT_USD` (default $29.98; see *GPU budget* above); everything else keeps working. Likewise, while the R2 bucket holds more than `STORAGE_LIMIT_GB`
217
- (default 8, under R2's free 10 GB) new jobs are refused with HTTP 507 until old files expire. The estimate is not Modal's bill, so also set a budget
218
  or usage alert in Modal's workspace settings (*Usage and Billing*). On RunPod, set a spend notification.
219
 
220
  `GET /health` shows `"runs_enabled": true` and the backend once it and R2 are configured. Otherwise `/simulate/run` answers
 
214
  5. **Spend limit**: every job's cost is estimated from its run time (`JOB_PRICES`, `JOB_OVERHEAD_S`). A new job is
215
  refused with HTTP 402 unless its worst case still fits in the tester's equal share and in
216
  `MONTHLY_CREDIT_LIMIT_USD` (default $29.98; see *GPU budget* above); everything else keeps working. Likewise, while the R2 bucket holds more than `STORAGE_LIMIT_GB`
217
+ (default 9 GB for all testers together, under R2's free 10 GB) new jobs are refused with HTTP 507 until old files expire. The estimate is not Modal's bill, so also set a budget
218
  or usage alert in Modal's workspace settings (*Usage and Billing*). On RunPod, set a spend notification.
219
 
220
  `GET /health` shows `"runs_enabled": true` and the backend once it and R2 are configured. Otherwise `/simulate/run` answers
api/config.py CHANGED
@@ -142,7 +142,7 @@ def get_settings() -> Settings:
142
  monthly_credit_usd=float(_env("MONTHLY_CREDIT_LIMIT_USD", "29.98")),
143
  compute_testers=int(_env("COMPUTE_TESTERS", "4")),
144
  compute_per_tester_usd=float(_env("COMPUTE_PER_TESTER_USD", "0")),
145
- storage_limit_gb=float(_env("STORAGE_LIMIT_GB", "8")),
146
  job_prices=_prices(_env("JOB_PRICES", "")),
147
  job_overhead_s=float(_env("JOB_OVERHEAD_S", "45")),
148
  isaac_daily_limit=int(_env("ISAAC_DAILY_LIMIT", "10")),
 
142
  monthly_credit_usd=float(_env("MONTHLY_CREDIT_LIMIT_USD", "29.98")),
143
  compute_testers=int(_env("COMPUTE_TESTERS", "4")),
144
  compute_per_tester_usd=float(_env("COMPUTE_PER_TESTER_USD", "0")),
145
+ storage_limit_gb=float(_env("STORAGE_LIMIT_GB", "9")),
146
  job_prices=_prices(_env("JOB_PRICES", "")),
147
  job_overhead_s=float(_env("JOB_OVERHEAD_S", "45")),
148
  isaac_daily_limit=int(_env("ISAAC_DAILY_LIMIT", "10")),