Closed Bug 869652 Opened 11 years ago Closed 11 years ago

[bzcache] Make ES server configurable everywhere, update default

Categories

(Testing :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcote, Unassigned)

References

Details

Attachments

(1 file)

bzcache will have to write to both the prod and dev ES instances. It will also have to write to the metrics instance until we are ready to switch away from it.
Assignee: nobody → mcote
Status: NEW → ASSIGNED
Blocks: 870559
Right, this isn't actually about supporting multiple db instances; bugs will be cached as needed when we switch over. Rather this is about updating the default and making it configurable everywhere. Right now the main BugzillaCache class is configurable, but the bz_cache_refresh.py and bz_pulse_monitor.py scripts are not. jgriffin, are these scripts still used/useful?
Flags: needinfo?(jgriffin)
Summary: [bzcache] Support several destinations → [bzcache] Make ES server configurable everywhere, update default
(In reply to Mark Côté ( :mcote ) from comment #2) > jgriffin, are these scripts still used/useful? That's a good question. There's a cron job on brasstacks which calls bz_cache_refresh, every 4 hours, I believe. bz_pulse_monitor.py isn't currently used, since there is no public bugzilla pulse stream to consume (hence the need for bz_cache_refresh). If we ever get a bugzilla pulse stream, we could switch to that and avoid having to use bz_cache_refresh.
Flags: needinfo?(jgriffin)
This should do it. I made the OF server in bz_cache_refresh.py configurable mainly for testing here. I think you might have to commit this, since it's in your user dir. Maybe the repo should be moved to hg.m.o or github? Not bumping version, as there's something else I want to fix.
Attachment #747764 - Flags: review?(jgriffin)
(In reply to Mark Côté ( :mcote ) from comment #4) > I think you might have to commit this, since it's in your user dir. User repos only need level 1 or above (amusingly this means anyone with try access can commit to any user repo).
Comment on attachment 747764 [details] [diff] [review] Update default ES server and make ES and OF servers configurable everywhere Review of attachment 747764 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! Looks like you're missing config.py though.
Attachment #747764 - Flags: review?(jgriffin) → review+
Ah right, thanks. :) http://hg.mozilla.org/users/jgriffin_mozilla.com/bzcache/rev/57e37abaa0fc I think I will deploy this shortly, even though there's another fix I want to do, just so we can begin the db migration.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: