From patchwork Sun Mar 19 00:54:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1758592 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=eWDyga/u; 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 4PfKdt2bPVz246f for ; Sun, 19 Mar 2023 12:14:24 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 6C3A4415EB; Sun, 19 Mar 2023 01:14:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 6C3A4415EB 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=eWDyga/u 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 jM_-pGS46g18; Sun, 19 Mar 2023 01:14:21 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTPS id 37D6B4049C; Sun, 19 Mar 2023 01:14:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 37D6B4049C Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 009FBC0035; Sun, 19 Mar 2023 01:14:20 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id DFD90C0032 for ; Sun, 19 Mar 2023 01:14:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id ACBE6404A6 for ; Sun, 19 Mar 2023 01:14:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org ACBE6404A6 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 RxrLeGgg24qv for ; Sun, 19 Mar 2023 01:14:17 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 22FCA4049C Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by smtp4.osuosl.org (Postfix) with ESMTPS id 22FCA4049C for ; Sun, 19 Mar 2023 01:14:17 +0000 (UTC) Received: by mail-lf1-x12c.google.com with SMTP id bp27so10899424lfb.6 for ; Sat, 18 Mar 2023 18:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679188454; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VrC4qCoucgUoreC+t6pFEfZt8lcgTc9M4/5NU7ItXbw=; b=eWDyga/uge7bNDlJDJILLCilH/JH7inal+7lmS5qVq/uC7/M8vkBBaBRVSKZjsJONe +aWwAP7VRGPDBC8rYRef0oJ57zxrWyI4VyOanuETq39bDPsveaV4uEZy/+ffu33XzKzF LFdIkfZ+n8aSsfgqXkhITmmaplLyPzNWRU7LOPv5MxhBFBsihrRtMONm0IfZiOOPQEWa Ng3bNZrshCqiUqb2SfncFNVS1ZDJ1AUeaoWwrwMK5AKX57AoFocrdgJATka4RBv0oqkf 2QEPqWBHCkBuMnDPa+R1nb9uLWB+hbNcAVqWmhsNe8mrg9L+izTIivyTQDH9OMrhKGN8 D95g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679188454; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VrC4qCoucgUoreC+t6pFEfZt8lcgTc9M4/5NU7ItXbw=; b=6zFhuxOqR0/ai8rsdBpO0EV8GnX7N4vCC/pGpL76jX1ME0ZD7PIFoZKkypYA9jlZbs 5e7z9SiMttZYrCvAnechu6FojHgZEo2/8VToSRcy36a04nsiw4bhQc84H8eYSrlP0BdI TJBpzFvMqR7ZdgHRWgrfBb2i5t8jvthc8T55E/OUNt0gTIQPD3PrhY7X1pMK0RL1zu4i ozg1trSx4f8hcDuJXn8/9az5fKNHYL/6tLrjzLUO+pnQe6K3hEJ/RkJCrtM4LWGw0BtD rBulVD1Om9ur9BySS1mDP5bdxeNwkLu/ZuyTSgNpkY5wMJGkgG2m4GWxzFNX6p1xIF3n 5zBg== X-Gm-Message-State: AO0yUKUrutcazQz1ZZBdy5wqyLmqZ/AGbHzQ1hRUwAZJj1qDfogSTVHC V/osmvBuNx1wbS+5/9AfxlsYHiQ7WXrgIw== X-Google-Smtp-Source: AK7set+5aIe9ikGKdkkHJ3SSFDIXE8nn3uWZR/ec84Xy4ueu/mJJNbCtXmd00o84/MIqgor2j2WNMg== X-Received: by 2002:a19:ac02:0:b0:4e9:609f:256f with SMTP id g2-20020a19ac02000000b004e9609f256fmr1987110lfc.13.1679188454535; Sat, 18 Mar 2023 18:14:14 -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 h22-20020a197016000000b004da8168eba2sm1016457lfc.237.2023.03.18.18.14.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Mar 2023 18:14:14 -0700 (PDT) From: Vladislav Odintsov To: dev@openvswitch.org Date: Sun, 19 Mar 2023 03:54:27 +0300 Message-Id: <20230319005427.3796325-1-odivlad@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230318235031.3793301-1-odivlad@gmail.com> References: <20230318235031.3793301-1-odivlad@gmail.com> MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn 7/6] 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 default interval of 5000 ms could be not sufficient. This patch disables OVSDB inactivity probes for ovn-{n,s}ctl running in non-daemon mode. Signed-off-by: Vladislav Odintsov --- 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;