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 1hw8F2-0005rD-TW for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2019 16:59:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hw8F0-0005IL-PF for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2019 16:59:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hw8F0-0005IE-DM for pgsql-general@lists.postgresql.org; Fri, 09 Aug 2019 16:59:46 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hw8Ew-0007oG-EU for pgsql-general@lists.postgresql.org; Fri, 09 Aug 2019 16:59:46 +0000 Received: by mail-pg1-x531.google.com with SMTP id x15so35798488pgg.8 for ; Fri, 09 Aug 2019 09:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=77whOYSiu/O+KLa7WN1sLOs5d6GNqR0sITxTamQBqVg=; b=chmXV+KkSpbvzS6ATRqw2MEwZefifI926DsL2YB46o8Anh9sFi6w5vtU64rMFHrBEn +/iLoHbwtgjiu/1Z/qgXnD6BLwP0WShmsfF3bQIigWYUpXITxZ45aTbav5SfF4nQleJO 0RSfCka5Mprs0daIFl1WibLmYXdZTxALPmaSahUdQH2aeSugn7ODkvTWo+AWTchFRUq0 3Hs2rOHawjvLEl16HW9uax2k5k4eeKg5ucwMdcJNlcdqyhpCgYgOWtsre2d8efWGOMra Go1XqeOVJNVneb9lXKf3OfPjU4riDHx1evYq9xe80CrFSughnknyISvUibmy7PKMIaD4 za1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=77whOYSiu/O+KLa7WN1sLOs5d6GNqR0sITxTamQBqVg=; b=lYCtM78H5Sisj7wDByGid7XZ8XWeEtx4inhvY6wREXbIlF2YmpnacPlQWiqppgC0lX UDhTPl0KMYkqAc7lzDwTMuiDlMoAlPNvpPIWkEdyzT2JdUGMoxXN6KM2oxzHSpv7MVJU 2Vj8uDVE91AK8A+LKSmHVzxX9e033iORAowJHKPv3J1zM+GYjFbfyar6PP/tgPmUF4ma p/worPy4eAZKyFSNVlZuQKKot93oqOMECrqckhS4B0hCFNl9CchxmVU5x53MKLFGOHEa BzcCLKEfqODQgWUpEsP3YvTU1MEF8iE0Aw2Roem91e+sSe9UE3SgL5BFdaPHTJjjCPDf +5/w== X-Gm-Message-State: APjAAAVW0JEtvq3eBW98iVRaX9pba9PXuZR5DUePvAxn0Ubu4CVO4UIf 4vuFS36oAWt4uiOwOE2EcnfAkfni X-Google-Smtp-Source: APXvYqw7/NUjZPRIHaaIlwbNWEtAp6urKhhZLbvFRDPz9PZIObrDBy7bubGhq0gKFRe8gB+jENBm7A== X-Received: by 2002:a63:cb4f:: with SMTP id m15mr18230959pgi.100.1565369980002; Fri, 09 Aug 2019 09:59:40 -0700 (PDT) Received: from [10.104.134.41] ([155.100.47.1]) by smtp.gmail.com with ESMTPSA id 131sm27979754pge.37.2019.08.09.09.59.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Aug 2019 09:59:39 -0700 (PDT) Subject: Re: Generate test data inserts - 1GB To: pgsql-general@lists.postgresql.org References: <8515df43-2826-5e9b-60c8-daafe9294a9d@aklaver.com> From: Rob Sargent Message-ID: <35286e57-c19c-861b-ebf7-d4f236e85e69@gmail.com> Date: Fri, 9 Aug 2019 10:59:38 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------2C3D792E3CBCA4EF6084522D" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------2C3D792E3CBCA4EF6084522D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > > Thanks for the reply Adrian. > > Missed one requirement. Will these methods generate wal logs needed > for replication? > > Actually the data is to check if replication catches up. Below is > scenario : > > 1. Have a master slave cluster with replication setup > > 2. Kill master so that standby takes over. We are using pacemaker for > auto failure. > Insert 1 GB data in new master while replication is broken. > > 3 Start oldnode as standby and check if 1GB data gets replicated. > > As such testing might be frequent we needed to spend minimum time in > generating data. > Master slave are in same network. > > Thanks ! How quickly does your production instance grow, in terms of GB/per-unit-time? --------------2C3D792E3CBCA4EF6084522D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit




--
Adrian Klaver
adrian.klaver@aklaver.com

Thanks for the reply Adrian. 

Missed one requirement. Will these methods generate wal logs needed for replication? 

Actually the data is to check if replication catches up. Below is scenario :

1. Have a master slave cluster with replication setup

2. Kill master so that standby takes over. We are using pacemaker for auto failure. 
Insert 1 GB data in new master while replication is broken.

3 Start oldnode as standby and check if 1GB data gets replicated.

As such testing might be frequent we needed to spend minimum time in generating data. 
Master slave are in same network. 

Thanks !
How quickly does your production instance grow, in terms of GB/per-unit-time?
--------------2C3D792E3CBCA4EF6084522D--