Project

Profile

Help

Maintenance: Planio will be observing a scheduled maintenance window this Sunday, November 10, 2024 from 20:00 UTC until 21:00 UTC to perform important network maintenance in our primary data center. Your Planio account will be unavailable for a few minutes during this maintenance window.

Story #8502

closed

Task #8495: [EPIC] As a user, I have a new-improved tasking system with new-style workers

As an installer user, I can opt-in to the new-style workers

Added by bmbouter over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Background

See the parent epic for the background.

Goal

To have the installer allow users to opt-in to using the new tasking system. By default, it's opted-out.

How to do this

  1. Use the new pulpcore-worker instead of the /usr/bin/rq entry point. The new pulpcore-worker does not take any additional parameters and N of them can be started at once. The new console script entry point is named pulpcore-worker, and it will be available anywhere pulpcore is installed once ticket 8501 is merged and released.

Do not use both the new and old style workers!

  1. Don't start a resource manager. It's ok if you do, but you don't need to, it's no longer required.

  2. Make sure the setting USE_NEW_WORKER_TYPE=True. Pulp needs to know it's using the new style or the old style. The default is USE_NEW_WORKER_TYPE=False.

How installer users opt-in

That's up to the installer team, but there needs to be some simple way for them to opt-in or out. By default for now, the installer should default to the old-style RQ workers.

Switching back and forth

Users should be able to switch back and forth. If there is an option to opt-in for example, the installer user should be able to opt-out and rerun the installer and get back the old-style workers. The pulpcore code is prepared to deal with this as well.


Related issues

Blocked by Pulp - Story #8501: As a user, I have new pulp workers that do not require a resource managerCLOSED - CURRENTRELEASEmdellweg

Actions
Actions #1

Updated by bmbouter over 3 years ago

  • Description updated (diff)
Actions #2

Updated by bmbouter over 3 years ago

  • Subject changed from As an installer user, I can start the new pulp-work to As an installer user, I can opt-in to the new-style workers
Actions #3

Updated by bmbouter over 3 years ago

  • Blocked by Story #8501: As a user, I have new pulp workers that do not require a resource manager added
Actions #4

Updated by bmbouter over 3 years ago

  • Description updated (diff)
Actions #5

Updated by bmbouter over 3 years ago

  • Status changed from NEW to CLOSED - NOTABUG

A change is not needed in the installer so I'm closing as NOTABUG. The new tasking is now enabled by default with https://pulp.plan.io/issues/8948 and users could configure settings to switch back to the old-style.

Also available in: Atom PDF