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

Can not get value from aws elasticache cluster correctly. #346

Open
yiwong2001 opened this issue May 8, 2019 · 2 comments
Open

Can not get value from aws elasticache cluster correctly. #346

yiwong2001 opened this issue May 8, 2019 · 2 comments

Comments

@yiwong2001
Copy link

Hi guys,

I have been trying to get values memcached cluster on aws with no luck.

Those values were set by AWS java sdk with ketama as hash method. There are 5 nodes in cluster.

ConnectionFactoryBuilder connectionFactoryBuilder = new ConnectionFactoryBuilder();
        connectionFactoryBuilder.setLocatorType(Locator.CONSISTENT);
        connectionFactoryBuilder.setHashAlg(DefaultHashAlgorithm.KETAMA_HASH);
        ConnectionFactory connFactory = connectionFactoryBuilder.build();
        MemcachedClient client = new MemcachedClient(connFactory, endpoints)
```;

On the node js side, I checked ketama is set as default already.

But when I try to get data by keys, I only get around 28% of them.  

Can you suggest how to make both side work together? 

Thanks. 
@yiwong2001
Copy link
Author

Can I know which hash ring algorithms are supported?

@3rd-Eden
Copy link
Owner

It uses https://github.com/3rd-Eden/node-hashring can switch between libketama and hash_ring using options.

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

2 participants