Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0X19-0004ML-Qz for pgsql-admin@arkaria.postgresql.org; Fri, 06 Oct 2017 18:06:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e0X19-0002fO-5p for pgsql-admin@arkaria.postgresql.org; Fri, 06 Oct 2017 18:06:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e0X18-0002fA-J8 for pgsql-admin@postgresql.org; Fri, 06 Oct 2017 18:06:34 +0000 Received: from nrccenhts1.nrc.ca ([132.246.15.88]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e0X15-0003VH-TX for pgsql-admin@postgresql.org; Fri, 06 Oct 2017 18:06:33 +0000 Received: from [132.246.194.15] (132.246.11.2) by owa.nrc.ca (132.246.15.87) with Microsoft SMTP Server (TLS) id 8.3.485.1; Fri, 6 Oct 2017 14:06:24 -0400 Message-ID: <59D7C576.1000607@nrc-cnrc.gc.ca> Date: Fri, 6 Oct 2017 11:03:34 -0700 From: ghiureai User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: "pgsql-admin@postgresql.org" Subject: PG 10 streaming replication with repmgr basic cfg Q Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi List, I am learning to cfg PG 10 streaming replication with repmgr ( master -> slave rep cfg) so far for basic small transactions , switching over to slave and promoting as new master is been smooth , now I am trying a copy/insert > 15 mill entries in a table in master rep server using " copy" from a file after less than 10 min the I filled aprox 20GB allocated to log, wal_files, here is from my pstgresql. conf and repmgr , I cfg PG10 to use replication slots do I still need archive_mode "on" ? Is this normal to generate so many wal_files ? and How I should handle "COPY" large amount/batch data in a streaming replication cfg ? my postgresql.conf max_wal_senders=10 wal_level='hot_standby' hot_standby=on ( on standby server) archive_mode=on archive_command = 'cp %p /var/lib/pgsql/10/archive/%f' wal_keep_segments =10 max_replication_slots = 2 *************************** repmgr.conf use_replication_slots=1 ******************************** SELECT * FROM pg_replication_slots; slot_name | plugin | slot_type | datoid | database | temporary | active | active_pid | xmin | catalog_xmin | restart_lsn | confirmed_flush_lsn ---------------+--------+-----------+--------+----------+-----------+--------+------------+------+--------------+-------------+--------------------- repmgr_slot_1 | | physical | | | f | f | | | | 0/14000108 | *************** -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin