Charlie Joseph

Written on

Deploy SingleStore self-managed in less than 30 seconds!

A script for installing SingleStore's self-managed tier in less than 30 seconds.

I’ve been a huge advocate and user of SingleStore for well over 3 years at this point, their solution has allowed me to scale beyond I’d ever imagined on a $50/mo Hetzner AX41-NVME. I’ve been able to surpass 2 billion records in total with an average of 100 million new records added per month.

I’ve installed SingleStore more times than I can count on both hands, and I was getting tired of running the same commands each and every time. So I decided, why not just automate it!

This script has been my go-to for years now and lets me deploy the self-managed tier in just under 30 seconds with little to no input needed.

Requirements

Installation

First you’ll need to SSH into your Linux machine and then paste the following command into your terminal:

bash <(curl -fsSL https://charliej.com/singlestore.sh)

Or, if you’d prefer to first inspect the contents of the script, you can do so by running:

wget https://charliej.com/singlestore.sh
cat singlestore.sh

And then run it by doing the following:

chmod +x singlestore.sh
./singlestore.sh

It’ll prompt you to enter your SingleStore license key, this is completely free and I’ll guide you how to do it.

  1. Head to portal.singlestore.com
  2. Sign-in / Sign-up and then click your name in the top right.
  3. Select the “Licenses” dropdown option.

You’ll need to copy the license that says “Free License”.

Now it will ask you to enter the password you wish to use for your root user, be sure to set this to something secure and write it down somewhere!

It’ll take a couple seconds to install the needed packages and configure SingleStore, and then it’ll be all ready to use. You can now connect to it by entering the following details:

If you have any problems, feel free to contact me on Twitter at @heychazza.