[bzcache] Make ES server configurable everywhere, update default

RESOLVED FIXED

Status

RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: mcote, Assigned: mcote)

Tracking

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
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

5 years ago
Assignee: nobody → mcote
Status: NEW → ASSIGNED
(Assignee)

Updated

5 years ago
Blocks: 870559
(Assignee)

Comment 2

5 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
(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

5 years ago
Created attachment 747764 [details] [diff] [review]
Update default ES server and make ES and OF servers configurable everywhere

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+
(Assignee)

Comment 7

5 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
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.