Closed
Bug 869652
Opened 11 years ago
Closed 11 years ago
[bzcache] Make ES server configurable everywhere, update default
Categories
(Testing :: General, defect)
Testing
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mcote, Unassigned)
References
Details
Attachments
(1 file)
13.07 KB,
patch
|
jgriffin
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Updated•11 years ago
|
Assignee: nobody → mcote
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•11 years ago
|
||
From bug 848834, these are the places that reference the ES server:
http://hg.mozilla.org/users/jgriffin_mozilla.com/bzcache/file/f0180691151f/bzcache/bz_cache_refresh.py#l9
http://hg.mozilla.org/users/jgriffin_mozilla.com/bzcache/file/f0180691151f/bzcache/bzcache.py#l7
Assignee | ||
Comment 2•11 years ago
|
||
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
Comment 3•11 years ago
|
||
(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)
Assignee | ||
Comment 4•11 years ago
|
||
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)
Comment 5•11 years ago
|
||
(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 6•11 years ago
|
||
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+
Assignee | ||
Comment 7•11 years ago
|
||
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.
Description
•