Giter VIP home page Giter VIP logo

Comments (5)

petems avatar petems commented on June 23, 2024 1

Ah ok.

In that case, you can specify that you want the standard redis service not to run:

class { '::redis':
   service_ensure => 'stopped',
   # or service_manage => false,
}

class { '::redis::sentinel':
  master_name      => 'cow',
  redis_host       => '192.168.1.5',
  failover_timeout => 30000,
}

from puppet-redis.

petems avatar petems commented on June 23, 2024

@marcgascon I'm not sure I understand. If you're using redis-sentinel, you require the redis binary to run, as it's just a simlink to the redis binary but running in sentinel mode? So if you're running sentinel, you're running redis.

from puppet-redis.

Caprico85 avatar Caprico85 commented on June 23, 2024

So if you're running sentinel, you're running redis.

That's correct. But this module starts a redis instance in sentinel mode and a normal redis instance.

$ ps aux | grep redis
redis    20140  0.0  0.0  51280  2248 ?        Ssl  11:55   0:00 /usr/bin/redis-server 127.0.0.1:6379
redis    20243  0.2  0.0  51280  3556 ?        Ssl  11:55   0:00 /usr/bin/redis-sentinel 0.0.0.0:26379 [sentinel]

In my case I only want to run Sentinel. I don't want a normal redis instance on this host. But the normal instance is enabled in environments/production/modules/redis/manifests/service.pp and there seems to be no way to disable it.

from puppet-redis.

Caprico85 avatar Caprico85 commented on June 23, 2024

I already tried with various parameters on the sentinel instance itself. But I never thought about simply defining an additional instance. Thank you so much!

from puppet-redis.

ekohl avatar ekohl commented on June 23, 2024

Additionally default_install as a parameter can be used.

from puppet-redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.