From a9ec4e3be3be8d0a6e2e0b4571d94b045cf671c6 Mon Sep 17 00:00:00 2001 From: Dumitru Ceara Date: Fri, 24 Jun 2022 11:55:58 +0200 Subject: ovsdb-server: Log database transactions for user requested tables. Add a new command, 'ovsdb-server/tlog-set DB:TABLE on|off', which allows the user to enable/disable transaction logging for specific databases and tables. By default, logging is disabled. Once enabled, logs are generated with level INFO and are also rate limited. If used with care, this command can be useful in analyzing production deployment performance issues, allowing the user to pin point bottlenecks without the need to enable wider debug logs, e.g., jsonrpc. A command to inspect the logging state is also added: 'ovsdb-server/tlog-list'. Signed-off-by: Dumitru Ceara Signed-off-by: Ilya Maximets --- ovsdb/ovsdb-server.1.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ovsdb/ovsdb-server.1.in') diff --git a/ovsdb/ovsdb-server.1.in b/ovsdb/ovsdb-server.1.in index dac0f02cb..da7a6fd5d 100644 --- a/ovsdb/ovsdb-server.1.in +++ b/ovsdb/ovsdb-server.1.in @@ -273,6 +273,13 @@ again (with \fBovsdb\-server/add\-db\fR). Outputs a list of the currently configured databases added either through the command line or through the \fBovsdb\-server/add\-db\fR command. . +.IP "\fBovsdb\-server/tlog\-set \fIdatabase\fR:\fItable\fR \fIon\fR|\fIoff\fR" +Enables or disables logging of all operations executed on the specified +database and table. Logs are generated at INFO level and are rate limtied. +. +.IP "\fBovsdb\-server/tlog\-list" +Displays the logging state for all currently configured databases and tables. +. .SS "Active-Backup Commands" .PP These commands query and update the role of \fBovsdb\-server\fR within -- cgit v1.2.1