Coder Social home page Coder Social logo

sportscell / maxwell Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zendesk/maxwell

0.0 2.0 2.0 8.16 MB

Maxwell's daemon, a mysql-to-json kafka producer and we made Maxwell Active-Standby Mode.

Home Page: http://maxwells-daemon.io/

License: Other

Makefile 0.87% Shell 1.16% Ruby 3.78% ANTLR 5.62% Java 88.57%

maxwell's Introduction

Maxwell = Mysql + Kafka

This is Maxwell's daemon, an application that reads MySQL binlogs and writes row updates to Kafka as JSON. It's playing in the same space as mypipe and databus, but differentiates itself with these features:

  • Works with an unpatched mysql
  • Parses ALTER/CREATE/DROP table statements, which allows Maxwell to always have a correct view of the mysql schema
  • Stores its replication position and needed data within the mysql server itself
  • Requires no external dependencies (save Kafka, if used)
  • Eschews the complexity of Avro for plain old JSON.
  • Minimal setup

Maxwell is intended as a source for event-based readers, eg various ETL applications, search indexing, stat emitters.


  mysql> insert into `test`.`maxwell` set id = 1, daemon = 'Stanislaw Lem';
  maxwell: {
    "database": "test",
    "table": "maxwell",
    "type": "insert",
    "ts": 1449786310,
    "xid": 940752,
    "commit": true,
    "data": { "id":1, "daemon": "Stanislaw Lem" }
  }
  mysql> update test.maxwell set daemon = 'firebus!  firebus!' where id = 1;
  maxwell: {
    "database": "test",
    "table": "maxwell",
    "type": "update",
    "ts": 1449786341,
    "xid": 940786,
    "commit": true,
    "data": {"id":1, "daemon": "Firebus!  Firebus!"},
    "old":  {"daemon": "Stanislaw Lem"}
  }

###Maxwell HA Mode

Maxwell is supported HA Mode ( Active-Standby Mode ).

./bin/maxwell-active-standby \ 
    --replication_host=replication_database \
    --replication_user=user \
    --replication_password=password \
    --replication_port=3306 \
    --user=maxwell \
    --password=maxwell \
    --host=maxwell_schema_database \
    --producer=stdout \
    
    ## Opstions for Maxwell HA Mode.
    --zkAddress=localhost:2181 \
    --clusterName=Maxwell_HAMODE \
    --instanceName=node1 \
    --nodeHostName=localhost \
    --clusterPort=12000 \
    --startController=true 
<script> jQuery(document).ready(function () { jQuery("#maxwell-header").append( jQuery("

The Daemon, maybe

") ); jQuery("pre").addClass("home-code"); }); </script>

maxwell's People

Contributors

kristiankaufmann avatar linyaoli avatar osheroff avatar vanchi-zendesk avatar springloops avatar dadah89 avatar yooninchan avatar davidsheldon avatar lucasefe avatar wushujames avatar nmaquet avatar seancaffery avatar aquarapid avatar radek1st avatar smferguson avatar kunday avatar bwilliams42 avatar grex-uss avatar stevepeak avatar xmlking avatar

Watchers

James Cloos avatar  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.