Skip to content

Commit 0462d4b

Browse files
committed
RLS config: update comments on max_age and stale_age
1 parent 483f11e commit 0462d4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

grpc/lookup/v1/rls_config.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,16 @@ message RouteLookupConfig {
188188

189189
// How long are responses valid for (like HTTP Cache-Control).
190190
// If omitted or zero, the longest valid cache time is used.
191-
// This value is clamped to 5 minutes to avoid unflushable bad responses.
191+
// This value is clamped to 5 minutes to avoid unflushable bad responses,
192+
// unless stale_age is specified.
192193
google.protobuf.Duration max_age = 5;
193194

194195
// After a response has been in the client cache for this amount of time
195196
// and is re-requested, start an asynchronous RPC to re-validate it.
196197
// This value should be less than max_age by at least the length of a
197198
// typical RTT to the Route Lookup Service to fully mask the RTT latency.
198199
// If omitted, keys are only re-requested after they have expired.
200+
// This value is clamped to 5 minutes.
199201
google.protobuf.Duration stale_age = 6;
200202

201203
// Rough indicator of amount of memory to use for the client cache. Some of

0 commit comments

Comments
 (0)