Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

[Bug]: devpi runs at 100% CPU and is unavailable for quite some time after container started #1131

Closed
timmc-edx opened this issue Jul 25, 2023 · 4 comments
Assignees
Labels
bug Report of or fix for something that isn't working as intended

Comments

@timmc-edx
Copy link
Contributor

timmc-edx commented Jul 25, 2023

Describe the bug that you are seeing.

After running make lms-up or similar, the devpi container burns CPU for about 20 minutes. (I think packages also cannot be installed in the LMS container during this, but something else may have been going on.)

According to devpi/devpi#737 this may be the result of devpi fetching and processing indexes. The suggested curl -H "Accept: application/json" http://localhost:3141/+status shows that the devpi_web_whoosh_index_queue_size metric is above zero (and slowly falling), which appears to confirm this theory.

As far as I am aware, no one uses the devpi UI, which I think is all the indexes are used for. So I think we may want to add --indexer-backend null to our docker image.

Not sure why this would have started recently, but I don't recall this happening until a month ago or so.

Did this happen on the host (your machine or the remote instance) or in the container?

container

Steps to reproduce.

No response

What system was this issue seen on?

Linux

@timmc-edx timmc-edx added the bug Report of or fix for something that isn't working as intended label Jul 25, 2023
@github-actions
Copy link

Follow-up checklist (for Arch-BOM usage)

  • Is the issue flaky or consistent?
  • Does it affect multiple people or multiple types of systems?
  • Update the devstack troubleshooting documentation page if necessary
    • Do we need a new troubleshooting section?
    • Did a troubleshooting section already exist, but it wasn't easy to find given the symptoms?
    • If a recurring issue, should we ticket an automated resolution in place of the doc?

@timmc-edx
Copy link
Contributor Author

I've tested this locally by modifying the devpi image to include --indexer-backend null in the entrypoint script and it seemed to work fine.

@timmc-edx
Copy link
Contributor Author

Moving to blocked for now; we may end up getting rid of devpi entirely: #1137

@rgraber
Copy link
Contributor

rgraber commented Aug 3, 2023

Closing in favor of #1137

@rgraber rgraber closed this as completed Aug 3, 2023
@github-project-automation github-project-automation bot moved this from Blocked to Done in Arch-BOM Aug 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Report of or fix for something that isn't working as intended
Projects
None yet
Development

No branches or pull requests

2 participants