由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - About the latency of reading from mysql binlog (转载)
相关主题
非常常见的面试题:数据太多,用MySQL查询太慢该怎么办?【拒信】被Coursera拒了
攒人品,发个2sigma面经组里人手紧张,要招Rails
two sigma电面面经问两道onsite题目
如何根据这些参数进行系统设计?G onsite面经兼求内推
有木有人最近做 two sigma 的 online Test谁能科普Time Series Daemon (TSD)系统设计
MySQL的日期是怎么处理夏时制的?问一个replicate的问题
F家这个烂大街的system题哪位大侠仔细讲讲[合集] 那个Google random generate 1-7的题怎么做啊?
TinyUrl的design需要NON-SQL 还是SQL终于可以上班了
相关话题的讨论汇总
话题: mysql话题: binlog话题: about话题: latency话题: binlogs
进入JobHunting版参与讨论
1 (共1页)
x***y
发帖数: 633
1
【 以下文字转载自 Database 讨论区 】
发信人: xnxky (change, change, change), 信区: Database
标 题: About the latency of reading from mysql binlog
发信站: BBS 未名空间站 (Wed Nov 18 14:05:32 2015, 美东)
Hi, friends, I have a very urgent problem about mysql binlog latency, and
any help is greatly appreciated!
Here is my scenario:
We use ec2 instance running https://github.com/shyiko/mysql-binlog-connector
-java to read binlogs from an aws rds mysql master (which is row based
replication and bandwidth and throughput are not an issue).The number of
binlogs is around 1k per second. The P99 network IO is about 50ms and the
P99 time between 2 IOs is about 90 ~ 100ms.
However, when we extract the timestamp in the binlog event and calculate the
difference between the current time and the timestamp, the P99 is about 4
seconds. We are hoping to make it only several hundred ms. Further
investigatiosn indicate that the difference between the timestamp and the
corresponding start time of network IO reading from mysql master is
responsible for most of the latency. And we are quite sure that we are
processing much faster than the pace of mysql generating binlogs, so each
time we read all the binlogs available there when it's stable.
So, the question is that is this latency caused by some bad settings in
mysql? Or by the mysql connector? Thanks a lot.
1 (共1页)
进入JobHunting版参与讨论
相关主题
终于可以上班了有木有人最近做 two sigma 的 online Test
讨论个idea题MySQL的日期是怎么处理夏时制的?
Microsoft's interview questionsF家这个烂大街的system题哪位大侠仔细讲讲
急, 请教个面试问题TinyUrl的design需要NON-SQL 还是SQL
非常常见的面试题:数据太多,用MySQL查询太慢该怎么办?【拒信】被Coursera拒了
攒人品,发个2sigma面经组里人手紧张,要招Rails
two sigma电面面经问两道onsite题目
如何根据这些参数进行系统设计?G onsite面经兼求内推
相关话题的讨论汇总
话题: mysql话题: binlog话题: about话题: latency话题: binlogs