Added tables for further implementation of service monitors for
logical switch ports:
New table:
- Logical_Switch_Port_Health_Check: Health check configuration
for logical switch port.
Modified tables:
- Logical_Switch_Port: Add 'health_checks' column referencing
health checks configuration.
Signed-off-by: Alexandra Rukomoinikova <[email protected]>
---
ovn-nb.ovsschema | 9 ++++++--
ovn-nb.xml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 61 insertions(+), 2 deletions(-)
diff --git a/ovn-nb.ovsschema b/ovn-nb.ovsschema
index cbb4f98e7..47da7ae18 100644
--- a/ovn-nb.ovsschema
+++ b/ovn-nb.ovsschema
@@ -1,7 +1,7 @@
{
"name": "OVN_Northbound",
- "version": "7.14.0",
- "cksum": "3428479461 43444",
+ "version": "7.15.0",
+ "cksum": "1804537878 43761",
"tables": {
"NB_Global": {
"columns": {
@@ -179,6 +179,11 @@
"refType": "strong"},
"min": 0,
"max": 1}},
+ "health_checks": {"type": {"key": {"type": "uuid",
+ "refTable":
"Logical_Switch_Port_Health_Check",
+ "refType": "weak"},
+ "min": 0,
+ "max": "unlimited"}},
"external_ids": {
"type": {"key": "string", "value": "string",
"min": 0, "max": "unlimited"}}},
diff --git a/ovn-nb.xml b/ovn-nb.xml
index b5fe44e53..9202f0910 100644
--- a/ovn-nb.xml
+++ b/ovn-nb.xml
@@ -2115,6 +2115,11 @@
Please see the <ref table="Mirror"/> table.
</column>
+ <column name="health_checks">
+ Health checks configuration for this logical switch port.
+ Please see the <ref table="Logical_Switch_Port_Health_Check"/> table.
+ </column>
+
<column name="ha_chassis_group">
References a row in the OVN Northbound database's
<ref table="HA_Chassis_Group" db="OVN_Northbound"/> table.
@@ -2171,6 +2176,55 @@
</group>
</table>
+ <table name="Logical_Switch_Port_Health_Check"
+ title="logical switch port health check">
+ <p>
+ Each row represents health check configuration for logical switch port.
+ Health checks are used to monitor reachability and health of backend
+ endpoints associated with logical switch port. Health check can be
+ configured to use different protocols (TCP, UDP, or ICMP) to verify
+ availability of target IP addresses.
+ </p>
+
+ <column name="protocol">
+ Valid protocols are <code>tcp</code>, <code>udp</code>, or
+ <code>icmp</code>. For <code>tcp</code> and <code>udp</code>
+ protocols - destination port must be specified.
+ </column>
+
+ <column name="src_ip">
+ Source IP address used when sending health check probes.
+ </column>
+
+ <column name="port">
+ Destination port number for TCP and UDP health checks.
+ </column>
+
+ <column name="addresses">
+ A set of IP addresses to monitor. If no specific addresses are provided,
+ health check will use all addresses configured on logical switch port.
+ </column>
+
+ <column name="options" key="interval" type='{"type": "integer"}'>
+ The interval, in seconds, between service monitor checks.
+ </column>
+
+ <column name="options" key="timeout" type='{"type": "integer"}'>
+ The time, in seconds, after which the service monitor check times
+ out.
+ </column>
+
+ <column name="options" key="success_count" type='{"type": "integer"}'>
+ The number of successful checks after which the service is
+ considered <code>online</code>.
+ </column>
+
+ <column name="options" key="failure_count" type='{"type": "integer"}'>
+ The number of failure checks after which the service is considered
+ <code>offline</code>.
+ </column>
+ </table>
+
<table name="Forwarding_Group" title="forwarding group">
<p>
Each row represents one forwarding group.
--
2.48.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev