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

Eliminate un-necessary resource executions #11

Open
wesleung opened this issue Jan 25, 2016 · 0 comments
Open

Eliminate un-necessary resource executions #11

wesleung opened this issue Jan 25, 2016 · 0 comments

Comments

@wesleung
Copy link

Every run of redis2 has a minimum of 4 resources updated un-necessarily as the values/configurations has already been set.

  • execute sysctl -w "vm.overcommit_memory=1
  • stop service service[redis-server]
  • execute the ruby block set redis path and version
  • configure service runit_service[redis_prime]
Recipe: redis2::default
  * sysctl_param[vm.overcommit_memory] action apply

  * execute[sysctl[vm.overcommit_memory]] action run
    - execute sysctl -w "vm.overcommit_memory=1"
Recipe: redis2::package
  * package[redis-server] action install (up to date)
  * service[redis-server] action disable (up to date)
  * service[redis-server] action stop
    - stop service service[redis-server]
  * ruby_block[set redis path and version] action run
    - execute the ruby block set redis path and version
Recipe: redis2::default
  * user[redis] action create (up to date)
  * directory[/var/lib/redis] action create (up to date)
  * directory[/etc/redis] action create (up to date)
  * directory[/var/run/redis] action create (up to date)
  * directory[/var/log/redis] action create (up to date)
Recipe: redis2::default_instance
  * directory[/var/lib/redis/prime] action create (up to date)
  * template[/etc/redis/redis_prime.conf] action create (up to date)
Recipe: <Dynamically Defined Resource>
  * service[redis_prime] action nothing (skipped due to action :nothing)
Recipe: redis2::default_instance
  * runit_service[redis_prime] action enable
  Recipe: <Dynamically Defined Resource>
    * directory[/etc/sv/redis_prime] action create (up to date)
    * template[/etc/sv/redis_prime/run] action create (up to date)
    * directory[/etc/sv/redis_prime/log] action create (up to date)
    * directory[/etc/sv/redis_prime/log/main] action create (up to date)
    * template[/etc/sv/redis_prime/log/run] action create (up to date)
    * template[/etc/sv/redis_prime/log/config] action create (up to date)
    * link[/etc/init.d/redis_prime] action create (up to date)
    - configure service runit_service[redis_prime]
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