GithubHelp home page GithubHelp logo

erst-cloudnative / oci-oss-mirror-maker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oracle-quickstart/oci-oss-mirror-maker

0.0 0.0 0.0 43 KB

A quickstart to demonstrate MirorMaker2 with OSS

License: Universal Permissive License v1.0

Shell 1.41% HCL 98.59%

oci-oss-mirror-maker's Introduction

oci-oss-mirrormaker

Mirror Maker 2 [MM2] is an open-source tool which allows users to geo replicate streams from one region to another. Following use-cases can be met with MM2

  1. Active-Passive setup
  2. Active-Active setup
  3. Migrating from on-premise to OSS
  4. Multi cloud setup

This quick start will get you started with the Mirror Maker 2 on OCI.

Prerequisites

  • Permission to manage the following types of resources in your Oracle Cloud Infrastructure tenancy: vcns, internet-gateways, route-tables, network-security-groups, subnets, OSS, and instances.

  • Quota to create the following resources: 1 VCN, 1 subnets, 1 Internet Gateway, 1 NAT Gateway, 2 route rules, 2 OSS stream pools, 1 OSS Connect Harness and 1 compute instances.

If you don't have the required permissions and quota, contact your tenancy administrator. See Policy Reference, Service Limits, Compartment Quotas.

Deploy Using the Terraform CLI

Clone the Module

Now, you'll want a local copy of this repo. You can make that with the commands:

git clone https://github.com/oracle-quickstart/oci-oss-mirrormaker.git
cd oci-oss-mirrormaker
ls

Set Up and Configure Terraform

  1. Complete the prerequisites described here.

  2. Create a terraform.tfvars file, and specify the following variables:

# Authentication
tenancy_ocid         = "<tenancy_ocid>"
current_user_ocid    = "<user_ocid>"
fingerprint          = "<finger_print>"
private_key_path     = "<pem_private_key_path>"

# Region
region = "<oci_region>"
targetRegion = "<target_region>"

# Compartment
compartment_ocid = "<compartment_ocid>"

generate_public_ssh_key = false
public_ssh_key = "<ssh-rsa AAAAB3NzaC .... rsa-key-20211034>"
private_ssh_key_path = "<path_to_pem_file>"


Create the Resources

Run the following commands:

terraform init
terraform plan
terraform apply

Destroy the Deployment

When you no longer need the deployment, you can run this command to destroy the resources:

terraform destroy

Quick Start Architecture

Mirror Maker 2 makes use of the Kafka connect ecosystem to instantiate three connectors, which are:-

  1. MirrorSourceConnector
  2. MirrorCheckpointConnector
  3. MirrorHeartbeatConnector

We will be creating the following resources for this Quick start

  1. Stream pool in source and target regions
  2. Kafka Connect Harness in the target region
  3. VCN and instance in the public subnet of VCN.
  4. And finally we install and run MM2 on the instance.

NOTE: This setup is only for OSS capability demonstration purpose. In production one would use private endpoints for streams and regions would be connected by the DRG or a VPN/Fastconnect.

Limitations of the MM2 with OSS

  • OSS doesn’t support compacted topics yet. So creation of offsets, heartbeat and checkpointing topics by mirror maker will throw an exception. But when Auto Create Topics in enabled in the Stream Pool then at the time of publishing data these topics will be auto created although they will not be compacted.
  • sync.group.offsets.enabled=true is not supported in OSS
  • sync.topic.acls.enabled=true is not supported in OSS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.