Skip to content

Ko1103/envoy-connection-limit-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo envoy connection limit.

リクエスト先のサーバに同時接続台数の制限がある場合、クライアントでconnectionを制限するなどの方法がある。 Node.jsなどのアプリケーションでコネクション数を制限できるが、envoyを使ってネットワークの設定とアプリケーションを分けられる方がよいのでそれを試す。

Description

想定している構成(K8sの場合)

Pod[Node.js + envoy(as side car)] -> Service A

demoで用意した構成

K6 --> envoy(Side car) --> envoy(side car with Service A) --> Service A

Service Aは同時接続台数に制限があり、envoyでPodから1つだけConnectionを貼りにいくことができるか検証 ServiceA側の接続台数制限を表現するために、Service Aの前段にもenvoyを用意

環境

  • M1 Mac(OS: mac OS Monterey)

準備

  • docker desktopをinstall
  • k6をinstall
brew install k6

Quick Start

docker compose up
k6 run script.js

参考

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks