From patchwork Thu Mar 23 19:25:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1760547 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=WjmSX0wd; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PjFg2721lz1yXq for ; Fri, 24 Mar 2023 06:25:33 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id AF00B41ED1; Thu, 23 Mar 2023 19:25:30 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org AF00B41ED1 Authentication-Results: smtp4.osuosl.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=WjmSX0wd X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a0hUDQx7mZMD; Thu, 23 Mar 2023 19:25:29 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id A221841954; Thu, 23 Mar 2023 19:25:28 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A221841954 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 72885C0071; Thu, 23 Mar 2023 19:25:28 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 534EDC0032 for ; Thu, 23 Mar 2023 19:25:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 275438416A for ; Thu, 23 Mar 2023 19:25:27 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 275438416A Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=WjmSX0wd X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GobtBem69gFd for ; Thu, 23 Mar 2023 19:25:26 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org B930884169 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by smtp1.osuosl.org (Postfix) with ESMTPS id B930884169 for ; Thu, 23 Mar 2023 19:25:25 +0000 (UTC) Received: by mail-ed1-x52c.google.com with SMTP id r11so91268957edd.5 for ; Thu, 23 Mar 2023 12:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679599523; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3rc3AsLKID+9kuggTBF/gbdrw04UsNF/2ezXTBxP9WE=; b=WjmSX0wdNFuQS49vaNpvvdDIJricqQZWIXC38FHjK1HG+VFe4cNMKHfnCd0oOITu+x R6xjmWYrFMPHUEaw/eYQ5BILKqOg+TwoC11CFGSXlT6JjIQ0hnhIoIJsP7RjEjoOIKAz bFGs5yUOl/UDDUsY/Ro8qJGxc5Od04h8XbMgvMpjBMVMBV8qg6GbI3jcZF6dXHCvYz6r LKOEGY0uSJlJRx3TYXrxHc5VCSjCaR9uEFCzC1GXkxgIgEmuruT74d02iB1UhS48KWT4 XwOeDiyd4CkRXiFYZ7F6Cn/jwbMVhGrubwoMgeuS33+yEPlFghexEyC85wmJ36uZtigS D0yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679599523; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3rc3AsLKID+9kuggTBF/gbdrw04UsNF/2ezXTBxP9WE=; b=L7bPTJdpZv9BHzwzqv0hASLfuTzK3wIVCWB6hxKu1eGkF76IndAwHMlz6HVuf5CSGV Ib/oR1J7FleMazStJWtBqp5iZyAp75XRGGL//kGjy61fjONaEtcQ+HN3wbicotlpV2jb svNOky0llq1VAbCHZTFEnwQls8Ke+GK9eBfU0kFMPMW9DDuVENVT33lMRHcuf5gj3gNg 7U7d8fWF6dlkAdX51M1yEh7qhiz1jjnVVOiYQVInyDI9utNQ6DLp0QkfLijhhAAb6sn5 XQQhA31cIJClsRSvoLi+wpJSfWHVcZ+PX6s0yQUSNPw1wNlU5wo7TV6LGliMOmVyhqNd Muvw== X-Gm-Message-State: AAQBX9fteTfjCA0N6bSaXdHpU2qXowjTCeWpvEuezS+nP1GVTSbQYbtB Z4gUN+zONkaTbg7pcLgoMn0w2ey6S+k= X-Google-Smtp-Source: AKy350bH+Kmu6sKP7G5FkFuBxwJTRaELXDzgg33CGt+m9ouTubDIOByGGoK1lSWOM0dZaqIP0tJjxg== X-Received: by 2002:a05:6402:10d7:b0:501:c839:cf90 with SMTP id p23-20020a05640210d700b00501c839cf90mr471331edu.3.1679599523469; Thu, 23 Mar 2023 12:25:23 -0700 (PDT) Received: from ip-10-70-112-12.vpc-1e810be1.internal (c2-178-216-98-9.elastic.cloud.croc.ru. [178.216.98.9]) by smtp.gmail.com with ESMTPSA id b44-20020a509f2f000000b004c09527d62dsm9627405edf.30.2023.03.23.12.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 12:25:22 -0700 (PDT) From: Vladislav Odintsov To: dev@openvswitch.org Date: Thu, 23 Mar 2023 22:25:20 +0300 Message-Id: <20230323192520.3903330-1-odivlad@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn] utilities: disable OVSDB inactivity probes for non-daemon ovn-nbctl X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" For large OVN_Southbound DBs defatult interval of 5000 ms could be not sufficient. This patch disables OVSDB inactivity probes for ovn-*ctl running in non-daemon mode. Signed-off-by: Vladislav Odintsov Reviewed-by: Ales Musil --- utilities/ovn-dbctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utilities/ovn-dbctl.c b/utilities/ovn-dbctl.c index 369a6a663..4307a5cae 100644 --- a/utilities/ovn-dbctl.c +++ b/utilities/ovn-dbctl.c @@ -208,6 +208,9 @@ ovn_dbctl_main(int argc, char *argv[], if (daemon_mode) { server_loop(dbctl_options, idl, argc, argv_); } else { + /* Disable OVSDB probe interval for non-daemon mode. */ + ovsdb_idl_set_probe_interval(idl, 0); + struct ctl_command *commands; size_t n_commands; char *error;