Make cloudkitty build reproducible.
Whilst working on the Reproducible Builds effort [0] we noticed that cloudkitty could not be built reproducibly. This is because it embeds the number of CPUs of the build host in the sample configuration. Patch attached that uses oslo-config's sample_default instead. [0] https://reproducible-builds.org/ See also Debian bug: https://bugs.debian.org/942847 Change-Id: I3384ce9d03429d6eaa86c2121bfbae7101380fdc
This commit is contained in:
parent
10dd0e30b0
commit
1948308523
|
@ -57,11 +57,13 @@ orchestrator_opts = [
|
|||
cfg.IntOpt(
|
||||
'max_workers',
|
||||
default=multiprocessing.cpu_count(),
|
||||
sample_default=4,
|
||||
min=1,
|
||||
help='Max nb of workers to run. Defaults to the nb of available CPUs'),
|
||||
cfg.IntOpt('max_threads',
|
||||
# NOTE(peschk_l): This is the futurist default
|
||||
default=multiprocessing.cpu_count() * 5,
|
||||
sample_default=20,
|
||||
min=1,
|
||||
deprecated_name='max_greenthreads',
|
||||
advanced=True,
|
||||
|
|
Loading…
Reference in New Issue