Clarification on PULP_CONTENT_WORKERS in multi-container setups

In the base image I see the following lines:

ENV PULP_CONTENT_WORKERS=${PULP_CONTENT_WORKERS:-2}
ENV PULP_API_WORKERS=${PULP_API_WORKERS:-2}

(reference here)

By default these are both set to 2. My questions are:

  • Do these environment variables limit the total number of pulp-content or pulp-api workers that can run across the deployment?
  • Or do they only affect the number of worker processes inside a single container, and have no effect on how many pulp-content or pulp-api containers we can start in parallel?

For example, if we run 10 pulp-content containers with PULP_CONTENT_WORKERS=2, should we expect 10 total workers, or is the limit still 2 overall?
And similarly, if we run 10 pulp-api containers with PULP_API_WORKERS=2, should we expect 10 total API workers?

These are per-pulp-instance - so you if you ran 10 pulp-content containers with PULP_CONTENT_WORKERS=2, your combined system would have 20 content-workers available to serve content. Similarly for the api-workers.

1 Like