fluent-plugin-mysql-replicator 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -57,6 +57,10 @@ $ tail -f /var/log/td-agent/td-agent.log
|
|
57
57
|
2013-11-25 18:22:45 +0900 replicator.delete: {"id":"1"}
|
58
58
|
`````
|
59
59
|
|
60
|
+
## Performance
|
61
|
+
|
62
|
+
On syncing 300 million rows table, it will consume around 800MB of memory with ruby 1.9.3 environment.
|
63
|
+
|
60
64
|
## TODO
|
61
65
|
|
62
66
|
Pull requests are very welcome!!
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = "fluent-plugin-mysql-replicator"
|
4
|
-
s.version = "0.0.
|
4
|
+
s.version = "0.0.2"
|
5
5
|
s.authors = ["Kentaro Yoshida"]
|
6
6
|
s.email = ["y.ken.studio@gmail.com"]
|
7
7
|
s.homepage = "https://github.com/y-ken/fluent-plugin-mysql-replicator"
|
@@ -64,7 +64,7 @@ module Fluent
|
|
64
64
|
hash_delete_by_list(table_hash, deleted_ids)
|
65
65
|
deleted_ids.each {|id| emit_record(:delete, {@primary_key => id})}
|
66
66
|
end
|
67
|
-
sleep @interval
|
67
|
+
sleep @interval
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
@@ -97,7 +97,9 @@ module Fluent
|
|
97
97
|
:password => @password,
|
98
98
|
:database => @database,
|
99
99
|
:encoding => @encoding,
|
100
|
-
:reconnect => true
|
100
|
+
:reconnect => true,
|
101
|
+
:stream => true,
|
102
|
+
:cache_rows => false
|
101
103
|
})
|
102
104
|
rescue Exception => e
|
103
105
|
$log.warn "mysql_replicator: #{e}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-mysql-replicator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|