DigitalOcean – Linux Hint https://linuxhint.com Exploring and Master Linux Ecosystem Mon, 01 Mar 2021 00:17:41 +0000 en-US hourly 1 https://wordpress.org/?v=5.6.2 DigitalOcean vs AWS https://linuxhint.com/digitalocean-vs-aws/ Mon, 18 Dec 2017 06:51:06 +0000 https://linuxhint-com.zk153f8d-liquidwebsites.com/?p=20826

DigitalOcean vs Amazon Web Services (AWS)

DigitalOcean and Amazon Web Services (AWS) are two of the popular cloud computing services. DigitalOcean is quite popular among small businesses and indie developers whereas AWS is mostly popular among medium sized to corporate level businesses. Arguably, AWS is the leading force in the cloud computing for having massive infrastructure at their disposal, and a tremendous amount of corporate level clients which allow them to grow large in size, and bring the service to the next level. However, lately DigitalOcean has been gaining a tremendous amount of attention from various directions, and this article demonstrates what DigitalOcean has done to stand out in the cloud computing world, and major differences between these two competitors in the cloud computing arena.


DigitalOcean

Payment Method and Sign up

DigitalOcean accepts both Paypal, and debit card as valid payment methods. If Paypal is used, $5 should be deposited to verify the account, and without verifying the account it’s not possible at the moment to complete the sign up even if a promo code is used. However, the signup process is relatively easy.

Droplets

DigitalOcean is a cloud computing service which provides a wide variety of features, and is known for their simplicity and elegant look in the web interface. Due to the simplicity, it doesn’t take much time to roll out the cloud computer instance. In fact, it takes less than 2 minutes for creating a cloud computer instance, and being available to public with an accessible public IP address. Initially, it allocates a single IP4 address to the instance which is known as a droplet in DigitalOcean platform, but it’s possible to acquire an IP6 address through the droplet settings page which is unique per each droplet.

Operating Systems

DigitalOcean provides a range of operating systems from popular Ubuntu distro, to CentOS which is currently dominant in the server market. As seen in the following screenshot, Ubuntu makes the latest version 17.10 available to general public, and usually any recent version is available here after a while later, which is a huge plus for many clients who seek the power of latest features more than the stability.

digital ocean operating systems

Additionally, it’s possible to deploy either a container distribution or one click app as well. Container distribution is a minimal version of the operating system which is more suitable for advanced users. Unfortunately, at the moment only 3 operating systems are available under this category, Core OS, Fedora Atomic OS, RancherOS.

One click app simplifies the cloud computing even further by providing a range of popular web apps which can be installed with just one click right into the droplet. Afterward, the credentials to access the web app are emailed to the email address used during the registration in the service, whereby the webapp can be accessed to use. Some of the popular web apps are discourse, ghost, WordPress.

System Specification

There are 3 main hardware categories available for every droplet, and they are Standard, High Memory, High CPU. Each category is optimized for various purposes such as standard one is for regular users, high memory category is for apps which demand high memory, high cpu category is for apps which consume more CPU power. Fortunately, the fee is charged based on the hardware specification.

The cheapest droplet starts from just $5 per month, which is billed on an hourly basis, so it costs $0.007 per hour, and therefore a droplet can be destroyed at any time without paying the whole $5. The hardware specification of it is 512 MB, 1 CPU, 20 GB SSD disk, 1000 GB transfer. It goes up to 640 GB space, 64GB RAM, 20 CPU, 9TB transfer rate which is priced at $640 per month, meaning $0.952 per hour. After creating a droplet, its specs can be upgraded to higher tiers as well which increases the fee along with it.

Datacenters

There are a staggering 19 data centers across the globe in various countries. This is quite surprising for a small cloud computing provider. They are in New York, San Francisco, Amsterdam, Singapore, London, Frankfurt, Toronto, Bangalore. Surprisingly, the fee is consistent across all the data centers despite having different political and economy backgrounds. According to DigitalOcean, a brand new datacenter in Australia is on the horizon, which makes it ideal for Australian residents.

Additional Options

As additional networking, it provides private networking which is suitable to make an intranet among droplets, Backup which is for automating the backup on a weekly basis, Ipv6 which is for next generation networks, Data Monitoring which further enhances the existing monitoring system with additional services. These services are free of charges, except Backup which charges depending on the size of the droplet on a monthly basis.

If infrequent backups are taken, snapshots are much more ideal, but unfortunately they are charged $0.05 per gigabyte per month. So the more the snapshots the more it costs. By default, each droplet is assigned a password and a username automatically in the beginning, which are emailed to the email address of the user, but it’s possible to create a SSH key as well while the droplet is being created.

Object Storages

Object Storage is a brand new service introduced lately for hosting static files in the cloud as in Dropbox/Google drive. The files are accessible through the standard portal and can also be linked with droplets. Object storage doesn’t have multiple packages, but just one package which is free of charge for the first 2 months, then thereafter it’s billed $5 per month for 250GB space and 1TB inbound traffic. Overage fees are $0.02 per GB and $0.01 per GB, with free inbound data transfer.

Images

Apart from having automatic backup, droplets can be backed up manually as well. The manually taken backups are known as snapshots which can be used to restore droplets in case of a malfunction in the droplet. Unfortunately, it’s not possible to restore snapshots/backups taken from a higher tier package to a lower one.

Networking

The networking segment offers a range of features to enhance the networking side of the droplet. This includes advanced DNS records which are usually available at the domain name registrar. Floating IP is for making the droplet available even when it’s under maintenance, quite ideal for HAI (highly available infrastructure). Load balancers are for distributing the server load across multiple droplets with ease. A basic firewall to defend the droplets against intruders. The firewall isn’t meant to defend against DDOS attacks, and thus a professional level firewall is still required.

API

API makes it possible to design our own interface to interact with DigitalOcean services. This is mostly for programmers who intend to combine it with other services through a single interface. The documentation to the API can be found here. https://developers.digitalocean.com/documentation/v2/


Amazon Web Services (AWS)

Payment Method and Sign up

AWS makes the sign up process slightly difficult for new users by asking both phone verification and credit card verification. The phone verification can be done by either calling the customer support or typing the pin, shown on the screen, on the mobile. If the pin typing failed 2 times, it automatically blocks the sign up process for 12 hours. So the only way is contacting customer service to verify the account. However, customer support responds without any delay as long as “chat” is selected as the response method.

Instances and System Specification

As instances, it provides two options – EC2 and Lightsail. EC2 is based on “pay as you go” way whereas Lightsail has a fixed rate and fixed hardware specifications. The lowest package of EC2 starts from 0.5GB memory, and 1 CPU core with EBS space. EBS space is relatively slower than SSD storage, but it’s expandable up to 16TB from just 30GB given for free of charge for a year. It’s billed on an hourly basis as you go way, and priced at $0.0058 per Hour. The highest tier available at amazon is i3.16xlarge which costs $4.992 per hour, which totally would be staggering $3594.24 per month. There is no package in DigitalOcean matches to this humongous one at amazon, and thus it’s definitely suitable for corporate levels more than for small businesses.

Lightsail is same as EC2, except it has a flat fee which is charged at the end of the month, on the contrary to EC2, which has a “pay as you go” fee. However, even though it’s not stated on the surface both instances are actually charged on an hourly basis, and thus both are similar, in terms of charging frequency, to DigitalOcean. The upside of AWS is EC2 instance is only charged when it’s at running state, whereas Lightsail instance is charged whether it’s running or stopped, so this is quite similar to the pricing method at DigitalOcean. However, since both are almost same, it might confuse people more than benefit them.

Lowest tier in Lightsail is $5 and it’s basically same as the lowest tier in DigitalOcean. The highest tier available in Lightsail is $80 package which gives 8 GB Memory, 2 Core Processor, 80 GB SSD Disk, 5 TB Transfer which is comparable to $80 package in DigitalOcean, except it has more CPU power, and consistent data transfer rate across the whole globe which is not seen in Lightsail as it charges more for bandwidth in Mumbai and Sydney datacenters regardless of the package.

Operating Systems

At a first glimpse, it’s quite obvious that AWS doesn’t have as many  operating systems as DigitalOcean, and available ones are also a bit older as well, for instance, in DigitalOcean the latest available Ubuntu version is 17.10 whereas in AWS it’s 16.04 LTS. However, as a plus, AWS provides Windows operating system which is often used for hosting .NET web apps, and SQL Server databases. Lightsail provides both Windows Server 2012 and 2016.

aws operating systeam

Similar to DigitalOcean, AWS has a number of one click web apps (11), but its number is less than DigitalOcean (16), and it’s also limited to Lightsail by default, but users can still download a tremendous amount of 3rd party one click apps from amazon AWS market place. So technically AWS has thousands of one click apps. So basically AWS is much more complicated in terms of configuration but has more diverse options.

Static Content Hosting

Even though it’s possible to host static contents in DigitalOcean, there is no simple ready made solution like AWS. In AWS, static hosting is possible with the S3 service. As it is static contents no server side scripts are allowed, it means any client side script, html, css can be used with S3. This is a huge advantage for static content developers.

Domain Name Registration and Site Management

Surprisingly, AWS also acts as a domain name registrar, but it’s slightly expensive than in other places like Namecheap, for instance in AWS the .com domain is priced at $12, whereas in Namecheap it’s just $10.69. DigitalOcean at the moment doesn’t provide any service for registering new domains. Additionally, AWS goes much beyond and provides a whole new service just for managing websites. It’s known as Amazon Route 53. With 53, DNS management, traffic management, availability monitoring, domain registration as stated earlier are possible. With DigitalOcean at the moment it’s only possible to manage DNS. This is again slightly complicated due to the way it’s organized. So the whole problem AWS has is the lack of organization.


Conclusion

DigitalOcean and AWS both are extraordinary cloud computing services that provide sophisticated features which help in creating complex web applications at a decent price. DigitalOcean doesn’t have as many features, but available features are nicely organized, whereas in AWS feature organization is a whole mess, but AWS has a tremendous amount of features which are difficult to be reviewed in this small article.

AWS is often regarded as a corporate level cloud computing service, but given the fact it has a decent price model with good features which are comparable to DigitalOcean there is no huge advantage of moving to DigitalOcean. However, DigitalOcean is much more user friendly, and newbie friendly and has a consistent price scheme across the globe; hence DigitalOcean is recommended for new users, whereas AWS is mostly useful for experienced users.

]]>
Test Drive Ubuntu Server Distro on DigitalOcean https://linuxhint.com/ubuntu-17-10-on-digitalocean/ Sat, 25 Nov 2017 21:58:14 +0000 https://linuxhint-com.zk153f8d-liquidwebsites.com/?p=20320 DigitalOcean is a cloud services provider that is quick to setup and easy to manage.  This makes it the perfect choice for giving Ubuntu 17.10 (Artful Aardvark), or any other server distribution of Linux, a quick test drive to see what it looks like.  My first thought was to try out the new Gnome based User Interface on Digital Ocean and use Digital Ocean as a platform for testing new distributions.  However I found it takes a lot of hackery, too much for comfort, in order to get the remote desktop for Gnome working, so I have delayed the goal of having a fast and remote server for testing new UI features for now and in this demo/tutorial will focus on testing out the server version.

Step 1: Create an account and put in your payment information on Digital Ocean

Step 2: Click the big blue button that says Create Droplet as shown below

Step 3: Choose your OS distribution from the list of available choices as shown below.  I chose Ubuntu 17.10, as that was my goal to test it out.  But you can see a decent variety of choices ranging from Ubuntu, FreeBSD, Fedora, Debian, CoreOS and CentOS.  You can even pick from different version numbers of these distributions in a simple click.

OS Choices on Digital Ocean

Step 4: Choose how much power you want for your OS instance, and the price you are going to pay for it.  In this case I gave the 2 CPU, 2GB RAM instance type a test drive at a price of 3 cents an hour.  Given my test run was less then an hour, 3 cents is a more than a fair process for the service provided.

Digital Ocean Pricing for Instance Types

Step 5: Choose the geography region to run your instance, based on a located nearby you.

Digital Ocean Choose Geography

Step 6: Configure the SSH Key that will be used to access the server.  Here is a good tutorial if you need help with that part.  Be sure to make the file 600 permissions after putting it into the .ssh directory on your system.

Step 7: Watch the instance creation status and wait for it to complete.  In my test, it took about 1 minute for the instance to be created.  Capture the IP address and you can edit to your /etc/hosts file (using sudo) to make an easy alias on your system to access the server.

Instance Status Digital Ocean

Step 8: Log onto the server with this command below, here is the output I received on successful ssh into the server:

ssh -l root 138.68.53.111
The authenticity of host '138.68.53.111 (138.68.53.111)' can't be established.
ECDSA key fingerprint is SHA256:7FlDy349YemFgrw5o+UUkLTEBj+d338s4ueScgoogCQ.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '138.68.53.111' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 17.10 (GNU/Linux 4.13.0-17-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage

Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud

0 packages can be updated.
0 updates are security updates.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

root@ubuntu-2gb-sfo2-01:~#

Success, you have logged into the system now and are free to use it as you see please. The first thing I did was a system update using apt-get update and then I did a test of installing a package (g++ compiler) using the command apt-get install g++.  The great thing is you are on the DigitalOcean network, so no need to download the entire distribution ISO to your personal computer at home or in the office.  The packages are all staged on their network and lightening fast to download.  So the update and g++ compiler installation took less than 2 minutes on this instance.

Summary

  • Digital Ocean is a cost effect and easy way to provision and install a test instance of a new distribution
  • A wide variety of OS’s are pre-packaged and maintained making for easy and fast access
  • Testing GUI’s on this platform is possible, there are a number of articles showing how, but from my experience, not really a good option
  • Testing a new distribution on DigitalOcean is MUCH faster and easier than trying to use a Local VM.  So much faster!
]]>