Commit 0bef4ee
feat(webapp): add EVENTS_READER_CLICKHOUSE_URL for events read replica
The events client both inserts events and reads traces/spans/logs through one
instance. Give it a dedicated reader URL so reads can move to a replica while
inserts stay on EVENTS_CLICKHOUSE_URL. Unlike the read-only clients, it does
not fall back to CLICKHOUSE_READER_URL: a write-capable client only moves reads
on an explicit opt-in.1 parent e4e24ea commit 0bef4ee
3 files changed
Lines changed: 11 additions & 4 deletions
File tree
- .server-changes
- apps/webapp/app
- services/clickhouse
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1816 | 1816 | | |
1817 | 1817 | | |
1818 | 1818 | | |
| 1819 | + | |
| 1820 | + | |
1819 | 1821 | | |
1820 | 1822 | | |
1821 | 1823 | | |
| |||
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
314 | 313 | | |
315 | 314 | | |
316 | 315 | | |
| |||
0 commit comments