Bug 1949052 - [OVN][RFE] Make Neutron workers connect to replica OVSDB SB servers in read only mode
Summary: [OVN][RFE] Make Neutron workers connect to replica OVSDB SB servers in read o...
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: OSP Team
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-13 10:35 UTC by Daniel Alvarez Sanchez
Modified: 2023-01-20 10:15 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-2589 0 None None None 2021-11-18 15:08:42 UTC

Description Daniel Alvarez Sanchez 2021-04-13 10:35:52 UTC
In order to improve scaling and reduce the load to OVSDB SB servers, Neutron could connect to OVSDB replication SB servers in read-only mode.

So far, the main use case of writing to SB database is the agent liveness checks where Metadata agents write to the Chassis Private table to reflect that they are alive. Theoretically, this can be avoided by writing into local OVSDB and let ovn-controller copy it over to the SB database.

The purpose of this BZ is to research if we can stop writing (or at least reduce the number of 'writing' connections) to SB database and distribute the reading load across the Active/Passive cluster.

Thanks to Ilya Maximets & Dumitru Ceara for the ideas.

Comment 1 Lucas Alvares Gomes 2021-04-13 10:43:19 UTC
(In reply to Daniel Alvarez Sanchez from comment #0)
> In order to improve scaling and reduce the load to OVSDB SB servers, Neutron
> could connect to OVSDB replication SB servers in read-only mode.
> 
> So far, the main use case of writing to SB database is the agent liveness
> checks where Metadata agents write to the Chassis Private table to reflect
> that they are alive. Theoretically, this can be avoided by writing into
> local OVSDB and let ovn-controller copy it over to the SB database.
> 

There´s a drawback with this approach. The Chassis_Private table was introduced to avoid triggering events every where when we write to the Chassis table and currently, updating the local OVSDB will make ovn-controller to write to the Chassis table again (not Chassis_Private) which will re-introduce the triggering problem.

Comment 2 Terry Wilson 2021-04-13 13:14:02 UTC
I think the agent delete support patch (https://review.opendev.org/c/openstack/neutron/+/752795/) already removes our writes to sbdb.


Note You need to log in before you can comment on or make changes to this bug.