Project

Profile

Help

Story #9271

closed

gunicorn processes should be managed by systemd as Type=notify

Added by mdepaulo@redhat.com over 2 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 103
Quarter:

Description

Now that pulpcore always requires gunicorn 20.0 or later, which added support for systemd Type=notify , the installer should put Type=notify in the systemd unit files.

By switching from Type=simple (the default) to Type=notify, systemd will be able to understand better whether a pulpcore gunicorn process is actually up & running. gunicorn will send a message via sd_notify() (support added in 20.0), which prompts systemd to show that the service is started. This replace systemd simply indicating whether it has spawned the process and it hasn't terminated. It will probably report "failed" when the service is just constantly restarting within seconds of starting, which would otherwise be reported an alternating service status.

If any services on the same box are ever configured to depend on the pulp services, then they will also benefit from knowing when the services is actually up.

This also brings us to parity with Katello's installer.


Related issues

Related to Pulp - Issue #9272: pulpcore-selinux needs SELinux changes for systemd Type=notifyCLOSED - CURRENTRELEASEmdepaulo@redhat.comActions
Actions #1

Updated by mdepaulo@redhat.com over 2 years ago

  • Tracker changed from Issue to Story
  • % Done set to 0
  • Severity deleted (2. Medium)
  • Triaged deleted (No)
Actions #2

Updated by pulpbot over 2 years ago

  • Status changed from NEW to POST
Actions #3

Updated by mdepaulo@redhat.com over 2 years ago

  • Related to Issue #9272: pulpcore-selinux needs SELinux changes for systemd Type=notify added
Actions #4

Updated by mdepaulo@redhat.com over 2 years ago

  • Description updated (diff)
Actions #5

Updated by mdepaulo@redhat.com over 2 years ago

  • Description updated (diff)

Added by Mike DePaulo over 2 years ago

Revision 5094028f | View on GitHub

have systemd manage the gunicorn services as

Type=notify

fixes: #9271 gunicorn processes should be managed by systemd as Type=notify https://pulp.plan.io/issues/9271

Added by Mike DePaulo over 2 years ago

Revision 5094028f | View on GitHub

have systemd manage the gunicorn services as

Type=notify

fixes: #9271 gunicorn processes should be managed by systemd as Type=notify https://pulp.plan.io/issues/9271

Actions #6

Updated by Anonymous over 2 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #7

Updated by pulpbot over 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF