THE NETWORK, THE KINGMAKER DISTRIBUTED TRACING AND ZIPKIN
ABOUT THE LAST PICKLE We help people deliver and improve Apache Cassandra based solutions BASED IN USA, NEW ZEALAND, AUSTRALIA, FRANCE, SWEDEN 50+ years combined Cassandra experience.
Distributed Tracing Zipkin 2 Zipkin & Cassandra
SCALING DATA & PEOPLE MicroServices, BASE, and lambda architectures
the missing piece for many is tracing and pro�ling dif�cult to reproduce problems ZIPKIN an implementation of Google's Dapper paper
ZIPKIN INSTALL git clone git@github.com:openzipkin/zipkin.git mvn install -DskipTests java -jar ./zipkin-server/target/zipkin-server-*exec.jar open http://localhost:9411/ ( or `docker run -d -p 9411:9411 openzipkin/zipkin` )
SEARCH TRACES
SEARCH TRACES
ANALYZE ONE TRACE
REALTIME IN BROWSER
PLATFORM CALL GRAPH
CLIENT | SERVER CS --> --> SR <-- SS CR <--
SIMPLE HTTP CALL [ Brave – https://github.com/openzipkin/brave ]
SIMPLE HTTP CALL
CONTINUING A TRACE… (IN-PROCESS)
HTTP CALL PASSING THROUGH HEADERS
CONTINUING THE TRACE… (X-PROCESS)
ONE WAY TRACING
CUSTOM TAGS
TRACING IN C*
TRACING IN C*
TRACING IN C*
ZIPKIN IN C* visualization detailed timings hierarchy and asynchronisity zero tracing overhead
Cassandra-3.11.0
DOWNLOAD CASSANDRA-ZIPKIN-TRACING git clone git@github.com:openzipkin/brave-cassandra.git mvn install cp cassandra/target/brave-instrumentation-cassandra-*-all.jar \ $CASSANDRA_HOME/lib/ then run, enabling zipkin tracing JVM_OPTS="-Dcassandra.custom_tracing_class=brave.cassandra.Tracing" cassandra
ZIPKIN ACROSS C*
ZIPKIN ACROSS C*
ZIPKIN INTO C*
ZIPKIN INTO C*
HTTP CALL PASSING THROUGH HEADERS
C* CALL USING CUSTOM PAYLOAD
C* CALL USING CUSTOM PAYLOAD
enable zipkin tracing and the custom payload handler bin/cassandra -Dcassandra.custom_tracing_class=..ZipkinTracing -Dcassandra.custom_query_handler_class=..CustomPayloadMirroringQueryHandler
ZIPKIN SELF TRACING
ANALYZE ONE TRACE
THANKS
Zipkin – github.com/openzipkin/zipkin Brave (zipkin java instrumentation) – openzipkin-brave Zipkin/Brave Cassandra library – brave-cassandra This presentation – github.com/thelastpickle/cassandra-zipkin-tracing
THE LAST PICKLES
Recommend
More recommend