The easiest way to deploy Rindle is with Cloud Rindle.
Deploy
Install the Cloud CLI in your project. npx rindle runs the copy installed there; without it, npx
would fetch an unrelated npm package that happens to be named rindle.
npm install --save-dev @rindle/cliSign in. This opens a browser to confirm a code:
npx rindle loginThen, from your project directory:
npx rindle deploydeploy creates a free database. No payment method is needed.
It creates the database, waits until it’s ready, and prints how to reach it:
RINDLE_URL=https://app-7f3k2q.rindle.cloud
RINDLE_API_TOKEN=4f9c…Set both in your server’s environment, wherever it runs. Keep the token server-side.
Running deploy again re-uses the same database rather than creating another. The project is
bound to it in .rindle/cloud.json, which holds no secrets and is safe to commit.
When every server is full
The database is still created. It waits in a queue while we provision more servers, and starts on its own when one has room, oldest first. We email you when it does.
deploy says the database is in the queue, and where it stands, and returns instead of waiting.
Run it again to check. In the dashboard the database is marked queued, and its page shows its
place in line. A queued database counts toward your two, and deleting it gives up its place.
We don’t promise how long the wait is: it ends when we add a server. A database created by
deploy takes the first seat that opens in either region; one created in the dashboard waits
for the region you picked.
The free tier
Cloud Rindle is free while it is an experiment. There is one plan:
| Free | |
|---|---|
| Price | Free. No payment method is asked for. |
| Storage | 5 GB |
| Memory | 512 MB |
| CPU | Shared |
| Databases | Up to two per account at a time |
| Backups | None |
The CPU is shared. Your database runs in its own process on a server it shares with other people’s databases. It can use up to one core when the server has one to spare, and none is reserved for it, so the same query can take longer while its neighbours are busy. Don’t read a benchmark taken here as what Rindle does on a machine of its own. A guaranteed CPU will be a paid plan. That plan is not on sale yet.
Free databases may be wiped when Cloud Rindle moves from experiment to official release.
The 5 GB is everything the database keeps on disk (rows, indexes and its write log), so it holds less than 5 GB of row data. Writes fail once it is full. The dashboard’s metrics page shows how much is used.
Backups
There are no backups. Each database is one process on one machine, and nothing is copied off that machine, so if it is lost the data is lost with it. Keep your own copy of anything you cannot afford to lose.
The 60-second window on the Consistency page describes a self-hosted leader that ships its log to object storage. It does not apply here.
Regions
Two regions: US West (Hillsboro, Oregon) and US East (Warrenton, Virginia). Pick one when you create a database in the dashboard.
npx rindle deploy picks for you: the default region, currently US West, or another with room
when the default is full. To choose yourself, create the database in the dashboard and bind the
project to it with npx rindle link <app-id>.
Other Commands
The rindle command is the @rindle/cli package:
plain TypeScript that talks to Cloud Rindle, with nothing to compile and no server inside it.
| Command | Does |
|---|---|
npx rindle whoami |
Shows the signed-in account |
npx rindle logout |
Signs out and deletes the saved credential |
npx rindle link <app-id> |
Binds the project to a database created in the dashboard |
npx rindle migrate create <name> |
Writes the next numbered migrations/NNNN_<name>.sql for your schema change |
npx rindle migrate apply |
Applies the migrations the database has not applied yet, in file-name order |
npx rindle migrate status |
Shows which migrations are applied and which are pending |
npx rindle reset --yes |
Erases every table, row and migration in the database; its URL and token stay |
A migration is schema SQL, applied once under its file name: the same thing
migrate(name, sql) does from code. An applied name
is skipped even if you edit the file, so put each further change in a new file.
To start over while you develop, reset the database: npx rindle reset --yes, or Reset
database on its dashboard page. Every table, row and migration is erased, and the URL and token
stay the same, so your app keeps working and your migrations apply again. Connected clients
reconnect to the empty database. It cannot be undone, and a database that ships its log to a
backup can’t be reset.
Logs, metrics, resetting and deleting a database are in the dashboard at cloud.rindle.sh. Deleting is immediate and permanent.
To find a slow query, filter the logs for slow-query or slow-advance. A line says how long
it took, the table, and the name of the query when it has one.