summaryrefslogtreecommitdiffstats
path: root/install/tools
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-01-19 11:24:31 -0500
committerSimo Sorce <ssorce@redhat.com>2011-01-28 18:49:17 -0500
commit359d54e741877f04b0773fb0955041eee7ec0054 (patch)
tree8a1c69754da14a502d809330e2f8f7831ff0c16b /install/tools
parentfd1d0857b5b559425668f38d85a7d607d0f35767 (diff)
downloadfreeipa-359d54e741877f04b0773fb0955041eee7ec0054.tar.gz
freeipa-359d54e741877f04b0773fb0955041eee7ec0054.tar.xz
freeipa-359d54e741877f04b0773fb0955041eee7ec0054.zip
Don't perform some API self-tests in production mode for performance reasons
The API does a fair number of self tests and locking to assure that the registered commands are consistent and will work. This does not need to be done on a production system and adds additional overhead causing somewhere between a 30 and 50% decrease in performance. Because makeapi is executed when a build is done ensure that it is executed in developer mode to ensure that the framework is ok. ticket 751
Diffstat (limited to 'install/tools')
-rwxr-xr-xinstall/tools/ipa-replica-install1
-rwxr-xr-xinstall/tools/ipa-server-install1
2 files changed, 2 insertions, 0 deletions
diff --git a/install/tools/ipa-replica-install b/install/tools/ipa-replica-install
index 717d25f0..3eb41daa 100755
--- a/install/tools/ipa-replica-install
+++ b/install/tools/ipa-replica-install
@@ -387,6 +387,7 @@ def main():
if ipautil.file_exists(config.dir + "/cacert.p12"):
fd.write("enable_ra=True\n")
fd.write("ra_plugin=dogtag\n")
+ fd.write("mode=production\n")
fd.close()
api.bootstrap(in_server=True)
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
index f1cab63f..c07f6fc3 100755
--- a/install/tools/ipa-server-install
+++ b/install/tools/ipa-server-install
@@ -683,6 +683,7 @@ def main():
fd.write("enable_ra=True\n")
if not options.selfsign:
fd.write("ra_plugin=dogtag\n")
+ fd.write("mode=production\n")
fd.close()
api.bootstrap(**cfg)