puppet-neutron/spec
Lucas Alvares Gomes 2ed6a1936a [OVN] Change the default metadata_workers to 2
Prior to this patch, the metadata_workers parameter defaults to
$os_workers (calculated here [0]) but, even tho it's capped at 12 workers
this number still redundant.

There are a few differences of how the OVN metadata agent works compared
with the OVS metadata agents:

1) The OVN metadata workers are deployed onto the compute nodes and not
   on the controllers/gateways as the OVS ones are. This means it's
   better distributed.

2) Even tho we could have multiple workers, the OVN SB IDL in the OVN
   metadata agents acquires a lock while listening to OVSDB events.
   Therefore, even tho we could have dozens of agents only one of them
   is listening to the events.

3) Instantiating IDLs means maintaining in-memory replicas of the
   OVSDB (or, the tables of that DB that is being watched). This puts a
   burden on OVSDBs to maintain all these replicas updated, reducing
   this number workers also reduces the burden on the OVSDBs.

This patch is reducing the default number of OVN metadata agents to two
(per compute). Two because that keeps it HA, in case the active agente
dies the lock moves to the other one and the service will keep working.

[0]
74e0f5a317/lib/facter/os_workers.rb (L37)

Change-Id: I6b9cc2aff14ce38a56c2757d9ad6c56898e27247
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
(cherry picked from commit 847f434140)
2020-03-30 15:31:41 +01:00
..
acceptance Remove LBaas 2019-05-13 14:48:43 +02:00
classes [OVN] Change the default metadata_workers to 2 2020-03-30 15:31:41 +01:00
functions Use puppet4 functions-api 2018-12-18 10:32:11 +00:00
unit Add support for neutron-mlnx-agent 2019-07-14 11:33:27 +00:00
shared_examples.rb spec: updates for rspec-puppet 2.x and rspec 3.x 2015-03-19 16:57:59 +01:00
spec_helper.rb Move rspec-puppet-facts to spec helper 2016-09-30 13:23:41 -06:00
spec_helper_acceptance.rb Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance 2016-01-18 09:11:27 -05:00