overload: add a file-based injected resource monitor (#4298)
This allows injecting a synthetic resource pressure from a file, primarily intended for use in integration tests to force envoy into an overloaded state. Testing: unit tests Docs Changes: docs updated to reference new resource monitor Signed-off-by: Elisha Ziskind eziskind@google.com Mirrored from https://github.com/envoyproxy/envoy @ 12957a29bd2627bc0bba921603bd5869a449be47pull/620/head
parent
c0a702b3c6
commit
e19a09b8f8
4 changed files with 28 additions and 0 deletions
@ -0,0 +1,9 @@ |
||||
load("//bazel:api_build_system.bzl", "api_proto_library_internal") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
api_proto_library_internal( |
||||
name = "injected_resource", |
||||
srcs = ["injected_resource.proto"], |
||||
visibility = ["//visibility:public"], |
||||
) |
@ -0,0 +1,16 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.config.resource_monitor.injected_resource.v2alpha; |
||||
option go_package = "v2alpha"; |
||||
|
||||
import "validate/validate.proto"; |
||||
|
||||
// [#protodoc-title: Injected resource] |
||||
|
||||
// The injected resource monitor allows injecting a synthetic resource pressure into Envoy |
||||
// via a text file, which must contain a floating-point number in the range [0..1] representing |
||||
// the resource pressure and be updated atomically by a symbolic link swap. |
||||
// This is intended primarily for integration tests to force Envoy into an overloaded state. |
||||
message InjectedResourceConfig { |
||||
string filename = 1 [(validate.rules).string.min_bytes = 1]; |
||||
} |
Loading…
Reference in new issue