Giter Site home page Giter Site logo

inlets-examples's Introduction

Inlets examples

This repo contains examples to use github.com/inlets/inlets(-pro).

Example 1: with docker-compose

docker-compose.yaml contains a layer 7 sample where the docker-compose service named server exposes a port to the host and in the background an inlet tunnel is used to connect to the service named web.

Example 2: with two kind clusters and a classic/legacy service

  • use k8s/start.sh k8s/stop.sh to start or stop the example.

  • example uses two kind clusters: one for a cloud-native cluster and one that acts as a bridge between classic/legacy and the cloud-native cluster

  • from the cloud-native cluster it is possible to reach a classic/legacy service by k8s means:

      ```
      kubectx kind-cloud-native
      k exec -it -n default netshoot-deploy-<TAB> -- curl classic-service
      ```
    
  • from the classic/legacy part the service svc of the cloud-native cluster is accessible:

      ```
      cd 0-classic && docker-compose up connecttocloudnative
      ```
    

L7 Performance (inlets OSS)

single request for a big file (500MB)

Source\Destination Cloud-Native Legacy
Cloud-Native 609MB/s 200MB/s
Legacy 147MB/s 708MB/s

200 parallel requests for a small file (1KB)

Source\Destination Cloud-Native Legacy
Cloud-Native 16.0MB/s 1.78MB/s
Legacy 2.3MB/s 14.66MB/s

95th percentile for latency

Source\Destination Cloud-Native Legacy
Cloud-Native 7ms 347ms
Legacy 176ms 12ms

L4 Performance (inlets-pro)

pgbench tps pgbench latency iperf throughput
Legacy 47000 2ms 35Gbit/s
Cloud-Native -> Legacy 12000 7ms 4.8GBit/s

inlets-examples's People

Contributors

mwindower avatar

Watchers

 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.