From 61f66bf5922a30dd5f34486c1f50aca84911426f Mon Sep 17 00:00:00 2001 From: liu-sheng Date: Fri, 3 Jul 2015 09:39:37 +0800 Subject: [PATCH] Change the default api server port The current api server port is same as Ceilometer's (8777) Change-Id: I76dc6244e702611e5c0e9328bc05e7cde2f39f9c --- aodh/api/__init__.py | 3 +-- aodh/api/config.py | 2 +- etc/apache2/aodh | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/aodh/api/__init__.py b/aodh/api/__init__.py index 4df8329f0..c0e6a1016 100644 --- a/aodh/api/__init__.py +++ b/aodh/api/__init__.py @@ -18,8 +18,7 @@ from oslo_config import cfg # Register options for the service OPTS = [ cfg.IntOpt('port', - default=8777, - deprecated_name='metering_api_port', + default=8042, deprecated_group='DEFAULT', help='The port for the aodh API server.', ), diff --git a/aodh/api/config.py b/aodh/api/config.py index 50836cec1..70d1bdfcb 100644 --- a/aodh/api/config.py +++ b/aodh/api/config.py @@ -12,7 +12,7 @@ # Server Specific Configurations server = { - 'port': '8777', + 'port': '8042', 'host': '0.0.0.0' } diff --git a/etc/apache2/aodh b/etc/apache2/aodh index d2409ece2..2838e917c 100644 --- a/etc/apache2/aodh +++ b/etc/apache2/aodh @@ -22,9 +22,9 @@ # The number of processes and threads is an example only and should # be adjusted according to local requirements. -Listen 8777 +Listen 8402 - + WSGIDaemonProcess aodh-api processes=2 threads=10 user=SOMEUSER display-name=%{GROUP} WSGIProcessGroup aodh-api WSGIScriptAlias / /var/www/aodh/app