Each stack gets its own ClickHouse (2G limit, system logs off, low-memory config) and the schedule worker consumes scheduler_recorder. Next keeps 30 days of history, production 365. Goes live with the move to the bigger instance.
22 lines
511 B
YAML
22 lines
511 B
YAML
---
|
|
- name: 'Generate env files for "{{ service }}"'
|
|
template:
|
|
src: "{{ service_path }}/templates/{{ file }}"
|
|
dest: "{{ remote_service_path }}/{{ file }}"
|
|
tags:
|
|
- config
|
|
loop_control:
|
|
loop_var: file
|
|
with_items:
|
|
- api.env
|
|
- front.env
|
|
- sentry.env
|
|
|
|
- name: 'Copy ClickHouse config for "{{ service }}"'
|
|
template:
|
|
src: "{{ service_path }}/config/clickhouse.xml"
|
|
dest: "{{ remote_service_path }}/config/clickhouse.xml"
|
|
register: clickhouse_config
|
|
tags:
|
|
- config
|