Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 20d392a

Browse files
recover sample .yaml
1 parent 4751642 commit 20d392a

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

‎es_sync/sample.yaml‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# The mysql database which you want to sync
2+
mysql:
3+
host: 127.0.0.1
4+
port: 3306
5+
user: foo
6+
password: bar
7+
db: mydb
8+
table: mytable
9+
server_id: 1 # this should be unique
10+
11+
elastic:
12+
host: 127.0.0.1
13+
port: 9200
14+
bulk_size: 200 # the update bulk size when mysqldump, default is 100 if not specified
15+
binlog_bulk_size: 10 # the update bulk size when syncing binlog, default is 1 if not specified
16+
index: article
17+
type: article
18+
19+
# path to your own xml file, if you want to initialize dump from xml file. run with argument --fromfile in command
20+
xml_file:
21+
filename: a.xml
22+
23+
# If you want to map your column, put the column name as the value, and es field name as the key,
24+
# Particularly , if you set _id as follows, it will use myid column as the index doc's id, or ES will generate an id as default
25+
mapping:
26+
_id: myid
27+
es_field_name: mysql_column_name
28+
29+
# The log file's path
30+
logging:
31+
file: mylog.log
32+
33+
# The record file's path, which record the latest synced binlog file and position
34+
binlog_sync:
35+
record_file: binlog.info
36+
37+
# If you want to email notification when error occurs, fill this
38+
email:
39+
from: # the sender's email, uses smtp protocol
40+
host: smtp.example.com
41+
username: sender@example.com
42+
password: senderpassword
43+
to: # a list of notification recipients
44+
- first_recipient@example.com
45+
- second_recipient@example.com

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /