File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
33from mamonsu .plugins .pgsql .plugin import PgsqlPlugin as Plugin
4- from distutils .version import LooseVersion
54from .pool import Pooler
65
76
@@ -10,7 +9,7 @@ class PreparedTransaction(Plugin):
109 key_count = {
1110 'state' : 'count_prepared' ,
1211 'key' : 'pgsql.prepared.count' ,
13- 'name' : 'PostgreSQL: numder of prepared transactions' ,
12+ 'name' : 'PostgreSQL: number of prepared transactions' ,
1413 'color' : '00BB00' ,
1514 'yaxisside' : 0 ,
1615 }
Original file line number Diff line number Diff line change @@ -178,11 +178,11 @@ enabled = False
178178relations=pg_catalog.pg_class,pg_catalog.pg_user
179179interval = 500
180180
181- # Get age in second and number of transactions that are currently prepared for two-phase commit.
181+ # Get age ( in seconds) of the oldest running prepared transaction and number of all prepared transactions for two-phase commit.
182182# https://www.postgresql.org/docs/current/sql-prepare-transaction.html
183183# https://www.postgresql.org/docs/12/view-pg-prepared-xacts.html
184- # max_prepared_transaction_time - age of prepared pransaction in second, after which the trigger run .
185- # (возраст подготовленных транзакций, после которого срабатывает триггер.) ????
184+ # max_prepared_transaction_time - age of prepared transaction in seconds .
185+ # If pgsql.prepared.oldest exceeds max_prepared_transaction_time the trigger fires.
186186[preparedtransaction]
187187max_prepared_transaction_time = 60
188188interval = 60
You can’t perform that action at this time.
0 commit comments