Enable postgres statistics tracking

This commit is contained in:
DataHoarder 2023-05-27 22:18:26 +02:00
parent b094a1e5f2
commit ecdac0b24d
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk
2 changed files with 16 additions and 13 deletions

View file

@ -59,18 +59,19 @@ services:
- POSTGRES_USER=p2pool
- POSTGRES_PASSWORD=p2pool
- POSTGRES_DB=p2pool
command:
- "postgres"
- "-c"
- "max_connections=1000"
- "-c"
- "shared_buffers=256MB"
- "-c"
- "work_mem=64MB"
- "-c"
- "temp_buffers=64MB"
- "-c"
- "hash_mem_multiplier=2.0"
command: >-
postgres
-c max_connections=1000
-c shared_buffers=256MB
-c work_mem=64MB
-c temp_buffers=64MB
-c hash_mem_multiplier=2.0
-c hash_mem_multiplier=2.0
-c shared_preload_libraries='pg_stat_statements'
-c track_activity_query_size=2048
-c pg_stat_statements.track=all
-c pg_stat_statements.save=on
-c track_io_timing=on
networks:
- p2pool-observer
healthcheck:

View file

@ -118,4 +118,6 @@ CREATE TABLE IF NOT EXISTS main_likely_sweep_transactions (
CREATE INDEX IF NOT EXISTS main_likely_sweep_transactions_miner_idx ON main_likely_sweep_transactions (miner_spend_public_key, miner_view_public_key);
CREATE INDEX IF NOT EXISTS main_likely_sweep_transactions_spending_output_indexes_idx ON main_likely_sweep_transactions USING GIN (spending_output_indices);
CREATE INDEX IF NOT EXISTS main_likely_sweep_transactions_global_output_indexes_idx ON main_likely_sweep_transactions USING GIN (global_output_indices);
CREATE INDEX IF NOT EXISTS main_likely_sweep_transactions_global_output_indexes_idx ON main_likely_sweep_transactions USING GIN (global_output_indices);
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;