Giter Site home page Giter Site logo

duzhanyuan / otter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alibaba/otter

0.0 1.0 0.0 11.8 MB

阿里巴巴分布式数据库同步系统(解决中美异地机房)

License: Apache License 2.0

Dockerfile 0.05% Shell 0.71% Python 0.05% Batchfile 0.08% Java 90.65% CSS 0.71% JavaScript 7.55% HTML 0.04% PLSQL 0.17%

otter's Introduction

最新更新

  • otter已在阿里云推出商业化版本 数据传输服务DTS, 开通即用,免去部署维护的昂贵使用成本。DTS针对阿里云RDS、DRDS等产品进行了适配,解决了Binlog日志回收,主备切换、VPC网络切换等场景下的同步高可用问题。同时,针对RDS进行了针对性的性能优化。出于稳定性、性能及成本的考虑,强烈推荐阿里云用户使用DTS产品。DTS产品使用文档
  • DTS支持阿里云RDS&DRDS的Binlog日志实时订阅,现推出首月0折体验,限时限量,立即体验>>>

    环境搭建 & 打包

    环境搭建:
    1. 进入$otter_home目录
    2. 执行:mvn clean install
    3. 导入maven项目。如果eclipse下报"Missing artifact com.oracle:ojdbc14:jar:10.2.0.3.0",修改$otter_home/pom.xml中"${user.dir}/lib/ojdbc14-10.2.0.3.0.jar"为绝对路径,比如"d:/lib/ojdbc14-10.2.0.3.0.jar"
    打包:
    1. 进入$otter_home目录
    2. 执行:mvn clean install -Dmaven.test.skip -Denv=release
    3. 发布包位置:$otter_home/target

    项目背景

       阿里巴巴B2B公司,因为业务的特性,卖家主要集中在国内,买家主要集中在国外,所以衍生出了杭州和美国异地机房的需求,同时为了提升用户体验,整个机房的架构为双A,两边均可写,由此诞生了otter这样一个产品。

       otter第一版本可追溯到04~05年,此次外部开源的版本为第4版,开发时间从2011年7月份一直持续到现在,目前阿里巴巴B2B内部的本地/异地机房的同步需求基本全上了otte4。

    目前同步规模:
    1. 同步数据量6亿
    2. 文件同步1.5TB(2000w张图片)
    3. 涉及200+个数据库实例之间的同步
    4. 80+台机器的集群规模

    项目介绍

    名称:otter ['ɒtə(r)]

    译意: 水獭,数据搬运工

    语言: 纯java开发

    定位: 基于数据库增量日志解析,准实时同步到本机房或异地机房的mysql/oracle数据库. 一个分布式数据库同步系统

    工作原理

    原理描述:

    1. 基于Canal开源产品,获取数据库增量日志数据。 什么是Canal, 请点击

    2. 典型管理系统架构,manager(web管理)+node(工作节点)

        a. manager运行时推送同步配置到node节点

        b. node节点将同步状态反馈到manager上

    3. 基于zookeeper,解决分布式状态调度的,允许多node节点之间协同工作.

    什么是canal?

    otter之前开源的一个子项目,开源链接地址:http://github.com/alibaba/canal

    Introduction

    See the page for introduction: Introduction.

    QuickStart

    See the page for quick start: QuickStart.

    AdminGuide

    See the page for admin deploy guide : AdminGuide

    相关文档

    See the page for 文档: 相关PPT&PDF

    常见问题

    See the page for FAQ: FAQ

    版本相关:

    1. 建议版本:4.2.15 (otter开源版本从内部演变而来,所以初始版本直接从4.x开始)

    2. 下载发布包:download

    3. maven依赖 : 暂无

    相关开源

    1. 阿里巴巴mysql数据库binlog的增量订阅&消费组件:http://github.com/alibaba/canal
    2. 阿里巴巴去Oracle数据迁移同步工具(目标支持MySQL/DRDS):http://github.com/alibaba/yugong

    问题反馈

    注意:canal&otter QQ讨论群已经建立,群号:161559791 ,欢迎加入进行技术讨论。

    1. qq交流群: 161559791

    2. 邮件交流: [email protected]

    3. 新浪微博: agapple0002

    4. 报告issue:issues

    【招聘】阿里巴巴中间件团队招聘JAVA高级工程师
    岗位主要为技术型内容(非业务部门),阿里中间件整个体系对于未来想在技术上有所沉淀的同学还是非常有帮助的
    工作地点:杭州、北京均可. ps. 阿里待遇向来都是不错的,有意者可以QQ、微博私聊. 
    具体招聘内容:https://job.alibaba.com/zhaopin/position_detail.htm?positionId=32666
    

    otter's People

    Contributors

    agapple avatar wu-jianqiang avatar cloud-git avatar genghuiluo avatar 13293909983 avatar cai1987 avatar stefano-maggiolo avatar kingzone avatar liulangwa avatar elefaint avatar wingerx avatar martian101 avatar wmz7year avatar

    Watchers

    James Cloos avatar

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.