Enterprises love Azure and they love MinIO on Azure. According to Flexera’s 2022 State of the Cloud Report, enterprises run more workloads on Azure than AWS. A significant portion of the more than one million public cloud deployments of MinIO run in Azure.
We built a managed application in Azure Marketplace that can be deployed in a few clicks. Deploying MinIO as a managed app is a streamlined experience that offloads the effort from you through automations and transparent integrations with Azure components. It’s the quickest way to get started developing applications using MinIO object storage on Azure.
We also know that you, like us, want the flexibility to do it your way. So, here’s how to Install MinIO on Azure virtual machines- and customize it all to you and your environment’s specifications.
This is a guide on how to deploy MinIO on Azure. We will create four virtual machines, each with four 1 TiB Premium SSD drives. Then we will SSH into our virtual machines and install MinIO in distributed mode.
- You need an Azure account, by either providing a credit card or by getting the account from your company/administrator.
- Install Putty on Windows or use Terminal on Mac, or use a similar program to connect via ssh to the virtual machine we are going to create for this tutorial.
- Create 4 virtual machines in Azure:
2. Under Basics, Project Details, Subscription, enter a new resource group or select and existing resource group for this virtual machine:
We’re going to use the Standard_D2s_v3 instance to deploy for this tutorial. Depending on your use case, you might want to deploy DS3_v2 or D8s_v3 because they have more vCPUs, more RAM and a bigger IOPS values as shown in Azure Portal when displaying the most used machines (image below), this will allow you to save objects faster and latency will be reduced; having a better throughput for MinIO and other applications. You can use the Azure Calculator to estimate the price you will pay based on the time your virtual machine will be used.
3. Then allow administrator access over SSH connection via port 22:
Click Next: Disks to advance.
4. Select the Storage option, where you can configure the type of disks. Choose Premium SSD for performance-sensitive workloads, Standard SSD for web servers and other applications, or Standard HDD for backup or non-critical access. Then, attach 4 disks to each machine.
Click the “Next: Networking >” button to advance.
5. Add your virtual machine to a new or existing virtual network and IP subnet. Note that all virtual machines in your MinIO cluster must use the same subnet so that they can communicate between each other:
6. If you want, you can add tags to your virtual machines to help you identify and work with them. Click on Tags and enter the name and value as applicable.
7. Finally, click Review + create. Review your settings. Then click Create.
8. Generate and download a new private key.
Sit back and watch deployment.
9. You will now have 4 virtual machines to use when deploying MinIO in distributed mode.
11. Append to each virtual machine the hosts to /etc/hosts
In the example PEM file below, the four bottom lines are the lines that you need to append to each hos. You can get the IP Address from the ifconfig command:
12. Once connected to your VMs, you will need to mount the disks, format the disks, create directories, download MinIO and execute it. You must do this for each endpoint.
You can use script below to format the disks:
Once the drives are mounted and formatted, you can create data directories and install MinIO. When complete, you should see 16 drives online, recall that we have 4 disks per VM and 4 VMs, so 4x4=16.
13. Create an extra connection to run mc, the MinIO client. MC includes a rich set of S3-compatible commands that can be used to manage and troubleshoot your MinIO deployment.
Let’s measure the speed of MinIO with our new feature, SpeedTest. This will run a quick, automated series of drive speed measurements on all drive on all nodes. First we’ll create an alias to make it easier to manage our MinIO deployment..
Deploy MinIO on Azure Today
MinIO is now installed and you have verified performance on Azure virtual machines. We used Premium SSD, but you can use any storage medium or tier across storage media. Now you can use your preferred interface to create buckets and further configure your deployment.
If you have any questions, ping us on email@example.com or join our Slack community.