> Now chash key only support fetch from nginx variable. We need to be more flexible approach, > eg: cookie, custom header and so on.
We can fetch `header`, `cookie` and `vars` by nginx variable. It should be enough. Here are some examples: cookie: ctx.var.cookie_**** customer header: ctx.var.http_**** argument: ctx.var.args_**** Supports the `consumer` is useful, I love this style. On Mon, Dec 23, 2019 at 8:49 PM codjust <[email protected]> wrote: > Now chash key only support fetch from nginx variable. We need to be more > flexible approach, > eg: cookie, custom header and so on. > Here is an example to achieve: > upstream json schema: > hash_on = { type = "string", default = "vars", > enum = { "vars", "header", > "cookie", "consumer" }, }, key > = { description = "the key of chash for dynamic load > balancing", type = "string" }, > eg: -- *MembPhis* My github: https://github.com/membphis Apache APISIX: https://github.com/apache/incubator-apisix
