forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I'm not altogether happy with this (a better solution would be database-level locking), but I think it solves the immediate problem of folks with 2 servers being very likely to run analytics on both of them.
- Loading branch information
Showing
3 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Default configuration for a Zulip app frontend | ||
class zulip::analytics { | ||
# This should only be enabled on exactly 1 Zulip server in a cluster. | ||
file { "/etc/cron.d/update-analytics-counts": | ||
ensure => file, | ||
owner => "root", | ||
group => "root", | ||
mode => 644, | ||
source => "puppet:///modules/zulip/cron.d/update-analytics-counts", | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters