Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pQB0U-0003Jr-4X for pgsql-general@arkaria.postgresql.org; Thu, 09 Feb 2023 17:46:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pQB0S-0001hx-TP for pgsql-general@arkaria.postgresql.org; Thu, 09 Feb 2023 17:46:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pQB0R-0001hn-W7 for pgsql-general@lists.postgresql.org; Thu, 09 Feb 2023 17:46:48 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pQB0O-0006UG-Rw for pgsql-general@lists.postgresql.org; Thu, 09 Feb 2023 17:46:47 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 04B275C0262; Thu, 9 Feb 2023 12:46:43 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 09 Feb 2023 12:46:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1675964803; x= 1676051203; bh=zL35QovEApyiuL6cYCf00bIA7RjA7awT1jyFz+E6c04=; b=S e0Q8Osr5Os89rWUP9nke2mjxvqdNVs9qEL0yqVaKVwsPLa0dLnyief4fd8M04nDs Y0aEc92mXPDW8cG1/Sp6WgyGy/C2ZkHOdnVqWaV6n0ltz5RuNSN5H6Y9qeV5Lw/p 9q7S0Lr/g2g0zuo0OyFzbLZ7atw7TmSzjJufZFJYrWdP7o7UZ9UeA+G+IKQDGDYh 8G0dvxV6uBTRxao53D4yhKY1sHlZZANg8G3Z60OhzaAGhYqI88W0pNiMSTAB2XPh B9MB2ncMk2500WReCL2bEJXFZxxhYkrbOFdm0KTkaXdYqC2GSCMzA81sQnYeT2iW Bs1kYrXHDYAvZJw4yRMDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1675964803; x= 1676051203; bh=zL35QovEApyiuL6cYCf00bIA7RjA7awT1jyFz+E6c04=; b=T 69Zdmqnw13COpt08+ZTYkiJKNR0eZAFKLJOE/NHbN+alow0Gv4rjVNOSHfZfE6Yq X5DM+CPLr6PlChnTL1RvBmYcvwN+MQmfA+iPgKsFoo+Wi6NNqE0ARv9fhU5/yTke iLEHaARB1BymRuzcsDyouKgKmX0dIXIZjVzAwq9wyYZrtdU6YeCUkiBpN6N7yJM6 JG9/XoBY3Zkc8awPwN7AZpGXSTmw6KrjqovZeWuBkvDtcH3lgexaVJ7IaHHYpvF0 JNCs0ya/bxPg7b0wFyvnwMZ5WqMWlY/C3ECsNXOn6g6wm2GZdsn7J+kCt3lM0FJw Bx0GmS0rOiukVxiVuyIgQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudehfedguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheptegu rhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhmqeenucggtffrrghtthgvrhhnpeejgedthfeuhfetgfffvdehudelteegjeduveff keetgeejieehueduleelgfffffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Feb 2023 12:46:42 -0500 (EST) Message-ID: <66d8dfb6-c709-90a3-71a5-1d51f89db0df@aklaver.com> Date: Thu, 9 Feb 2023 09:46:41 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: Using PostgreSQL for service discovery and health-check Content-Language: en-US To: Dominique Devienne Cc: pgsql-general@lists.postgresql.org References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/9/23 09:40, Dominique Devienne wrote: > On Thu, Feb 9, 2023 at 5:51 PM Adrian Klaver > wrote: > > On 2/9/23 08:16, Dominique Devienne wrote: > > On Thu, Feb 9, 2023 at 5:05 PM Adrian Klaver > > The flip side of that is that with known ports it would it easier to > have a process on the Postgres machine or in the database that checks > the ports on regular basis. And as part of that process mark any non > responding ports as inactive. That would solve the zombie problem. > > > That's one possibility. But the "reaper" process could just as well scan > the service table, > and probe those too. So again, I'm not sure what the fixed-port approach > gains me, beside > perhaps the reaper not having to connect to PostgreSQL itself. I'm OK > with connecting. What is the reaper process? > > Thanks for the your input. Always good to have one's arguments > challenged by experts. -- Adrian Klaver adrian.klaver@aklaver.com