analytics/config
Adam Rutkowski 8f85b110aa
Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661)
* Configure ingest repo access/pool size

If I'm not mistaken 3 is a sane default, the only
inserts we're doing are:

  - session buffer dump
  - events buffer dump
  - GA import dump

And all are serializable within their scopes?

* Add IngestRepo

* Start IngestRepo

* Use IngestRepo for inserts

* Annotate ClickhouseRepo as read_only

So no insert* functions are expanded

* Update moduledoc

* rename alias

* Fix default env var value so it can be casted

* Use IngestRepo for migrations

* Set default ingest pool size from 3 to 5

in case conns are restarting or else...

* Ensure all Repo prometheus metrics are collected
2023-02-12 17:50:57 +01:00
..
.env.dev Allow Site DB lookups during ingestion phase (#2408) 2022-11-01 17:11:50 +02:00
.env.test Replace Geolix with Locus (#2362) 2023-01-17 12:05:09 -03:00
config.exs Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 2023-02-12 17:50:57 +01:00
dev.exs Show user feedback form on server errors (#2617) 2023-01-25 15:15:41 +01:00
prod.exs New config (#595) 2021-01-13 15:41:16 +02:00
runtime.exs Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 2023-02-12 17:50:57 +01:00
test.exs Replace Geolix with Locus (#2362) 2023-01-17 12:05:09 -03:00