Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new tasking system by default in dev boxes #656

Merged
merged 1 commit into from Jun 17, 2021

Conversation

mdellweg
Copy link
Member

[noissue]

@pulpbot
Copy link
Member

pulpbot commented Jun 16, 2021

WARNING!!! This PR is not attached to an issue. In most cases this is not advisable. Please see our PR docs for more information about how to attach this PR to an issue.

@mdellweg
Copy link
Member Author

@bmbouter

example.dev-config.yml Outdated Show resolved Hide resolved
@bmbouter
Copy link
Member

@rochacbruno fyi here's how we're enabling the new-style tasking system in dev environments

@bmbouter
Copy link
Member

I'm testing this

@bmbouter
Copy link
Member

A vagrant up with this worked nicely for me:

pulpcore-worker[30400]: pulp [None]: pulpcore.tasking.entrypoint:WARNING: Attempting to start a resource-manager with the distributed tasking system
pulpcore-worker[30399]: pulp [None]: pulpcore.tasking.entrypoint:INFO: Starting distributed type worker
pulpcore-worker[30399]: pulp [None]: pulpcore.tasking.worker_watcher:INFO: New worker '30399@pulp3-source-fedora33.localhost.example.com' discovered
pulpcore-worker[30399]: pulp [None]: pulpcore.tasking.pulpcore_worker:INFO: Worker 30399@pulp3-source-fedora33.localhost.example.com entering sleep state.
pulpcore-worker[30398]: pulp [None]: pulpcore.tasking.entrypoint:INFO: Starting distributed type worker
pulpcore-worker[30398]: pulp [None]: pulpcore.tasking.worker_watcher:INFO: New worker '30398@pulp3-source-fedora33.localhost.example.com' discovered
pulpcore-worker[30398]: pulp [None]: pulpcore.tasking.pulpcore_worker:INFO: Worker 30398@pulp3-source-fedora33.localhost.example.com entering sleep state.

@bmbouter
Copy link
Member

Just for grins, stopping redis does allow me to still fully use the tasking system. :)

@bmbouter
Copy link
Member

I see these processes:

vagrant    30398  1.3  1.4 105004 88468 ?        Ss   13:30   0:01 /usr/local/lib/pulp/bin/python3 /usr/local/lib/pulp/bin/pulpcore-worker
vagrant    30399  1.3  1.4 105040 88332 ?        Ss   13:30   0:01 /usr/local/lib/pulp/bin/python3 /usr/local/lib/pulp/bin/pulpcore-worker
vagrant    30400  1.2  1.4 104608 87920 ?        Ss   13:30   0:01 /usr/local/lib/pulp/bin/python3 /usr/local/lib/pulp/bin/pulpcore-worker --resource-manager

The --resource-manager I believe is just a no-op so that's still correct.

Copy link
Member

@bmbouter bmbouter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mdellweg mdellweg merged commit 525b5d6 into pulp:master Jun 17, 2021
@mdellweg mdellweg deleted the nts_dev branch June 17, 2021 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants