Ask Your Question
0

glance-api and glance-registry - Two process each - Any reason ? [closed]

asked 2013-12-18 06:27:40 -0500

dheeru gravatar image

updated 2014-01-22 15:13:00 -0500

Evgeny gravatar image

Ubuntu 12.04 + Havana. I was doing some checks whether glance* processes are running. I tried with ps command. Glance processes are running perfectly fine. I see two instances of same process. See the output below

root@dheeru-u2:/etc/network# ps -aef | grep glance
root     18777 10981  0 17:19 pts/3    00:00:00 vi glance-api.conf glance-registry.conf
glance   19329     1  1 17:48 ?        00:00:00 /usr/bin/python /usr/bin/glance-registry
glance   19334 19329  0 17:48 ?        00:00:00 /usr/bin/python /usr/bin/glance-registry**
glance   19348     1  8 17:48 ?        00:00:00 /usr/bin/python /usr/bin/glance-api
glance   19354 19348  0 17:48 ?        00:00:00 /usr/bin/python /usr/bin/glance-api**

There are two glanc-api and two glance-registry. In each case one process is parent and other process is child. Both parent and child process are running.

Question : Why there are two process instances for same component ?

Please note : It is not breaking my setup or functionality. Curious to understand the reason.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2013-12-19 00:30:41.861113

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-12-18 16:01:13 -0500

larsks gravatar image

This is probably because each process start up a pool of workers to handle requests. This is a common architecture; Apache, for example, does the same thing. For glance-api the number of workers can be configured explicitly in /etc/glance/glance-api.conf using the workers setting. For example, with this in my configuration:

[DEFAULT]
.
.
.
workers=8

I see this:

# ps -fe | grep glance-api
glance    2290     1  0 Dec16 ?        00:00:01 /usr/bin/python /usr/bin/glance-api
glance    2867  2290  0 Dec16 ?        00:00:00 /usr/bin/python /usr/bin/glance-api
glance    2869  2290  0 Dec16 ?        00:00:00 /usr/bin/python /usr/bin/glance-api
glance    2872  2290  0 Dec16 ?        00:00:07 /usr/bin/python /usr/bin/glance-api
glance    2877  2290  0 Dec16 ?        00:00:07 /usr/bin/python /usr/bin/glance-api
glance    2881  2290  0 Dec16 ?        00:00:29 /usr/bin/python /usr/bin/glance-api
glance    2885  2290  0 Dec16 ?        00:00:00 /usr/bin/python /usr/bin/glance-api
glance    2889  2290  0 Dec16 ?        00:00:00 /usr/bin/python /usr/bin/glance-api
glance    2890  2290  0 Dec16 ?        00:00:01 /usr/bin/python /usr/bin/glance-api
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-12-18 06:27:40 -0500

Seen: 362 times

Last updated: Dec 18 '13