Bug #6632
closedalternative to using -X while restarting apache on the rpms
0%
Description
In the teuthology rgw task, -X is being used while restarting apache , so the server is not detached from the console for the subsequent runs, which is important for multi region tests.
but this affects the rgw test runs on rpms [rhel/centos/f18]. getting rid of -X works with rpms.
we are looking at finding an alternative to this one, one of which was to replace -X with -DNO_DETACH which still did not work.
another option: fork another apache2 process and do a killall towards the end of test.
any other thoughts?
Updated by Sandon Van Ness over 10 years ago
Tamil asked me to look into this.
It took some digging but I think I figured this out.
Testing on ubuntu it appears doing multiple connections when running with -X nothing is blocked (all in a single process). I assume it times out on rhel, centos, etc.. because in my testing with the same config file when I open a second connection it is blocked until the first one is stopped. I think I traced this to worker.c not being compiled in httpd:
ubuntu:
ubuntu@plana05:~$ apache2 -l
Compiled in modules:
core.c
mod_log_config.c
mod_logio.c
mod_version.c
worker.c
http_core.c
mod_so.c
Centos:
[root@vpm010 ~]# httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
So anyway I found out centos has a seperate httpd (httpd.worker) which has worker.c copmiled in instead of the default (prefork):
[root@vpm010 ~]# httpd.worker -l
Compiled in modules:
core.c
worker.c
http_core.c
mod_so.c
When testing running using httpd.worker (instead of http) I am not getting blocked requests like before and I am able to run with -X so I think simply changing teuthology to use httpd.worker instead of just 'httpd' might get around this issue. Let me know.
Updated by Sage Weil over 10 years ago
- Status changed from In Progress to Resolved