Skip to content

Commit

Permalink
Run two nova-api and -metadata processes per pods
Browse files Browse the repository at this point in the history
We want our services to be scaled by pod replicas but we still need two
processes per API pods to always have a room for a healthcheck API
query.
  • Loading branch information
gibizer authored and openshift-merge-robot committed Sep 7, 2023
1 parent 480fa3a commit 8cf10ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion templates/novaapi/config/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ LogLevel info
WSGIProcessGroup nova-api
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
WSGIDaemonProcess nova-api processes=1 threads=1 user=nova group=nova display-name=nova-api
## In general we want nova-api to scale via k8s replicas but we need
## two processes per replica to always has a room for a healthecheck query
WSGIDaemonProcess nova-api processes=2 threads=1 user=nova group=nova display-name=nova-api
WSGIScriptAlias / /usr/bin/nova-api-wsgi
</VirtualHost>

Expand Down
4 changes: 3 additions & 1 deletion templates/novametadata/config/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ LogLevel info
WSGIProcessGroup nova-metadata
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
WSGIDaemonProcess nova-metadata processes=1 threads=1 user=nova group=nova display-name=nova-metadata-api
## In general we want nova-metadata to scale via k8s replicas but we need
## two processes per replica to always has a room for a healthecheck query
WSGIDaemonProcess nova-metadata processes=2 threads=1 user=nova group=nova display-name=nova-metadata-api
WSGIScriptAlias / /usr/bin/nova-metadata-wsgi
</VirtualHost>

Expand Down

0 comments on commit 8cf10ad

Please sign in to comment.