postgresql - Multiple connection pool on same PostgresSql -


my application has 2 sections mainly,

  1. user interface written in angular uses django python end.
  2. heavy map reduce kind of process.

both uses postgres up, doubt if use same connection pool both, @ time when map reduce runnning due heavy lookup other application won't work because of no connection available. there work around this.(avoiding postgres in backlog)

ps: using pgbouncer pooling

simplest approach separating 2 sections. @ least respect connection resources. (whether e.g. memory consumption , gc benefit restructuring not asked for)

you may achieve using 1 of following approaches:

  1. use 2 separate pools, 1 each section.
    way, may setup pools according connection requirements per section.

  2. change code maintain sufficient "free" resources other section.
    quite tedious , useful resource requirements need fine grain control depending on internal state of algorithms.

usually you'd want go suggestion 1.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -