ngx_http_consistent_hash
ngx_http_consistent_hash copied to clipboard
a module which enables the nginx to use the same consistent hashing distribution for memcache servers as the php memcache module
consistent_hash $arg_*; this can hash with args in url but not in $request_body
### Centos Version: ```shell [root@tvvmjt0128 ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) ``` ### OpenResty Infos: ```shell [egwnode@tvvmjt0128 coredump]$ openresty -V nginx version: openresty/1.19.9.1 built by gcc 4.8.5 20150623...
``` for (i = 0; i < us->servers->nelts; i++) { for (j = 0; j < server[i].naddrs; j++) { for (k = 0; k < (MMC_CONSISTENT_POINTS * server[i].weight); k++) {...
Please refer to [Converting Static Modules to Dynamic Modules | NGINX](https://www.nginx.com/resources/wiki/extending/converting/#) for dynamic modules.
I added a custom field to the request header. the file is : session my nginx config: ` location /abc { proxy_pass http://d/logServer/; } ` ` upstream d { hash...