Skip to content

Commit

Permalink
Adjust default config
Browse files Browse the repository at this point in the history
  • Loading branch information
TimEvens committed Mar 31, 2021
1 parent c49cada commit f87fc6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions database/1_base.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-- -----------------------------------------------------------------------
-- Copyright (c) 2018-2020 Cisco Systems, Inc. and others. All rights reserved.
-- Copyright (c) 2018-2020 Tim Evens (tim@evensweb.com). All rights reserved.
-- Copyright (c) 2021 Cisco Systems, Inc. and Tim Evens. All rights reserved.
--
-- BEGIN Base Schema
-- -----------------------------------------------------------------------
Expand All @@ -19,7 +18,7 @@ CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;

-- Use different disk for history/log/time series
CREATE TABLESPACE timeseries LOCATION '/data/ts/postgres';
-- CREATE TABLESPACE timeseries LOCATION '/var/lib/postgresql/ts';


-- -----------------------------------------------------
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/obmp-psql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
base:

# Interval at which the customer statistics should be printed/logged
stats_interval: 300
stats_interval: 60


# In minutes; The maximum age between received collector heartbeats.
Expand All @@ -23,13 +23,13 @@ base:
# Following types are implemented.
# - Default
# - base attributes
writer_max_threads_per_type: 6
writer_max_threads_per_type: 5

# Number of consecutive times the writer queue (per type) can sustain over
# the high threshold mark. If queue is above threshold for a consecutive
# writer_allowed_over_queue_times value, a new thread will be added for
# the writer type, providing it isn't already at max threads (per type).
writer_allowed_over_queue_times: 2
writer_allowed_over_queue_times: 8

# Number of seconds the writer needs to sustain below the low queue threshold mark
# in order to trigger scaling back the number of threads in use. Only one thread
Expand All @@ -43,8 +43,8 @@ base:
writer_rebalance_seconds: 600

# Maximum input queue size
# Normally within the range of 10000 - 50000 is enough
writer_queue_size: 30000
# Normally within the range of 1000 - 20000 is enough
writer_queue_size: 3000

# Maximum input queue size for the consumer
# A good starting size is 2 times the size of the writer queue size
Expand Down

0 comments on commit f87fc6b

Please sign in to comment.