Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hash and distribution algorithms get calculated incorrectly #655

Open
kvelaro opened this issue Sep 28, 2021 · 0 comments
Open

Hash and distribution algorithms get calculated incorrectly #655

kvelaro opened this issue Sep 28, 2021 · 0 comments

Comments

@kvelaro
Copy link

kvelaro commented Sep 28, 2021

Here is command we run

./src/nutcracker -c conf/nutcracker.trk.yml --verbose=8

Below is config mentioned above

primary-servers:
  listen: 127.0.0.1:22120
  hash: crc32
  distribution: modula
  timeout: 4000
  backlog: 1024
  preconnect: false
  server_retry_timeout: 2000
  server_failure_limit: 10
  servers:
   - 192.168.9.11:11211:1
   - 192.168.9.8:11211:1
  .... (19 servers more)

Options we use in direct connection from php libmemcached library

$memcached->setOption(\Memcached::OPT_HASH, \Memcached::HASH_CRC);
$memcached->setOption(\Memcached::OPT_SERVER_FAILURE_LIMIT, 10);
$memcached->setOption(\Memcached::OPT_COMPRESSION, false);

If we use proxy, data stored in wrong memcache instance, distribution and hash calculated wrong.
So any advice please, what`s wrong?

Version | 3.1.5
-- | --
libmemcached version | 1.0.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant