mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Adding redis bgsave monitor.
This commit is contained in:
parent
2eb3218094
commit
950af5e4c8
2 changed files with 8 additions and 1 deletions
|
@ -1 +1 @@
|
|||
slaveof db_redis_story 6379
|
||||
slaveof db_redis 6379
|
7
fabfile.py
vendored
7
fabfile.py
vendored
|
@ -260,8 +260,10 @@ def setup_db(engine=None, skip_common=False):
|
|||
elif engine == "redis":
|
||||
setup_redis()
|
||||
setup_redis_backups()
|
||||
setup_redis_monitor()
|
||||
elif engine == "redis_slave":
|
||||
setup_redis(slave=True)
|
||||
setup_redis_monitor()
|
||||
elif engine == "elasticsearch":
|
||||
setup_elasticsearch()
|
||||
setup_db_search()
|
||||
|
@ -1104,6 +1106,11 @@ def setup_usage_monitor():
|
|||
sudo('ln -fs %s/utils/monitor_disk_usage.py /etc/cron.daily/monitor_disk_usage' % env.NEWSBLUR_PATH)
|
||||
sudo('/etc/cron.daily/monitor_disk_usage')
|
||||
|
||||
@parallel
|
||||
def setup_redis_monitor():
|
||||
sudo('ln -fs %s/utils/monitor_redis_bgsave.py /etc/cron.daily/monitor_redis_bgsave' % env.NEWSBLUR_PATH)
|
||||
sudo('/etc/cron.daily/monitor_redis_bgsave')
|
||||
|
||||
# ================
|
||||
# = Setup - Task =
|
||||
# ================
|
||||
|
|
Loading…
Add table
Reference in a new issue