Skip to content

Instantly share code, notes, and snippets.

@skyrocknroll
Created June 11, 2017 20:24
Show Gist options
  • Save skyrocknroll/e982a9187dbf48aa0967d1f5235a4988 to your computer and use it in GitHub Desktop.
Save skyrocknroll/e982a9187dbf48aa0967d1f5235a4988 to your computer and use it in GitHub Desktop.
envoy grpc bridge
{
"listeners": [
{
"address": "tcp://0.0.0.0:5050",
"filters": [
{
"type": "read",
"name": "http_connection_manager",
"config": {
"codec_type": "auto",
"stat_prefix": "test",
"access_log": [
{
"path": "/tmp/grpc-ea-r.log"
}
],
"route_config": {
"virtual_hosts": [
{
"name": "backend",
"domains": [
"*"
],
"routes": [
{
"prefix": "/",
"cluster": "hello-world",
"timeout_ms": 15000,
"retry_policy": {
"retry_on": "5xx,connect-failure",
"num_retries": 2,
"per_try_timeout_ms": 6000
}
}
]
}
]
},
"filters": [
{
"type": "decoder",
"name": "router",
"config": {}
},
{
"type": "both",
"name": "grpc_http1_bridge",
"config": {}
}
],
"idle_timeout_s": 60
}
}
]
}
],
"cluster_manager": {
"clusters": [
{
"name": "hello-world",
"type": "static",
"connect_timeout_ms": 10000,
"lb_type": "round_robin",
"hosts": [
{
"url": "tcp://127.0.0.1:5000"
},
{
"url": "tcp://127.0.0.1:5001"
}
],
"features": "http2",
"circuit_breakers": {
"default": {
"max_connections": 1024,
"max_pending_requests": 1024,
"max_requests": 1024,
"max_retries": 9
}
}
}
]
},
"admin": {
"access_log_path": "/tmp/admin-access-r.log",
"profile_path": "/tmp/cpu.prof",
"address": "tcp://0.0.0.0:6457"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment