Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t16ns-00ElpO-AK for pgsql-novice@arkaria.postgresql.org; Wed, 16 Oct 2024 16:23:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t16nq-005bzq-IC for pgsql-novice@arkaria.postgresql.org; Wed, 16 Oct 2024 16:23:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t16nq-005bzW-7u for pgsql-novice@lists.postgresql.org; Wed, 16 Oct 2024 16:23:14 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t16no-001CsO-18 for pgsql-novice@lists.postgresql.org; Wed, 16 Oct 2024 16:23:13 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-43123368ea9so232695e9.0 for ; Wed, 16 Oct 2024 09:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=cybertec.at; t=1729095789; x=1729700589; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=VGHmZs0oLfZ8w2k69Djt5TXDn7HsOCtshU11n9hyVoI=; b=EXeY4hIbqrOS4LZR2X99vFdaUyrP4nZg5G1tiU9VAbZz3KcEQvksoZ2D/C2Q7562le rD1gLwS5udmm86C+0mEDm1Vci8gzg07vpHEcyPLU/K47Ct+vtt5NexUWY2DPV978dg0o na2yjhp+NQfWCu4g/h62E1HFX+Ng+P4irNxW4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729095789; x=1729700589; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=VGHmZs0oLfZ8w2k69Djt5TXDn7HsOCtshU11n9hyVoI=; b=mq14g4NlRfT1VrecBQVZjB4n4yombJ1BbwFltnFyNxVRuOypW9YQAYLSSsPHzwI46z m3ZxQDZJPTZ0yqeMiYJuAwNAivNNLi1MZJ+o2DrxLicwigXNTPprtVltbJcI211lKYCa yu4aZDPndvARn6BcIy7geh3JnvqZ+XbSvEN2jFNxKeEZS2xcoveGDYFzrdiUHlv/7Xw4 CJMHuKQZkAZC8mnxDh1yzwwCT3J6syzXHibI8mvzNtBKeG8LJAPnL4Xe5QbPXsBZkzyf xDc6iqpPOc6YSyKNd53gANFuGps8Zquwo+Q0jCRIKKe6RVZcqxMg/aVOHI6JR9/EsYmW /aOg== X-Forwarded-Encrypted: i=1; AJvYcCXcDr5F2wDmEZDlo9KDXGZ7aK8Pt45wBWcbWlFvlWVvkeWCIHfphHY98Ka0/GyXz/wgdSZ1Zpxr3xM0KrE=@lists.postgresql.org X-Gm-Message-State: AOJu0YzFKiTJt+t7KW3FFfiTQqdLN0nNYt4M8o2EmWx5r8E3QxnFqXeW BXnsDz8MQVo75MrQ8da8SNxDd1Skf1imgZpqtjb+vDxGjZEpM1LstR1Fj76wKIZ+VvatJJipJDJ g X-Google-Smtp-Source: AGHT+IH9NnZawOlp3C+8XyZRkuD4QhnZaQv3XjLyM+Gsgyz051ZI4qMce8q3ioeWIVsU9kaaog9Iyw== X-Received: by 2002:a05:600c:450d:b0:431:52f5:f48d with SMTP id 5b1f17b1804b1-43152f5f79cmr18336415e9.31.1729095789374; Wed, 16 Oct 2024 09:23:09 -0700 (PDT) Received: from [172.17.192.170] ([213.33.70.33]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d7fa908fdsm4687980f8f.52.2024.10.16.09.23.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 09:23:09 -0700 (PDT) Message-ID: <93e83d00f177281c434a9b648cbd92a2dd1ea141.camel@cybertec.at> Subject: Re: Recommendations on how to combine SSD and HDD drives in bare metal PostgreSQL server From: Laurenz Albe To: Onni Hakala , pgsql-novice@lists.postgresql.org Date: Wed, 16 Oct 2024 18:23:08 +0200 In-Reply-To: <89E7D559-F734-4739-9730-7EDDF787910D@flaky.build> References: <89E7D559-F734-4739-9730-7EDDF787910D@flaky.build> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.4 (3.52.4-1.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2024-10-16 at 17:06 +0300, Onni Hakala wrote: > I have a large dataset of > 100TB which would be very expensive to store = solely into SSD drives. >=20 > I have access to a server which has 2x 3.84TB NVME SSD disks and large ar= ray of HDD drives 8 x 22TB. >=20 > Most of the data that I have in my dataset is very rarely accessed and is= stored only for archival purposes. >=20 > What would be the de-facto way to use both SSD and HDD together in a way = use where commonly used > data would be fast to access and old data would eventually only be stored= in compressed format in the HDDs? >=20 > I was initially looking into building zpool using zfs with raidz3 and zst= d compression for my HDDs > but I=E2=80=99m unsure how to add the SSDs into this equation and I thoug= ht that this is probably a common > scenario and wanted to ask opinions from here. The traditionalway to handle that would be to create an extra tablespace on= a file system built on the slow disks. You'd move tables that are no longer hot to that slow t= ablespace. If you cannot move the whole table, use partitioning and move old partition= s to the slow tablespace. Yours, Laurenz Albe