You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,11 @@ With a focus on high performance, it utilizes batching heavily and uses C++ exte
26
26
-**Multi-Database Handling**: Replicates the binary log once for all databases, optimizing the process compared to `MaterializedMySQL`, which replicates the log separately for each database.
27
27
28
28
## Installation
29
+
### Requirements
30
+
- Linux / MacOS
31
+
- python3.9 or higher
32
+
33
+
### Installation
29
34
30
35
To install `mysql_ch_replicator`, use the following command:
31
36
@@ -162,6 +167,9 @@ indexes: # optional
162
167
tables: ['test_table']
163
168
index: 'INDEX name_idx name TYPE ngrambf_v1(5, 65536, 4, 0) GRANULARITY 1'
164
169
170
+
http_host: '0.0.0.0'# optional
171
+
http_port: 9128# optional
172
+
165
173
```
166
174
167
175
#### Required settings
@@ -179,6 +187,7 @@ indexes: # optional
179
187
- `optimize_interval`- interval (seconds) between automatic `OPTIMIZE table FINAL` calls. Default 86400 (1 day). This is required to perform all merges guaranteed and avoid increasing of used storage and decreasing performance.
180
188
- `auto_restart_interval`- interval (seconds) between automatic db_replicator restart. Default 3600 (1 hour). This is done to reduce memory usage.
181
189
- `indexes`- you may want to add some indexes to accelerate performance, eg. ngram index for full-test search, etc. To apply indexes you need to start replication from scratch.
190
+
- `http_host`, `http_port` - http endpoint to control replication, use `/docs` for abailable commands
0 commit comments