rds: make hash policy extensible. (#52)

Fixes #5.
pull/54/head
htuch 8 years ago committed by GitHub
parent 35bd263aef
commit 7e3dacd261
  1. 15
      api/rds.proto

@ -199,9 +199,18 @@ message ForwardAction {
google.protobuf.BoolValue include_vh_rate_limits = 13;
message HashPolicy {
string header_name = 1;
// Do we want to extend this for additional session affinity inputs?
// [V2-API-DIFF]
// [V2-API-DIFF] We expect additional hash policies in the future, e.g.
// cookie based, originating IP, etc.
message Header {
// The name of the request header that will be used to obtain the hash
// key. If the request header is not present, the load balancer will use a
// random number as the hash, effectively making the load balancing policy
// random.
string header_name = 1;
}
oneof policy_specifier {
Header header = 1;
}
}
repeated HashPolicy hash_policy = 14;
}

Loading…
Cancel
Save