Skip to content

active sessions #428

Closed Answered by pashagolub
lakosm asked this question in Q&A
Apr 29, 2022 · 2 comments · 15 replies
Discussion options

You must be logged in to vote

Hi,

assuming when we are speaking about 2 workers we are talking about 2 pg_timetable instances.

Each pg_timetable instance can use max --cron-workers + --interval-workers parallel routines according to the manual.

In the worst scenario (highest load) we need:

  • separate connection for each of routines,
  • separate connection for Scheduler.retrieveChainsAndRun(),
  • separate connection for Scheduler.retrieveIntervalChainsAndRun()
  • and another connection for LogHook.send().

That means the max connection (session) number for one pg_timetable instance (worker) would be:

	max_conn = --cron-workers + --interval-workers + 3

In other words, if you want to limit the number of the database sessions you …

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
3 replies
@lakosm
Comment options

@pashagolub
Comment options

@lakosm
Comment options

Answer selected by lakosm
Comment options

You must be logged in to vote
12 replies
@pashagolub
Comment options

@DaskalovBG
Comment options

@pashagolub
Comment options

@DaskalovBG
Comment options

@pashagolub
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
❓ question Further information is requested
3 participants