Coder Social home page Coder Social logo

linkerd-tcp-example's Introduction

linkered-tcp example

Background

linkered-tcp is a TCP proxy useed by the linkerd service mesh network. This example is using it as a standalone TCP proxy, without the rest of the linkerd functions. The only other function which is needed is namerd which is used for service discovery. In our test, service discovery is not needed, and the mapping between the service and its address is done staticaly. However, the namerd function is still mandatory for the linkerd-tcp process.

Prerequisites

Following things needs to be installed on the machine:

  • rust: linkerd-tcp is implemented in rust
  • cargo: build and dependency tool for rust
  • docker: the echo server runs inside docker
  • java: namerd (as well as rest of linkerd) is implemented in scala

Installation

Run ./get-linkerd.sh, this will clone the linkerd-tcp repo, and build it using cargo, and then will download namerd.

Setup

Run ./setup.sh to start namerd, linkerd-tcp and a docker container running a TCP echo server

Teardown

Run ./setup.sh to stop namerd, linkerd-tcp and the docker container

Test

Run nc 127.0.0.1 5555 to see that the server works via the proxy. To check that it works by itself use: nc 127.0.0.1 5556

namerd

Note that file based namer is configured in the system (io.l5d.fs using the disco directory), however, the directory is empty, and the mapping between the echo service and its actual IP/port (127.0.0.1:5556) is done statically in namerd.yml

linkerd-tcp-example's People

Contributors

yuvalif avatar

Stargazers

ik5 avatar

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.