adrienmo / eredis_cluster

eredis_cluster is an erlang wrapper for eredis to support cluster mode of redis 3.0.0+
MIT License
79 stars 83 forks source link

eredis-cluster configuration #6

Closed MohammadKarimi23 closed 8 years ago

MohammadKarimi23 commented 8 years ago

I'm trying to write plugin for emqttd to connect to my redis remote server, but I fail to connect to server with placing server ip and port in plugin.conf . I even could't find out clearly where to put my config file in documentation. I'd be glad with any help.

adrienmo commented 8 years ago

Hi, I am not familiar with the emqttd project, I think this question is more related with emqttd project than this redis client. Maybe you should directly check with the author of the project.

Concerning eredis_cluster, you should be able to use it with this simple config:

{eredis_cluster, [ {init_nodes,[ {"127.0.0.1",30001}, {"127.0.0.1",30002} ]}, {pool_size, 5}, {pool_max_overflow, 0} ] }.