Project

Profile

Help

Task #5787

closed

Have workers auto-set their own names to not require users to set them

Added by bmbouter about 5 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

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

Description

Problem

Managing worker names is not really important to users, but they have to think about it

Solution

1) Remove the -n reserved-resource-worker-%i@%%h from https://github.com/pulp/ansible-pulp/blob/master/roles/pulp-workers/templates/pulpcore-worker%40.service.j2#L18 and the documentation.

2) Have the worker set it's own name here and if it's not named as "resource-manager" then make the worker name "pulpcore-worker-UUID" where UUID is a uuid4().

Actions #1

Updated by bmbouter about 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #2

Updated by daviddavis about 5 years ago

Does this mean users can no longer set the worker name? I think that's ok. Just want to make sure I understand.

Actions #3

Updated by bmbouter about 5 years ago

Users can still set the worker name, and Pulp should recognize it as a worker and not a resource manager.

Actions #4

Updated by daviddavis about 5 years ago

  • Groomed changed from No to Yes
  • Sprint set to Sprint 62

+1 sounds good.

Actions #5

Updated by bmbouter about 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bmbouter
Actions #6

Updated by bmbouter about 5 years ago

  • Status changed from ASSIGNED to POST
Actions #7

Updated by fao89 about 5 years ago

  • Tracker changed from Issue to Task
  • % Done set to 0

Added by bmbouter about 5 years ago

Revision 76ad5759 | View on GitHub

Workers now auto-name {pid}@{hostname}

Requiring users to specify a name for task workers was difficult and not productive. Having workers auto-name as {pid}@{hostname} is much easier to operate.

This also updates the docs to match.

https://pulp.plan.io/issues/5787 closes #5787

Actions #8

Updated by bmbouter about 5 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

Added by bmbouter about 5 years ago

Revision 10be1107 | View on GitHub

Workers no longer specify a name

A feature was added to have workers auto-name themselves with {pid}@{hostname}. By not specifying the -n option, each process will receive its name automatically.

Required PR: https://github.com/pulp/pulpcore/pull/414

https://pulp.plan.io/issues/5787 closes #5787

Added by bmbouter about 5 years ago

Revision 10be1107 | View on GitHub

Workers no longer specify a name

A feature was added to have workers auto-name themselves with {pid}@{hostname}. By not specifying the -n option, each process will receive its name automatically.

Required PR: https://github.com/pulp/pulpcore/pull/414

https://pulp.plan.io/issues/5787 closes #5787

Added by bmbouter about 5 years ago

Revision 14cc9b4d | View on GitHub

Workers now auto-name {pid}@{hostname}

Requiring users to specify a name for task workers was difficult and not productive. Having workers auto-name as {pid}@{hostname} is much easier to operate.

This also updates the docs to match.

https://pulp.plan.io/issues/5787 closes #5787

(cherry picked from commit 76ad5759cd4fc2f5ebb9586e22945a451d0735b2)

Actions #9

Updated by bmbouter about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF