24 lines
1.3 KiB
YAML
24 lines
1.3 KiB
YAML
---
|
|
timescale_db_ubuntu_repo: 'ppa:timescale/timescaledb-ppa'
|
|
|
|
timescale_db_pkg: 'timescaledb-2-postgresql-{{ psql_version }}'
|
|
timescale_db_deb_pkgs: '{{ timescale_db_pkg }}'
|
|
|
|
timescale_db_el_pkgs:
|
|
- '{{ timescale_db_pkg }}'
|
|
- libpq5-devel
|
|
|
|
timescaledb_configuration_settings:
|
|
- { name: 'timescaledb.last_tuned', value: "'{{ ansible_date_time.date }}T{{ ansible_date_time.time }}{{ ansible_date_time.tz_offset }}'", set: 'True' }
|
|
- { name: 'timescaledb.last_tuned_version', value: "'0.11.0'", set: 'True' }
|
|
- { name: 'timescaledb.max_background_workers', value: '{{ ansible_processor_vcpus * 2 }}', set: 'True' }
|
|
- { name: 'max_worker_processes', value: '{{ (ansible_processor_vcpus * 4) - 1 }}', set: 'True' }
|
|
- { name: 'max_parallel_workers_per_gather', value: '{{ (ansible_processor_vcpus / 2) | int }}', set: 'True' }
|
|
- { name: 'max_parallel_workers ', value: '{{ ansible_processor_vcpus }}', set: 'True' }
|
|
- { name: 'default_statistics_target', value: '{{ (ansible_memtotal_mb / 16) | int }}', set: 'True' }
|
|
- { name: 'random_page_cost', value: '1.1', set: 'True' }
|
|
- { name: 'checkpoint_completion_target', value: '0.9', set: 'True' }
|
|
- { name: 'max_locks_per_transaction', value: '{{ ((ansible_memtotal_mb / 512) * ansible_processor_vcpus) | int }}', set: 'True' }
|
|
- { name: 'effective_io_concurrency', value: '200', set: 'True' }
|
|
|