[Pulp-list] artifact creation using chunk upload of big package
Juan Cabrera
juan.cabrera at unamur.be
Mon Jul 8 08:22:34 UTC 2019
Hi David,
On 5/07/19 20:41, David Davis wrote:
> Juan,
>
> You'll want to edit /usr/lib/systemd/system/pulp-api.service and set
> the timeout option. This worked for me:
>
> ExecStart=/usr/local/lib/pulp/bin/gunicorn pulpcore.app.wsgi:application \
> --bind 'localhost:24817' \
> --access-logfile - \
> --timeout 180
Thanks, this worked for me too.
I added this to my playbook
- hosts: pulp_server
vars:
pulp_api_worker_timeout: 180
roles
.....
post_tasks:
- name: prepare to add timeout in pulp-api service
lineinfile:
path: /lib/systemd/system/pulp-api.service
regexp: '^.*--access-logfile -'
line: ' --access-logfile - \'
notify: restart pulp-api
- name: add timeout in pulp-api service
lineinfile:
path: /lib/systemd/system/pulp-api.service
regexp: '^.*--timeout'
insertafter: '^.*--access-logfile -'
line: ' --timeout {{ pulp_api_worker_timeout }}'
notify: restart pulp-api
Like this I do not touch the ansible-pulp roles
Juan
>
> Make sure you run 'systemctl daemon-reload'.
>
> David
>
>
>
--
Juan CABRERA
Correspondant informatique
Département de Mathématiques
T. 081724919
juan.cabrera at unamur.be <mailto:juan.cabrera at unamur.be>
http://staff.unamur.be/jbcabrer
Université de Namur ASBL
Rue de Bruxelles 61 - 5000 Namur
Belgique
Let’s respect the environment together.
Only print this message if necessary!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20190708/9521db11/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bllgblhiemmicajg.png
Type: image/png
Size: 9356 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20190708/9521db11/attachment.png>
More information about the Pulp-list
mailing list