Overload Manager using injected resource

7 views
Skip to first unread message

Madhu Shankar

unread,
Sep 30, 2019, 3:37:52 AM9/30/19
to envoy...@googlegroups.com
Hi,

We are tying to enable overload manger in Envoy 1.8.0, based on CPU and Memory usage. For this, we tried using the injected_resource. Form the stats, we see that Envoy is able to read the injected_resource file. But when the threshold is reached, requests are not getting rejected with 503. The injected_resource documentation says that it is intended for integration tests, does it mean we can't use it in production or is it not enabled in the version we are using(1.8.0)? Below are the envoy configuration and stats emitted by envoy, please let me know if there is anything wrong in the configuration or if my understanding is incorrect.

Configuration:
overload_manager:
refresh_interval:
seconds: 0
nanos: 250000000
resource_monitors:
- name: "envoy.resource_monitors.injected_resource"
config:
filename: "/tmp/envoy_cpu_usage"
actions:
- name: "envoy.overload_actions.stop_accepting_requests"
triggers:
- name: "envoy.resource_monitors.injected_resource"
threshold:
value: 0.65
Metrics:
envoy.overload.envoy.resource_monitors.injected_resource.pressure = 75, for testing, we are emitting this number(0.75) temporarily.
envoy.overload.envoy.overload_actions.stop_accepting_requests.active = 1, 50% of the times.

Thanks,
Madhu
Reply all
Reply to author
Forward
Message has been deleted
0 new messages