In order to launch a new server on DigitalOcean head to the 'Add server' form and follow the steps below:
- Choose 'DigitalOcean' as the provider. In case you haven't done it yet, add a DigitalOcean credential to the workspace now (it's quick and easy 😊 ).
- Choose the region of DigitalOcean where your server will be hosted. Usually you'll choose the one which is closest to the users of the server.
- Choose the availability zone of the region where your server will be hosted. Unless you have a compelling reason for not doing so, you can safely choose any of the offered options.
- Choose the size of your server. The size determines the number of virtual cpus of the server, the amount of ram, the size of the SSD drive, and the price you'll be charged for it.
- Choose the operating system that your server will run. Moss will determine the latest official image on your behalf.
- Provide the name that your server will have at both Moss and DigitalOcean (e.g. 'my-server' or 'www01'). Moss will also configure the hostname of the server using the value you provide here. Note that the name of the server must be unique in your DigitalOcean account and within your workspace.
- Choose the timezone that Moss will set in your server. Moss suggests your current timezone as the default option, but select whichever you prefer.
- Choose the SSH Key to upload onto the server (if any). This is your public SSH key: Moss will upload this key onto the new server so that you can always log into it via SSH as user moss (can run privileged operations with sudo). You may choose to upload your key later on.
- Check the DigitalOcean backups box if you want to enable the automatic snapshot service of DigitalOcean. If enabled, DigitalOcean will create a weekly snapshot of your droplet that will be available during four weeks. Please note that this feature adds 20% to the monthly cost of your server.
- Check the monitoring box if you want Moss to gather server metrics and send you an alert whenever it's down or under resource pressure. Usually you'll want to monitor your servers, unless they're for testing or similar environments.
Once you're done with the previous configuration, click the 'Add' button and wait until Moss finishes the process.
It may take a while depending on a number of factors, like the size of your droplet or the state of the network, to name a few. Moss shows the last completed step at any moment so that you can track the progress of the process.
Awesome! You've launched a server on DigitalOcean :-) Moss has started to work for you. You'll receive a notification whenever the server is upgraded with security patches. If you also enabled server monitoring, you'll get an alert whenever it's down or any resource is under pressure (cpu, memory, disk or i-nodes). You can check the metrics Moss is gathering in the 'Metrics' tab of the server details.
Now you may want to keep adding servers or to create some websites on them.