Project

General

Profile

Actions

Bug #29370

open

Syncing a large product leaves Pulp tasks "waiting".

Added by Ian Ballou about 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I've tried a few times to sync a product with ~200 repositories and it never completes successfully. There are always sync tasks left over that are stuck waiting on "pulp:action:publish". The tasks waiting are a mix of Docker and File repos. I've tried restarting Pulp services but that doesn't help. It seems this could be a Katello bug or a Pulp bug.

Detailed information about the server:

Repositories: 212
> 154 Docker repos with a mix of BusyBox, Alpine, and Bash. These are Docker Hub official images.
> 58 file repos. All except 6 have the upstream url http://quartet.usersys.redhat.com/pub/fake-repos/large_file/. 1 has https://repos.fedorapeople.org/repos/pulp/pulp/fixtures/file-many/ and the other 5 have no upstream url.

CPUs: 8
RAM: 32 GB
Pulp workers: 8


Related issues 2 (0 open2 closed)

Related to Installer - Tracker #28999: Deploy Foreman with Puma as the application server by defaultClosed

Actions
Has duplicate Katello - Bug #29458: Syncing of repos got stuck in foreman (katello nightly version )DuplicateActions
Actions #1

Updated by Chris Roberts about 4 years ago

  • Category set to Repositories
  • Target version set to Katello 3.16.0
  • Triaged changed from No to Yes
Actions #2

Updated by Justin Sherrill about 4 years ago

  • Has duplicate Bug #29458: Syncing of repos got stuck in foreman (katello nightly version ) added
Actions #3

Updated by Suresh Thirugnanasambandan about 4 years ago

Any update on this?

Actions #4

Updated by Imaan please_edit_me about 4 years ago

Hello,

This issue is blocking us to test the performance of the katello nightly with the puma web server. Is there any work-around for this issue?

Any suggestions/recommendations??

Actions #5

Updated by Justin Sherrill about 4 years ago

Would you be able to try a couple things:

1. in /etc/foreman/database.yml, change the 'pool' setting from '5' to '30':

production:
  adapter: postgresql
  database: foreman
  username: foreman
  password: "SMA42qaA3FFFm2ioiam8RrMJMxpBZ7CB" 
  pool: 30

2. Create a new file:
/usr/share/foreman/config/initializers/foreman-tasks-db-pool-size.rb

with this one line:

ForemanTasks.dynflow.config.db_pool_size = 30

3. run foreman-maintain service restart

can you see if that helps at all? I have seen some benefit (with ~40 syncs).

Actions #6

Updated by Ewoud Kohl van Wijngaarden about 4 years ago

There is an installer option --foreman-db-pool which can be used to change the pool size in /etc/foreman/database.yml. If we need to tune the DB pool size as well then we need a proper way to configure this.

Actions #7

Updated by Suresh Thirugnanasambandan about 4 years ago

  • Related to Tracker #28999: Deploy Foreman with Puma as the application server by default added
Actions #8

Updated by Samir Jha almost 4 years ago

  • Target version changed from Katello 3.16.0 to 1223
Actions #9

Updated by Jonathon Turel almost 4 years ago

  • Target version changed from 1223 to Katello 4.0.0
Actions #10

Updated by Chris Roberts over 3 years ago

  • Target version changed from Katello 4.0.0 to Katello 3.17.0
Actions #11

Updated by Chris Roberts over 3 years ago

  • Target version changed from Katello 3.17.0 to Katello 3.18.0
Actions #12

Updated by Ian Ballou over 3 years ago

  • Target version changed from Katello 3.18.0 to Katello Backlog
Actions

Also available in: Atom PDF