This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
guide:cloud:practices [2020/08/19 21:38] lphukungoane [Best Practice and Policies] |
guide:cloud:practices [2025/06/24 17:32] (current) bbarsch |
||
|---|---|---|---|
| Line 9: | Line 9: | ||
| *[[guide: | *[[guide: | ||
| - | ======Best Practice and Policies====== | ||
| + | ---- | ||
| + | ======Best Practices====== | ||
| - | | + | |
| + | |||
| + | | ||
| * Always start using virtual machine/ | * Always start using virtual machine/ | ||
| - | * When the instance is terminated or unavailable, | + | * When the instance is terminated or unavailable, |
| * Pull data you need immediate access to into your VM’s local storage. If your workflow needs a large reference dataset. | * Pull data you need immediate access to into your VM’s local storage. If your workflow needs a large reference dataset. | ||
| | | ||
| - | Terminate your VM and, subsequently, | + | * Terminate your VM and, subsequently, |
| - | When editing the security group associated with your virtual machines/ | + | * When editing the security group associated with your virtual machines/ |
| - | If you DO have to allow SSH access to your publicly accessible instances from 0.0.0.0/0 (entire Internet), make sure that only SSH key-based authentication is allowed by editing SSH's config file and restarting the ssh service afterwards: | + | * If you DO have to allow SSH access to your publicly accessible instances from 0.0.0.0/0 (entire Internet), make sure that only SSH key-based authentication is allowed by editing SSH's config file and restarting the ssh service afterwards: |
| + | |||
| + | Edit the file **/// | ||
| PasswordAuthentication no | PasswordAuthentication no | ||
| ChallengeResponseAuthentication no | ChallengeResponseAuthentication no | ||
| - | Do not share SSH keys or other credentials. | + | And then, restart the sshd service: **// |
| + | |||
| + | * Do not share SSH keys or other credentials. | ||
| + | |||
| + | * Terminate/ | ||
| + | |||
| + | * Do not snapshot instances containing credentials and then share them with other users. | ||
| + | |||
| + | * Do not copy or create large data sets on a virtual machine that you plan to snapshot later, because it will increase the snapshot size and take longer to start instances from it later, as well as taking more storage space. | ||
| + | |||
| + | * Clean up confidential data (e.g. ssh keys, any saved credentials, | ||
| + | |||
| + | * If planning to later snapshot an instance, use the SMALLEST possible flavor type that will allow you to install your applications because you can not start an instance of a smaller size than the original size used when the snapshot was taken. | ||
| + | |||
| + | * The snapshot only captures and stores the contents of the root disk (/dev/sda), so do not store data or install applications on attached volumes if you need them to be part of the snapshot. | ||
| + | |||
| + | * Do not use or upload Openstack images from untrusted sources. | ||
| + | |||
| + | * Do not install software from untrusted sources. | ||
| + | |||
| + | * Associate a floating IP only with a single instance and SSH into it before using SSH to connect to your other instances. In this way, you limit your security exposure. | ||
| + | |||
| + | * Make use of cloud utilities for automating provisioning steps. Cloud-init is a package pre-installed in most modern Linux distributions that allows (among other things) execution of a script upon the initial boot of the instance. More information about using cloud-init and useful examples are available at https:// | ||
| + | |||
| + | |||
| + | ---- | ||
| + | ====== Acceptable User Policy (AUP)====== | ||
| + | |||
| + | The cloud project account will be created and login credentials provided as soon as the registration on the Cloud Database has been approved, to register for cloud resources please following the link https:// | ||
| - | Terminate/ | + | An initial vm user account will be setup with sudo privileges. |
| - | Do not snapshot instances containing credentials | + | User accounts / usernames are set up using the standard CHPC user account creation policy, a user’s name consists of the first letter of your name and your surname/ |
| - | Do not copy or create large data sets on a virtual machine that you plan to snapshot later, because it will increase the snapshot size and take longer to start instances | + | By default projects have limited resources as specified below , unless |
| + | * Total storage | ||
| + | * CPU = 16 | ||
| + | * Memory = 32G | ||
| + | |||
| + | The Initial computing resources are determined by a selected resource flavor, each project is allowed a | ||
| + | maximum of 400GB of storage by default. | ||
| + | The storage options are CEPH and local storage. The local storage comes with/ | ||
| + | | ||
| + | to your VM. | ||
| + | | ||
| - | Clean up confidential data (e.g. ssh keys, any saved credentials, | + | Should more resources be required when the project |
| - | If planning to later snapshot an instance, use the SMALLEST possible flavor type that will allow you to install your applications because you can not start an instance of a smaller size than the original size used when the snapshot was taken. | + | **Users should please note: the allocation of more resources is subjected |
| + | ** | ||
| - | The snapshot only captures and stores the contents of the root disk (/dev/sda), so do not store data or install applications | + | VM snapshots are provided |
| - | Do not use or upload Openstack images from untrusted sources. | + | For security reasons as passwords are subjected to compromise, please add/use ssh keys |
| + | for adding ssh keys to your vm, follow the [[guide: | ||
| + | |||
| + | For paying customers/ | ||
| - | Do not install software from untrusted sources. | + | CHPC does not provide windows licences, users requesting windows images should produce/ provide their own windows license |
| - | Associate | + | To minimize/ prevent data loss CHPC has implemented |
| + | production cloud that is setup to keep 3 replicas of each set of data on each storage node. | ||
| - | Make use of cloud utilities for automating provisioning steps. Cloud-init is a package pre-installed in most modern Linux distributions that allows (among other things) execution of a script upon the initial boot of the instance. More information about using cloud-init and useful examples are available at https:// | ||