Giter Club home page Giter Club logo

Comments (2)

timbroder avatar timbroder commented on August 18, 2024 2

This actually ended up being a lot easier than I thought it would. Putting notes here for posterity:

Read: http://chrislaskey.com/blog/342/running-multiple-redis-instances-on-the-same-server/

In the post_tasks of the playbook where you install the original instance, re-use the original redis.conf.j2 and set any variables that you want to change.

Important ones are:

  • port
  • logfile
  • config file
  • pidfile
post_tasks:
    - name: Redis Plutonium data directory
      file: path={{ redis_plutonium_dbdir }} state=directory mode=0751 owner=redis group=redis
    - name: Ensure Redis Plutonium is configured.
      template:
        src: templates/redis.conf.j2
        dest: "{{ redis_plutonium_conf_path }}"
        mode: 644
      vars:
        redis_daemon: "{{ redis_plutonium_daemon }}"
        redis_port: "{{ redis_plutonium_port }}"
        redis_logfile: "{{ redis_plutonium_logfile }}"
        redis_dbdir: "{{ redis_plutonium_dbdir }}"
        redis_save: "{{ redis_plutonium_save }}"
        redis_appendonly: "{{ redis_plutonium_appendonly }}"
        redis_appendfsync: "{{ redis_plutonium_appendfsync }}"
        redis_instance: "-p"
      notify: restart redis
    - name: Ensure Redis Plutonium has startup script
      template:
        src: templates/redis-server-p.sh.j2
        dest: /etc/init.d/redis-server-p
        mode: 751
    - name: Ensure Redis Plutonium is running and enabled on boot.
      service: "name={{ redis_plutonium_daemon }} state=started enabled=yes"
    - name: adjust perms of newrelic file

from ansible-role-redis.

mawdesley avatar mawdesley commented on August 18, 2024

That link is dead, here's an updated one: https://chrislaskey.com/blog/342

❤️

from ansible-role-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.