- create a cloud-hosted Ubuntu 18.04 instance (Google, AWS, Azure, DigitalOcean, etc) with 4+ GB RAM, 2-4+ cores and 10+ GB disk.
- ssh to it.
- run
sudo apt update; sudo apt install -y docker.io docker-compose; sudo docker-compose up
- wait 15-20 minutes, then point your browser at :8000 - remember that you may (probably) need to open your cloud provider's firewall for this port. If that sounds scary, you can create an SSH tunnel from your PC (e.g. Mac) using
ssh -N <server ipaddr> -L 8000:<same ipaddr>:8000
to forward your laptop's port 8000 to the server via SSH tunneling.
note that you'll need to wait for a message saying Backend server started...
like this:
kyrix_1 | Serving /project
kyrix_1 | New project definition coming...
kyrix_1 | There is diff that requires recomputing indexes. Shutting down server and recomputing...
kyrix_1 | Precomputing...
kyrix_1 | *** done! Kyrix ready at: http://<host>:8000/ (may need a minute to recompute indexes - watch this log for messages)
kyrix_1 | Done precomputing!
kyrix_1 | Completed recomputing indexes. Server restarting...
kyrix_1 | Backend server started...
You will need a Kubernetes cluster provider - these instructions are for Google Cloud. Learn more about CitusDB
- install kubectl (e.g.
sudo snap install kubectl --classic
- kubectl docs) - setup kubectl to the given cluster (e.g.
gcloud container clusters get-credentials <cluster name>
- gcloud install instructions) - run
./redeploy-citus; ./redeploy-kyrix-server
then wait for "Backend server started..." (see above) - look for "Kyrix running; run 'source setup-kyrix-vars.env' for convenience scripts/functions or visit http://:8000/
- point a browser at this URL - for most kubernetes providers, no firewall changes should be required.
coming soon: parallel speedups; admin instructions for citus clusters.