diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-05-20 12:54:39 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-05-20 12:54:39 -0400 |
commit | b5615eeb855d756be8aa3f1e995d9f0f3a6b410e (patch) | |
tree | 50b1dff85c37b9678a43b67c5d50ac84043ef9f9 /src/lib/Bcfg2/Options.py | |
parent | 02a3da1e1233b3ebcc1e3aa97431c318c0b4ce3e (diff) | |
download | bcfg2-b5615eeb855d756be8aa3f1e995d9f0f3a6b410e.tar.gz bcfg2-b5615eeb855d756be8aa3f1e995d9f0f3a6b410e.tar.bz2 bcfg2-b5615eeb855d756be8aa3f1e995d9f0f3a6b410e.zip |
added multiprocessing server core
Diffstat (limited to 'src/lib/Bcfg2/Options.py')
-rw-r--r-- | src/lib/Bcfg2/Options.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Options.py b/src/lib/Bcfg2/Options.py index c7604c5c4..fd7c4421a 100644 --- a/src/lib/Bcfg2/Options.py +++ b/src/lib/Bcfg2/Options.py @@ -609,6 +609,16 @@ SERVER_AUTHENTICATION = \ default='cert+password', odesc='{cert|bootstrap|cert+password}', cf=('communication', 'authentication')) +SERVER_CHILDREN = \ + Option('Spawn this number of children for the multiprocessing core. ' + 'By default spawns children equivalent to the number of processors ' + 'in the machine.', + default=None, + cmd='--children', + odesc='<children>', + cf=('server', 'children'), + cook=get_int, + long_arg=True) # database options DB_ENGINE = \ @@ -1182,7 +1192,8 @@ SERVER_COMMON_OPTIONS = dict(repo=SERVER_REPOSITORY, vcs_root=SERVER_VCS_ROOT, authentication=SERVER_AUTHENTICATION, perflog=LOG_PERFORMANCE, - perflog_interval=PERFLOG_INTERVAL) + perflog_interval=PERFLOG_INTERVAL, + children=SERVER_CHILDREN) CRYPT_OPTIONS = dict(encrypt=ENCRYPT, decrypt=DECRYPT, |