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

Please add instructions about redis-cluster #240

Open
kingil opened this issue Sep 18, 2017 · 0 comments
Open

Please add instructions about redis-cluster #240

kingil opened this issue Sep 18, 2017 · 0 comments

Comments

@kingil
Copy link

kingil commented Sep 18, 2017

Hello.
The documentation of the module does not describe in detail the interaction with the cluster.
Could you describe in more detail the process of raising a cluster on one machine on several ports at once?

When I specify something like:

class { '::redis':
  bind                 => "${ipaddress}",
  port                 => 7000,
  pid_file             => "/var/run/redis/7000.pid",
  config_file          => "/etc/redis/7000.conf",
  cluster_config_file  => "nodes-7000.conf",
  log_file             => "/var/log/redis/7000.log",
  workdir              => "/var/lib/redis/7000/",
  appendonly           => true,
  cluster_enabled      => true,
  cluster_node_timeout => 5000,
  daemonize            => true,
  save_db_to_disk      => false,
  service_ensure       => 'running',
  service_hasrestart   => true,
  service_hasstatus    => true,
 }

and run it, a new configuration file appears in the system, directories too, but the service launched with config file /etc/redis/redis.conf . What's wrong? If i add custom service_name - puppet can't add it as new service. I am on Debian.

Is it able to manage redis nodes with a specific configuration file? Is it able to generate startup files for each node (/etc/init.d/redis_port)?

I tried to hide the configuration parameters in a hash to raise several nodes through the create_resources, but I did not succeed. Describe, please, the way with which you can, for example, to up 6 nodes on one server on different ports.
Thank you!

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