Jump to content

Here's how to avoid hitting the limits on free Codespaces


Recommended Posts

Guest alfredodeza
Posted

Before going through the suggestions, there are two key aspects to understand how quotas are affected:

 

  1. Every Codespace that has been created and not deleted can consume your included quota.
  2. Running Codespaces will use both CPU core-hours and storage, while stopped Codespaces will consume your storage quota only.

 

 

 

Although it can be tricky to find out how exactly your Codespaces are consuming your monthly quotas, here are four solid suggestions to reduce your spending on your personal account.

 

 

 

1. Delete Codespaces aggressively

 

Delete Codespaces instances after each use and change the default retention period to 1 day (default is 30). Go to “Default retention period” section in the Codespaces settings page to make that change.

 

 

 

largevv2px999.png.d7e45bd1be2f8fe7c18699d9294d8a1d.png

 

 

 

 

 

2. Don't enable pre-builds

 

Pre-builds consume storage and it's difficult to track what pre-builds are enabled to delete them later.

 

 

 

largevv2px999.png.2b54f8b1e0516d4c7545581b90dd47db.png

 

 

 

3. Monitor usage closely

 

Use Billing Settings to closely monitor Codespaces consumption and make sure you aren't spending quota that you don't need.

 

 

 

largevv2px999.png.9434fb620fc5bad21c565688c2217d2d.png

 

 

 

 

 

4. Use granular reporting

 

For granular reporting and debugging consumption on CPU, Storage, and Pre-builds use the “Get usage report” button in the billing page next to the “Usage this month” section. This will create a CSV report that gets emailed to your account.

 

 

 

largevv2px999.png.9a1f0c031cf3620b2cd1e179c46783f5.png

 

 

 

 

 

 

 

Want to learn more about Codespaces? Here are some useful resources:

 

 

 

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...