This repository was archived by the owner on Jul 6, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3
3
## Observations ##
4
4
{ { if .hosts.master } }
5
5
### Master (`{ {.hosts.master} }`) ###
6
- & #9660 ;& nbsp ; Setting | Value | Unit | Pretty value
6
+ Setting | Value | Unit | Pretty value
7
7
--------|-------|------|--------------
8
8
{ { range $i , $key := (index (index (index .results .hosts.master) " data" ) " _keys" ) } }
9
9
{ {- $value := (index (index (index $.results $.hosts.master) " data" ) $key ) -} }
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ Ram amount you can see in report A001
22
22
23
23
{ {- $autovacuum_work_mem := (RawIntUnitValue (index (index (index .results .hosts.master) " data" ) " autovacuum_work_mem" ).setting (index (index (index .results .hosts.master) " data" ) " autovacuum_work_mem" ).unit) -} }
24
24
{ {- $maintenance_work_mem := (RawIntUnitValue (index (index (index .results .hosts.master) " data" ) " maintenance_work_mem" ).setting (index (index (index .results .hosts.master) " data" ) " maintenance_work_mem" ).unit) -} }
25
- { {- $max_connections := (RawIntUnitValue (index (index (index .results .hosts.master) " data" ) " max_connections " ).setting (index (index (index .results .hosts.master) " data" ) " max_connections " ).unit) } }
25
+ { {- $autovacuum_max_workers := (RawIntUnitValue (index (index (index .results .hosts.master) " data" ) " autovacuum_max_workers " ).setting (index (index (index .results .hosts.master) " data" ) " autovacuum_max_workers " ).unit) } }
26
26
27
27
{ { if eq $autovacuum_work_mem -1 -} }
28
- Max workers memory: { { ByteFormat ( Mul $maintenance_work_mem $max_connections ) 0 } }
28
+ Max workers memory: { { ByteFormat ( Mul $maintenance_work_mem $autovacuum_max_workers ) 0 } }
29
29
{ {- else -} }
30
- Max workers memory: { { ByteFormat ( Mul $autovacuum_work_mem $max_connections ) 0 } }
30
+ Max workers memory: { { ByteFormat ( Mul $autovacuum_work_mem $autovacuum_max_workers ) 0 } }
31
31
{ {- end } }
32
32
33
33
Original file line number Diff line number Diff line change 3
3
## Observations ##
4
4
{ { if .hosts.master } }
5
5
### Master (`{ {.hosts.master} }`) ###
6
- Num | User | DB | Current state | Count | State changed >1m ago | State changed >1h ago
6
+ \# | User | DB | Current state | Count | State changed >1m ago | State changed >1h ago
7
7
----|------|----|---------------|-------|-----------------------|-----------------------
8
8
{ { range $i , $key := (index (index (index .results .hosts.master) " data" ) " _keys" ) } }
9
9
{ {- $value := (index (index (index $.results $.hosts.master) " data" ) $key ) -} }
@@ -17,7 +17,7 @@ Num | User | DB | Current state | Count | State changed >1m ago | State changed
17
17
{ { range $skey , $host := .hosts.replicas } }
18
18
#### Replica (`{ { $host } }`) ####
19
19
{ { if (index $.results $host ) } }
20
- Num | User | DB | Current state | Count | State changed >1m ago | State changed >1h ago
20
+ \# | User | DB | Current state | Count | State changed >1m ago | State changed >1h ago
21
21
----|------|----|---------------|-------|-----------------------|-----------------------
22
22
{ { range $i , $key := (index (index (index $.results $host ) " data" ) " _keys" ) } }
23
23
{ {- $value := (index (index (index $.results $host ) " data" ) $key ) -} }
You can’t perform that action at this time.
0 commit comments