Skip to content

Commit

Permalink
[skip ci] Update README descriptions of distributions
Browse files Browse the repository at this point in the history
Related to twitter#578
  • Loading branch information
TysonAndre committed Jul 4, 2021
1 parent 2d49179 commit be8fa00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ Twemproxy can be configured through a YAML file specified by the -c or --conf-fi
+ murmur
+ jenkins
+ **hash_tag**: A two character string that specifies the part of the key used for hashing. Eg "{}" or "$$". [Hash tag](notes/recommendation.md#hash-tags) enable mapping different keys to the same server as long as the part of the key within the tag is the same.
+ **distribution**: The key distribution mode. Possible values are:
+ ketama
+ modula
+ random
+ **distribution**: The key distribution mode for choosing backend servers based on the computed hash value. Possible values are:
+ ketama (default, recommended. An implementation of https://en.wikipedia.org/wiki/Consistent_hashing)
+ modula (use hash modulo number of servers to choose the backend)
+ random (choose a random backend for each key of each request)
+ **timeout**: The timeout value in msec that we wait for to establish a connection to the server or receive a response from a server. By default, we wait indefinitely.
+ **backlog**: The TCP backlog argument. Defaults to 512.
+ **preconnect**: A boolean value that controls if twemproxy should preconnect to all the servers in this pool on process start. Defaults to false.
Expand Down

0 comments on commit be8fa00

Please sign in to comment.