Use elasticsearch-py for cleanup cron job

RESOLVED FIXED

Status

Socorro
Backend
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: adrian, Assigned: adrian)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

3 years ago
Replace pyelasticsearch with elasticsearch-py, unless it breaks compatibility with ES 0.90.
(Assignee)

Updated

3 years ago
Blocks: 1122644
Might we be able to postpone this till we move the cluster? I hear that 1.x is very different. Can we even get 0.9x on the various third-party ES providers?
(Assignee)

Comment 2

3 years ago
We will move straight to ES 1.4, and we'll need this code before we do, so I might as well do it now. Plus I am working on it in a way that will allow us to keep it working with ES 0.90 anyway.

Comment 4

3 years ago
Commit pushed to master at https://github.com/mozilla/socorro

https://github.com/mozilla/socorro/commit/d6a6c834bfd0c08edbbdee84b91e4f0db37c47c8
Fixes bug 1127787 - Created an IndexCleaner class to remove old Elasticsearch indices. r=phrawzty

Updated elasticsearch_cleanup cron job to use that class. Made an implementation for ES 0.90 and for ES 1.x.

Updated

3 years ago
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.