Git Product home page Git Product logo

try-envoy-monitoring's Introduction

Envoy Dynamic Configuration with Go-Control-Plane

This project demonstrates the integration of Envoy Proxy with the Go-Control-Plane to dynamically manage configurations, particularly for a Redis cluster. The focus is on implementing TCP health checks to monitor the status of Redis nodes and update Envoy's configuration in response to changes in the Redis cluster.

image

Overview

Envoy is used as a front proxy in this setup, routing traffic to a Redis cluster. The Go-Control-Plane serves as an xDS server to dynamically update Envoy's configuration, especially for handling changes in the Redis master node.

Features

  • Dynamic Redis Cluster Management: Automatically updates Envoy's configuration when the Redis master node changes.
  • TCP Health Checks: Implements health checks for Redis nodes to monitor their status.
  • Efficient Configuration Updates: Utilizes Envoy's xDS APIs for seamless and efficient configuration updates without restarting Envoy.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Docker
  • Golang (for running the Go-Control-Plane)
  • An Envoy Proxy setup

Installation

  1. Build and run the containers (including Envoy, Redis, and the Go-Control-Plane):

    docker-compose up --build

Configuration

  • Envoy Configuration: Configured to communicate with the Go-Control-Plane for dynamic updates.
  • Go-Control-Plane: Implements the xDS protocol to manage Envoy's configuration, particularly for updating Redis cluster information and health checks.

Health Check Implementation

The health checks for Redis are implemented using TCP checks. The Go-Control-Plane sends PING commands to the Redis nodes and expects a PONG response to confirm their status.

Usage

Once the setup is running, Envoy will dynamically adjust its routing based on the health and status of the Redis nodes as provided by the Go-Control-Plane.

try-envoy-monitoring's People

Contributors

alexshnup avatar

Watchers

 avatar

try-envoy-monitoring's Issues

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.