Mirroring local clusters to the Cloud
This tutorial is a demonstration of mirroring locally with two clusters on docker.
Home and Remote
To understand mirroring, we need to understand what is a Home and a Remote cluster:
- Home cluster is the target cluster that will receive and consume data.
- Remote cluster is the source cluster that will send data.
Install Fluvio
Create a Cloud account
Using your web browser, navigate to https://infinyon.cloud/ui/signup, where this experimental feature is available.
After the account is created, you will be placed in the Dashboard. You may choose to create a cluster in the GUI. In this tutorial, we'll create a cluster using the CLI later.
Download fluvio
binary
Use curl
to download and install:
curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
Make sure to add .fluvio/bin
to the $PATH
as specified in the installation script.
Login to InfinyOn Cloud
Login to InfinyOn Cloud:
fluvio cloud login --use-oauth2
Leave out --use-oauth2
if you prefer username/password method.
Provision a new Cluster
Let's provision a new cloud cluster
fluvio cloud cluster create
Check the result with:
fluvio cluster status
Next, we'll configure the cluster to receive traffic from the remote clusters.
Register Remote clusters on the Home
Use the remote
CLI to register the remote clusters with the home cluster:
fluvio remote register edge-remote
List remote clusters to check their status:
fluvio remote list
It should show the following:
REMOTE SC STATUS SPU STATUS LAST SEEN ERRORS
edge-remote Waiting Waiting - -