Litestream-read-replica-demo - A demo application for running live read replication on fly.io with Litestream

Litestream Read Replica Demo

A demo application for running live read replication on fly.io with Litestream

Setup

# Setup app & fly.toml file
fly launch --name litestream-read-replica-demo --region ord --no-deploy

# Create a disk for each node
fly volumes create --region ams --size 1 data
fly volumes create --region atl --size 1 data
fly volumes create --region cdg --size 1 data
fly volumes create --region dfw --size 1 data
fly volumes create --region ewr --size 1 data
fly volumes create --region fra --size 1 data
fly volumes create --region gru --size 1 data
fly volumes create --region hkg --size 1 data
fly volumes create --region iad --size 1 data
fly volumes create --region lax --size 1 data
fly volumes create --region lhr --size 1 data
fly volumes create --region maa --size 1 data
fly volumes create --region nrt --size 1 data
fly volumes create --region ord --size 1 data
fly volumes create --region scl --size 1 data
fly volumes create --region sea --size 1 data
fly volumes create --region sin --size 1 data
fly volumes create --region sjc --size 1 data
fly volumes create --region syd --size 1 data
fly volumes create --region yyz --size 1 data

# Scale to one for each region
fly scale count 19

# Deploy application
fly deploy
Similar Resources

A simple application, demo at this point, on how to pull a backup from Collibra on prem (say for Cohesity backup)

A simple application, demo at this point, on how to pull a backup from Collibra on prem (say for Cohesity backup)

go-get-collibra-backup Introduction This repository is a very simple go application that's intended, at this point, more of a demonstration about how

Dec 10, 2021

Linux provisioning scripts + application deployment tools. Suitable for self-hosting and hobby-scale application deployments.

Apollo Linux provisioning scripts + application deployment tools. Suitable for self-hosting and hobby-scale application deployments. Philosophy Linux-

Feb 7, 2022

A kubernetes plugin which enables dynamically add or remove GPU resources for a running Pod

A kubernetes plugin which enables dynamically add or remove GPU resources for a running Pod

GPU Mounter GPU Mounter is a kubernetes plugin which enables add or remove GPU resources for running Pods. This Introduction(In Chinese) is recommende

Jan 5, 2023

KEDA is a Kubernetes-based Event Driven Autoscaling component. It provides event driven scale for any container running in Kubernetes

 KEDA is a Kubernetes-based Event Driven Autoscaling component. It provides event driven scale for any container running in Kubernetes

Kubernetes-based Event Driven Autoscaling KEDA allows for fine-grained autoscaling (including to/from zero) for event driven Kubernetes workloads. KED

Jan 7, 2023

Orchestra is a library to manage long running go processes.

Orchestra Orchestra is a library to manage long running go processes. At the heart of the library is an interface called Player // Player is a long ru

Oct 21, 2022

Kubedock is a minimal implementation of the docker api that will orchestrate containers on a Kubernetes cluster, rather than running containers locally.

Kubedock Kubedock is an minimal implementation of the docker api that will orchestrate containers on a kubernetes cluster, rather than running contain

Nov 11, 2022

Carrier is a Kubernetes controller for running and scaling game servers on Kubernetes.

Carrier is a Kubernetes controller for running and scaling game servers on Kubernetes.

Carrier is a Kubernetes controller for running and scaling game servers on Kubernetes. This project is inspired by agones. Introduction Genera

Nov 25, 2022

Running OpenFaas Pro on Linode K8s (feat. Aiven and Pulumi)

Running OpenFaas Pro on Linode K8s (feat. Aiven and Pulumi) Alex Ellis did a great job, when he wrote a tutorial about Event-driven OpenFaaS with Mana

Apr 26, 2022

quick debug program running in the k8s pod

quick debug program running in the k8s pod

quick-debug English | δΈ­ζ–‡ What Problem To Solve As the k8s becomes more and more popular, most projects are deployed in k8s, and so is the development

Apr 1, 2022
Comments
  • Auto-scaling within a region

    Auto-scaling within a region

    This is very cool!

    I was just pondering into the future about how this would work with fly.io auto-scaling in both a single region as well as multiple regions.

    For example, imagine this sample app in the ord region set to horizontally auto-scale 1-10 nodes (1 master and up to 9 read replicas) but also replicate to the lhr and syd regions, which in turn auto-scale their reads as necessary.

    THAT would be a game changer.. :) I bet Kurt from fly.io is all over this idea..

GoKubernetes - Demo application for Kubernetes Up and Running
GoKubernetes - Demo application for Kubernetes Up and Running

Demo application for "Kubernetes Up and Running" Running kubectl run --restart=N

Jan 22, 2022
Example project with Litestream and Go

Example project with Litestream and Go This repo contains a simple application that tracks number of page views. The main purpose was to prototype run

May 7, 2022
Kubegres is a Kubernetes operator allowing to create a cluster of PostgreSql instances and manage databases replication, failover and backup.

Kubegres is a Kubernetes operator allowing to deploy a cluster of PostgreSql pods with data replication enabled out-of-the box. It brings simplicity w

Dec 30, 2022
Asynchronous data replication for Kubernetes volumes

VolSync VolSync asynchronously replicates Kubernetes persistent volumes between clusters using either rsync or rclone. It also supports creating backu

Jan 1, 2023
The OCI Service Operator for Kubernetes (OSOK) makes it easy to connect and manage OCI services from a cloud native application running in a Kubernetes environment.

OCI Service Operator for Kubernetes Introduction The OCI Service Operator for Kubernetes (OSOK) makes it easy to create, manage, and connect to Oracle

Sep 27, 2022
A very simple, silly little kubectl plugin / utility that guesses which language an application running in a kubernetes pod was written in.

A very simple, silly little kubectl plugin / utility that guesses which language an application running in a kubernetes pod was written in.

Mar 9, 2022
False-sharing-demo - Demo for performance effects of CPU cache false-sharing

Example of CPU cache false-sharing in Go. A simple example where 2 integer varia

Aug 28, 2022
A live-updating version of the UNIX wc command.
A live-updating version of the UNIX wc command.

lwc A live-updating version of the UNIX wc command. Installation You can get a prebuilt binary for every major platform from the Releases page. Just e

Jul 26, 2022
This project will help you to create Live img.shields.io Badges which will Count YouTube Stats (Subscriber, Views, Videos) without YouTube API
This project will help you to create Live img.shields.io Badges which will Count YouTube Stats (Subscriber, Views, Videos) without YouTube API

Free YouTube Stats Badge This project will help you to create Live img.shields.io Badges which will Count YouTube Stats (Subscriber, Views, Videos) wi

Oct 11, 2022
πŸ”Ž gowatch Live reload for go apps.

Watch ?? gowatch Live reload for go apps Motivation I had no app to live reload my Go programs. Usage Install go install github.com/gelfand/gowatch β—†

Dec 29, 2021