Fill the README file.

This commit is contained in:
Andrea Dell'Amico 2021-03-23 15:36:15 +01:00
parent 71bec92ff5
commit a3a3b44140
2 changed files with 21 additions and 4 deletions

View File

@ -1,7 +1,7 @@
Role Name
=========
A role that
A role that installs a TimeScaleDB instance
Role Variables
--------------
@ -9,8 +9,26 @@ Role Variables
The most important variables are listed below:
``` yaml
users_system_users:
- { login: 'foo', name: "Foo Bar", home: '{{ users_home_dir }}', createhome: 'yes', ssh_key: '{{ foo_ssh_key }}', shell: '/bin/bash', admin: False, log_as_root: False }
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' }
```
Dependencies

View File

@ -1,6 +1,5 @@
---
timescale_db_ubuntu_repo: 'ppa:timescale/timescaledb-ppa'
timescale_db_pkg: 'timescaledb-2-postgresql-{{ psql_version }}'
timescale_db_deb_pkgs: '{{ timescale_db_pkg }}'