Re: PostgreSQL - A method to control Resource Consumptions of Users or process

From: Erik Serrano <eserranos(at)gmail(dot)com>
To: PABLO ANDRES IBARRA DUPRAT <Pablo(dot)Ibarra(at)itau(dot)cl>
Cc: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: PostgreSQL - A method to control Resource Consumptions of Users or process
Date: 2024-08-09 17:38:00
Message-ID: CA+dvXXtJd3JnkioKQmAw=X_GrqJBjovzLZ0eske-+S=txJJ0-w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Pablo,

One of the ways I use to avoid resource depredations is to cluster the
databases,
replicating a master and giving the "predator user" access only to the
reading node. With this I relieve
the load of that user or other users who occupy them with very heavy
queries.

Also when making a replication node, you can implement PGPOOL2 which can be
configured so that
"select" queries are automatically redirected to this reading node, with
this new configuration
you can derive all the weight of the queries to other nodes and leave the
master free.

I hope my advice helps you,
My regards

*Erik R. Serrano Saavedra*
*Ingeniero de Sistemas Informáticos*
* Data Base Administrator*

* eserranos(at)gmail(dot)com <eserranos(at)gmail(dot)com>*
* 998596691*

El vie, 9 ago 2024 a las 10:26, PABLO ANDRES IBARRA DUPRAT (<
Pablo(dot)Ibarra(at)itau(dot)cl>) escribió:

> Hi dear PostgreSQL admins.
>
>
>
> I need your advices about
> previous experiences for a method to control the resource usage on
> PostgreSQL for a user(s), application(s), query(s).
>
> Like a other databases that implement for example: Resource
> Governor or Workload manager to avoid depredation of resources at
> PostgreSQL cluster instance.
>
>
>
> Awaiting for your advices.
>
> Thanks in advance
>
>
>
>
> Para asegurar la adecuada lectura en todo tipo de correos electronicos, se
> han omitido intencionalmente los signos y acentos diacriticos del idioma
> castellano. La informacion contenida en este mensaje y cualquier archivo
> adjunto es confidencial y no puede ser usada por mas personas que sus
> destinatarios. El uso no autorizado de esta informacion puede ser
> sancionado de conformidad con el Codigo Penal chileno. Si ha recibido este
> correo por error, por favor notifique al remitente respondiendo este mismo
> mensaje y elimine el mensaje y todos los archivos adjuntos. Internet no
> puede garantizar la integridad de este mensaje, por lo que el Banco no se
> hace responsable si el contenido del mismo ha sido alterado.
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Motog Plus 2024-08-10 07:36:49 Seeking Guidance on Upgrading from PostgreSQL 12 to 1
Previous Message Amit Sharma 2024-08-09 15:40:28 PostgreSQL-v13-Repmgr: Split-Brain issue