Re: Access a Postgres storage with two independent instances

From: first last <ny(dot)otherwrks(at)gmail(dot)com>
To: Alan Hodgson <ahodgson(at)lists(dot)simkin(dot)ca>
Cc: pgsql-novice(at)lists(dot)postgresql(dot)org, pgsql-sql(at)lists(dot)postgresql(dot)org
Subject: Re: Access a Postgres storage with two independent instances
Date: 2024-05-07 04:26:50
Message-ID: CAG3FJTamrfzk4k+KC+bTn0axMrPqj9yaoYOzmoiRX5n90QcTFg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Actually what I want is multiple Postgres instances to have read and write
access to the same data storage directory. Anyway, that can not be possible
as what you say. But, when I deploy MySQL/MongoDB deployment with multiple
replicas to access the same storage, the all pods except one become
CrashLoopBackOff state. This is happening for MySQL/Mongo. When it comes to
Postgres, I deployed it with multiple pods, all the pods became healthy and
there is no such CrashLoopBackOff state occurred. But those pods access
different storages for every pod. Why this totally different from MySQL and
Mongo?

On Tue, May 7, 2024 at 2:34 AM Alan Hodgson <ahodgson(at)lists(dot)simkin(dot)ca>
wrote:

> On Tue, 2024-05-07 at 00:47 +0530, first last wrote:
>
> I tried to deploy Postgres deployment with Kubernetes, having three
> replicas that are accessing the same storage(PVC). Here is the configuration
> . Anyway, it can not use single storage(
> https://stackoverflow.com/questions/78436945/access-a-mysql-storage-with-two-independent-instances
> ).
>
> Finally, my question is, why the scenario is different for MySQL and
> Postgres? Could you please help me to figure out the issue? This is for my
> Final year project testing Kubernetes using fuzzing.
>
>
> Not sure what you're trying to accomplish, but PostgreSQL can definitely
> not share storage between active postmasters. Nor can MySQL, afaik.
>

On Tue, May 7, 2024 at 2:34 AM Alan Hodgson <ahodgson(at)lists(dot)simkin(dot)ca>
wrote:

> On Tue, 2024-05-07 at 00:47 +0530, first last wrote:
>
> I tried to deploy Postgres deployment with Kubernetes, having three
> replicas that are accessing the same storage(PVC). Here is the configuration
> . Anyway, it can not use single storage(
> https://stackoverflow.com/questions/78436945/access-a-mysql-storage-with-two-independent-instances
> ).
>
> Finally, my question is, why the scenario is different for MySQL and
> Postgres? Could you please help me to figure out the issue? This is for my
> Final year project testing Kubernetes using fuzzing.
>
>
> Not sure what you're trying to accomplish, but PostgreSQL can definitely
> not share storage between active postmasters. Nor can MySQL, afaik.
>

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Laurenz Albe 2024-05-07 11:17:35 Re: Access a Postgres storage with two independent instances
Previous Message Alan Hodgson 2024-05-06 20:36:59 Re: Access a Postgres storage with two independent instances