当前位置:网站首页>maxwell concept
maxwell concept
2022-08-11 07:26:00 【Eating too much sugar will not gain weight】
maxwell concept
maxwell definition
maxwell is a real-time capture MYSQL software written in java. It reads the MYSQL binary log Binlog in real time and generates JSON format, which is used as a producer to send to Kafka, Redis and other applications.
The Principle of Maxwell
Disguise yourself as a MYSQL salve, and then copy data from the master as a salve.
Mysql master-slave replication process
The master main library change record is written to the binary log file.
salve sends the dump protocol from the library I/O thread to the mysql master, and copies the binary log events of the master master library to the relay log of the slave library.
salve has a sql thread that will read the relay log,The sql events in this log are executed sequentially to be consistent with the main library.
binary log classification
binary log has three formats: statement, row, mixed
statement
At the statement level, binlog records the statement of the write operation each time, which saves space, but may produce different results, such as update test set create_date=now(). If you use binlog to reply to the log, the execution time will also be different., the resulting data is different.
row
Row level, binlog records the changes of each row of records after each operation, advantages: maintain data consistency, because no matter what operation is performed, it only records the effect after execution.Disadvantage: takes up a lot of space
mixed
Mixed level, the upgraded version of statement, the default is statement, but when the function contains UUID(); when the table containing the AUTO_INCREMENT field is updated; when the INSERT DELAYED statement is executed; when using UDF; it will be processed in the way of ROW.Advantages: It saves space and also takes into account a certain consistency.Disadvantages: There are also individual cases that can cause inconsistencies.
binlog format chosen by maxwell
Maxwell needs to monitor and analyze, and it is more suitable to choose the row format, which has strong consistency.
maxwell and canal comparison
Language: All written in java
Data format: canal format is free, maxwell can only send json messages
Data collection mode: canal only supports incremental collection, maxwell supports full and incremental
Data landing: Canal needs to be customized, maxwell supports kafka and other platforms
ha: all support
边栏推荐
- HCIP MPLS/BGP Comprehensive Experiment
- 【推荐系统】:协同过滤和基于内容过滤概述
- HCIP OSPF dynamic routing protocol
- 拼多多API接口大全
- docker安装mysql5.7(仅供测试使用)
- 自定义MVC增删改查
- OA project meeting notice (query & whether attending & feedback for details)
- Eight-legged text jvm
- EasyPlayer针对H.265视频不自动播放设置下,loading状态无法消失的解决办法
- Taobao API interface reference
猜你喜欢

每日sql -查询至少有5名下属的经理和选举

Spatial Pyramid Pooling -Spatial Pyramid Pooling (including source code)

buu—Re(5)

Eight-legged text jvm

抖音API接口大全

技能在赛题解析:交换机防环路设置

Redis源码-String:Redis String命令、Redis String存储原理、Redis字符串三种编码类型、Redis String SDS源码解析、Redis String应用场景

每日sql--统计员工近三个月的总薪水(不包括最新一个月)

获取拼多多商品信息操作详情

核方法 Kernel method
随机推荐
每日sql-员工奖金过滤和回答率排序第一
HCIP OSPF/MGRE Comprehensive Experiment
Do not add the is prefix to the variables of the boolean type in the POJO class of the Alibaba specification
Taobao API common interface and acquisition method
HCIP BGP built adjacent experiment
基于FPGA的FIR滤波器的实现(4)— 串行结构FIR滤波器的FPGA代码实现
Douyin API interface
矩阵分析——Jordan标准形
每日sql-统计各个专业人数(包括专业人数为0的)
每日sql:求好友申请通过率
《Show and Tell: A Neural Image Caption Generator》论文解读
Daily sql - judgment + aggregation
unable to extend table xxx by 1024 in tablespace xxxx
mmdetection的安装和训练、测试didi数据集的步骤(含结果)
图的拉普拉斯矩阵
图文带你理解什么是Few-shot Learning
numpy和tensor增加或删除一个维度
Get Pinduoduo product information operation details
Unity游戏排行榜的制作与优化
HCIP OSPF dynamic routing protocol