Closed
Bug 1301048
Opened 9 years ago
Closed 9 years ago
Setup rq on ATMO V2
Categories
(Cloud Services Graveyard :: Metrics: Pipeline, defect, P1)
Cloud Services Graveyard
Metrics: Pipeline
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mdoglio, Assigned: mdoglio)
References
Details
Attachments
(1 file)
The current implementation only works on a single node deployment. The application installs a job in the crontab that simply checks every hour if there is something that needs to run. In a scenario with multiple web nodes multiple jobs will run, one per web node.
Assignee | ||
Comment 1•9 years ago
|
||
A possible solution is to have a node in the cluster dedicated to the scheduler.
No longer blocks: 1248688
Assignee | ||
Comment 2•9 years ago
|
||
On a second thought, it may be sufficient to have a single python command running every minute in a cron job. :robotblake is that doable in the dockerflow infrastructure?
Flags: needinfo?(bimsland)
Comment 3•9 years ago
|
||
That's do-able, but I feel like the right way to do it would be to use celery / huey / rq and run workers either as separate containers on each node or using supervisor (or similar) inside the containers.
Flags: needinfo?(bimsland)
Comment 4•9 years ago
|
||
:mdoglio and me talked about this a bit and found that based on our experience Celery would be way too complex for our use case. Instead I pitched RQ as a replacement since it's a nice compromise between the quality of the developer API and operational complexity (e.g. using Redis ElastiCache). We'd be using RQ-Scheduler (https://github.com/ui/rq-scheduler) for the periodic scheduling on top of RQ.
Assignee | ||
Comment 5•9 years ago
|
||
:jezdez can you please split the work required to configure rq into a set of bugs that block this one?
Assignee | ||
Updated•9 years ago
|
Summary: Find a way to schedule jobs in the ops infrastructure → Setup rq on ATMO V2
Comment 6•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8791539 -
Flags: review?(jezdez)
Assignee | ||
Comment 8•9 years ago
|
||
This is on master now
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 9•9 years ago
|
||
Comment on attachment 8791539 [details] [review]
[telemetry-analysis-service] mozilla:bug-1302777-add-redis-instance > mozilla:master
This was reviewed on GitHub
Attachment #8791539 -
Flags: review?(jezdez) → review+
Updated•7 years ago
|
Product: Cloud Services → Cloud Services Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•