Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUDtV-0007dj-Ge for pgsql-general@arkaria.postgresql.org; Fri, 24 May 2019 17:22:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hUDtU-00032o-0t for pgsql-general@arkaria.postgresql.org; Fri, 24 May 2019 17:22:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUDtS-0002yQ-Lb for pgsql-general@lists.postgresql.org; Fri, 24 May 2019 17:22:11 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUDtP-0004J0-HL for pgsql-general@lists.postgresql.org; Fri, 24 May 2019 17:22:09 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A501B20CB3; Fri, 24 May 2019 13:22:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 24 May 2019 13:22:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=e rK33pDLe+vE0TJT6bZAtuHLcNRi+yTe5dqtjAuMGQ0=; b=tQIovjynoG8gRTyRa hlh6tgPrXPWAQbuVsUvPSsPNCrVadde8aipOus6+6FhbRVS/KcjJv+O/b8+YDa5o uBqE34ybdOGrmY+9qSxHVXG7wcXKaaWCJwggY2SPACqt+s3wMaT9OW4nperT01z/ 3fUk0HsBopuZD1a5NQDqVqnDjxzniiYyoZV7gcq32CyBhUiaMSznLkAcO5z0UbD0 wuTz7wZ11mtPurl0NxHUGsNCO6l/EaoYSo7fvjR6kX0X/1ta3dwYOiYSpaKfqRNP DqfgmQQ+TXY4I9TDv8k2rtgk2b+8PY6tgfujvAtX1VUEFiAVHkeNOH/VoCSYCG8J CMF7g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=erK33pDLe+vE0TJT6bZAtuHLcNRi+yTe5dqtjAuMG Q0=; b=SFnBXBv3ZUOB2fn7u/T7IxB8RUs7kSs1SU9guTEqGgWjBXSn4P/4ygJYm Wl5e/EwBOHLLspIRgJ4Jd0LHH0HsSsMtUHBwofPz9Gu3xy7H7oG6gXbYgpE1viuV Od7w8MMs0AZfGlLtjrDlBUdFq1BCIGwPeQJ42+NkFe03wcmTcQtAENuDqDvtXScx V+lQX7gtmNP36feRTTsfMKAB0AJNBeR8i/GYi/NsKslLqQxQZWwUSt4acEW2zmV/ i7PJcnGJ+1YpcuhxDIYHfqQo4tiIZmIzAsV18z1qVAp/LjuDaB/rbegnhwZG9FHc z+Ucp/0DieH/AMC3hBtV3gMPD+/5w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudduiedguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ejredttdefheenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjeegrdelgedrjeefrddvvd dvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id C251C80061; Fri, 24 May 2019 13:22:05 -0400 (EDT) Subject: Re: POSTGRES_FSM_RELATIONS CRITICAL: DB control fsm relations used: 79569 of 80000 (99%) To: Julie Nishimura , "pgsql-general@lists.postgresql.org" , pgsql-general References: <804b26fe-269e-82d7-01ef-86da933a6566@aklaver.com> From: Adrian Klaver Message-ID: Date: Fri, 24 May 2019 10:22:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/24/19 10:16 AM, Julie Nishimura wrote: > Adrian, this value was set in config file, and alerting comes from > monitoring. Yes, but what is the monitoring actually doing to get that value? > > Would it be right query to count objects in each database (there are 75 > dbs on this server totaling close to 20 tb): > > SELECT > count(1) as object_count > FROM pg_catalog.pg_class c > WHERE c.relkind IN ('r','i') > > ? > > Thanks! > > ------------------------------------------------------------------------ > *From:* Adrian Klaver > *Sent:* Friday, May 24, 2019 7:19 AM > *To:* Julie Nishimura; pgsql-general@lists.postgresql.org; pgsql-general > *Subject:* Re: POSTGRES_FSM_RELATIONS CRITICAL: DB control fsm relations > used: 79569 of 80000 (99%) > On 5/23/19 11:57 PM, Julie Nishimura wrote: >> Hello, >> We have an issue with fsm_relations utilization reaching 99%, I was able > > How are you arriving at the above percentage? > > How many tables/indexes do you have in the database(s)? > >> to vacuum a handful of tables, but it wasn't enough to make a noticeable >> difference. I think at this point we will need to increase the number of >> fsm_relations from 80,000 to 100,000 which will require a restart. >> Because there aren't any more dead rows to delete. I confirmed this by >> connecting to each db and running the following query: >> SELECT relname, n_live_tup, n_dead_tup from pg_stat_user_tables order by >> n_dead_tup desc >> daily_mail_shared_state_cddt_3588- >> relname | n_live_tup | n_dead_tup >> ----------------+------------+------------ >> article_errors | 0 | 0 >> article_names | 3375193 | 0 >> indexdefs | 0 | 0 >> tabledefs | 0 | 0 >> >> Above output, shows n_dead_tup is zeroed out, this makes me believe that >> we need to increase the number of fsm relations to a number between 90k >> and 100k.But I might be wrong, need your advice. >> >> PostgreSQL 8.2.15 (Greenplum Database 4.3.8.1 build 1) >> >> Thanks! > > > -- > Adrian Klaver > adrian.klaver@aklaver.com -- Adrian Klaver adrian.klaver@aklaver.com