This list of best practices revolves all around making safe and efficient use of SURF Research Cloud.
- Accept that any resource is temporary.
- Be prepared to start a new working environment, eventually.
- If you need more cores or memory, for instance, you will have to create a new workspace.
Being prepared will make this easy. But it will also make your research more reproducible!
Budget
Watch your budget consumption. In the portal's "Wallet" tab, extend the display tile of your wallet(s) to see how much has been consumed.
Idling Workspaces
Be aware, that even an idling workspace will consume budget. If you don't need the workspace, use the "Pause" button to save budget.
Storage
- If in doubt: do add an external storage volume to your workspace. Put your data there and it will still be there when your workspace is already gone.
- Anything outside the directories in your ~/data/<my_volume> directory will be gone when the workspace gets deleted.
- Make sure that you can restore the data from elsewhere if something should go wrong. (It rarely does, but still ...)
Configuration
If you spend hours or even days on setting up your working environment, make sure that the setup is reproducible. This is a small investment of time compared to starting all over again.
- When setting up your environment, use single terminal-commands for experimenting only. Keep your setup-commands in shell scripts or Ansible playbooks. You will need them again.
- Keep track of your configuration-files and setup-scripts. A version control system like git is a great way to enable yourself to start a new workspace at any time.
Code
- Keep track of your code development. This should go without saying, but again, git is your best friend. Do not be intimidated by the power and versatility of this tool. Keep the usage as simple as you can and decide together with your teammates how you want to use it.