Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cassandra Summit Tokyo 2017 Keynote

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

Cassandra Summit Tokyo 2017 Keynote

by Nate McCall at Cassandra Summit Tokyo 2017

CassandraCommunityJP

October 13, 2017

Transcript

93 slides
  1. PROJECTS WITH COMPANIES THAT PROVIDE DISTRIBUTIONS • Cloudera|Hortonworks|MapR: Hadoop •

    DataBricks: Spark • Confluent: Kafka • Data Artisans: Flink • IBM: *.* 9
  2. WHAT DOES THIS MEAN FOR OUR COMMUNITY? • Most committers

    and community participants are running clusters • Users on the mailing lists tend to have a lot of experience • No corporate message in project communication • No external pressures on developing features for marketing timelines • Events will be by the community for the community (like this one!) 13
  3. COMMUNITY STRENGTHS • Very active mail lists • Progressively better

    JIRA grooming • Documentation improvements • Fast turn around on serious bugs 15
  4. TICK TOC LEGACY: GOOD • Much larger emphasis on integration

    testing • Longer term support of existing releases (2.1.19 just released!) • Commitment to "green test board" before release
  5. TICK TOC LEGACY: BAD 24 git am -3 mypatch-3.0.patch git

    merge cassandra-3.0 -s ours git apply -3 mypatch-3.11.patch git commit -amend git merge cassandra-3.11 -s ours git apply -3 mypatch-trunk.patch git commit -amend git push origin cassandra-3.0 cassandra-3.3 trunk -atomic Committing to 3.0, 3.11, and trunk:
  6. TICK TOC LEGACY: BAD 25 git am -3 mypatch-3.0.patch git

    merge cassandra-3.0 -s ours git apply -3 mypatch-3.11.patch git commit -amend git merge cassandra-3.11 -s ours git apply -3 mypatch-trunk.patch git commit -amend git push origin cassandra-3.0 cassandra-3.3 trunk -atomic Committing to 3.0, 3.11, and trunk:
  7. TICK TOC LEGACY: BAD 26 git am -3 mypatch-3.0.patch git

    merge cassandra-3.0 -s ours git apply -3 mypatch-3.11.patch git commit -amend git merge cassandra-3.11 -s ours git apply -3 mypatch-trunk.patch git commit -amend git push origin cassandra-3.0 cassandra-3.3 trunk -atomic Committing to 3.0, 3.11, and trunk:
  8. VERSION BREAKDOWN • 2.2: low risk, works well • 3.0:

    "stable" release of tic/toc • 3.11: the new stable (as of 3.11.1) 29
  9. VERSION BREAKDOWN • 2.2: low risk, works well • 3.0:

    "stable" release of tic/toc • 3.11: the new stable (as of 3.11.1) 30
  10. BUT WHAT ABOUT MATERIALIZED VIEWS? • *JUST* fixed https://issues.apache.org/jira/browse/CASSANDRA-11500 •

    Partition deletion causes entire view partition to be held in memory (CASSANDRA-12783) • Can only filter on primary key columns (CASSANDRA-13826) 31
  11. REPAIR BUG FIXES AND IMPROVEMENTS • Over 20 bugs fixed!

    • New metrics provide table and keyspace level visibility: CASSANDRA-13531, CASSANDRA-13598 • More repair information on nodetool tablestats: CASSANDRA-13774 • Incremental repair works more consistently • Substantial repair logging improvements: CASSANDRA-13468 36
  12. REPAIR STREAMING PREVIEW 37 Total estimated streaming: 41384 ranges, 10

    sstables, 159.007MiB bytes sandwich_long.test_data - 41384 ranges, 10 sstables, 159.007MiB bytes /127.0.0.2 -> /127.0.0.1: 10346 ranges, 3 sstables, 62.888MiB bytes /127.0.0.1 -> /127.0.0.2: 10346 ranges, 2 sstables, 16.616MiB bytes /127.0.0.1 -> /127.0.0.3: 10346 ranges, 2 sstables, 16.616MiB bytes /127.0.0.3 -> /127.0.0.1: 10346 ranges, 3 sstables, 62.887MiB bytes nodetool repair --preview
  13. REPAIR STREAMING PREVIEW 38 Total estimated streaming: 41384 ranges, 10

    sstables, 159.007MiB bytes sandwich_long.test_data - 41384 ranges, 10 sstables, 159.007MiB bytes /127.0.0.2 -> /127.0.0.1: 10346 ranges, 3 sstables, 62.888MiB bytes /127.0.0.1 -> /127.0.0.2: 10346 ranges, 2 sstables, 16.616MiB bytes /127.0.0.1 -> /127.0.0.3: 10346 ranges, 2 sstables, 16.616MiB bytes /127.0.0.3 -> /127.0.0.1: 10346 ranges, 3 sstables, 62.887MiB bytes nodetool repair --preview who what
  14. PULL REPAIR 39 Total estimated streaming: 3550 ranges, 3 sstables,

    10.525MiB bytes sandwich_long.test_data - 3550 ranges, 3 sstables, 10.525MiB bytes /127.0.0.2 -> /127.0.0.1: 1775 ranges, 3 sstables, 10.525MiB bytes /127.0.0.1 -> /127.0.0.2: 1775 ranges, 0 sstables, 0.000KiB bytes nodetool repair --pull -hosts 127.0.0.1,127.0.0.2 -st -3074457345618258603 -et 0 --preview
  15. PULL REPAIR 40 Total estimated streaming: 3550 ranges, 3 sstables,

    10.525MiB bytes sandwich_long.test_data - 3550 ranges, 3 sstables, 10.525MiB bytes /127.0.0.2 -> /127.0.0.1: 1775 ranges, 3 sstables, 10.525MiB bytes /127.0.0.1 -> /127.0.0.2: 1775 ranges, 0 sstables, 0.000KiB bytes nodetool repair --pull -hosts 127.0.0.1,127.0.0.2 -st -3074457345618258603 -et 0 --preview
  16. PULL REPAIR 41 Total estimated streaming: 3550 ranges, 3 sstables,

    10.525MiB bytes sandwich_long.test_data - 3550 ranges, 3 sstables, 10.525MiB bytes /127.0.0.2 -> /127.0.0.1: 1775 ranges, 3 sstables, 10.525MiB bytes /127.0.0.1 -> /127.0.0.2: 1775 ranges, 0 sstables, 0.000KiB bytes nodetool repair --pull -hosts 127.0.0.1,127.0.0.2 -st -3074457345618258603 -et 0 --preview
  17. PULL REPAIR 42 Total estimated streaming: 3550 ranges, 3 sstables,

    10.525MiB bytes sandwich_long.test_data - 3550 ranges, 3 sstables, 10.525MiB bytes /127.0.0.2 -> /127.0.0.1: 1775 ranges, 3 sstables, 10.525MiB bytes /127.0.0.1 -> /127.0.0.2: 1775 ranges, 0 sstables, 0.000KiB bytes nodetool repair --pull -hosts 127.0.0.1,127.0.0.2 -st -3074457345618258603 -et 0 --preview
  18. PULL REPAIR 43 Total estimated streaming: 3550 ranges, 3 sstables,

    10.525MiB bytes sandwich_long.test_data - 3550 ranges, 3 sstables, 10.525MiB bytes /127.0.0.2 -> /127.0.0.1: 1775 ranges, 3 sstables, 10.525MiB bytes /127.0.0.1 -> /127.0.0.2: 1775 ranges, 0 sstables, 0.000KiB bytes nodetool repair --pull -hosts 127.0.0.1,127.0.0.2 -st -3074457345618258603 -et 0 --preview who what
  19. REPAIR STREAMING PREVIEW 44 Total estimated streaming: 41384 ranges, 10

    sstables, 159.007MiB bytes sandwich_long.test_data - 41384 ranges, 10 sstables, 159.007MiB bytes /127.0.0.2 -> /127.0.0.1: 10346 ranges, 3 sstables, 62.888MiB bytes /127.0.0.1 -> /127.0.0.2: 10346 ranges, 2 sstables, 16.616MiB bytes /127.0.0.1 -> /127.0.0.3: 10346 ranges, 2 sstables, 16.616MiB bytes /127.0.0.3 -> /127.0.0.1: 10346 ranges, 3 sstables, 62.887MiB bytes nodetool repair --preview who what
  20. TIMESTAMP FUNCTIONS 46 CREATE TABLE times ( pk int, time

    date, val int, PRIMARY KEY (pk, time));
  21. TIMESTAMP FUNCTIONS 47 CREATE TABLE times ( pk int, time

    date, val int, PRIMARY KEY (pk, time));
  22. TIMESTAMP FUNCTIONS 48 SELECT * FROM times WHERE pk =

    1; pk | time | val ----+------------+----- 1 | 2016-09-28 | 2 1 | 2016-09-30 | 2 SELECT * FROM times WHERE pk = 1 AND time < '2017-10-01' - 1y2d; pk | time | val ----+------------+----- 1 | 2016-09-28 | 2
  23. TIMESTAMP FUNCTIONS 49 SELECT * FROM times WHERE pk =

    1; pk | time | val ----+------------+----- 1 | 2016-09-28 | 2 1 | 2016-09-30 | 2 SELECT * FROM times WHERE pk = 1 AND time < '2017-10-01' - 1y2d; pk | time | val ----+------------+----- 1 | 2016-09-28 | 2
  24. TIMESTAMP FUNCTIONS 50 SELECT * FROM times WHERE pk =

    1; pk | time | val ----+------------+----- 1 | 2016-09-28 | 2 1 | 2016-09-30 | 2 SELECT * FROM times WHERE pk = 1 AND time < '2017-10-01' - 1y2d; pk | time | val ----+------------+----- 1 | 2016-09-28 | 2
  25. TIMESTAMP FUNCTIONS 51 SELECT * FROM times WHERE pk =

    1; pk | time | val ----+------------+----- 1 | 2016-09-28 | 2 1 | 2016-09-30 | 2 SELECT * FROM times WHERE pk = 1 AND time < '2017-10-01' - 1y2d; pk | time | val ----+------------+----- 1 | 2016-09-28 | 2
  26. ARITHMETIC OPERATORS 52 CREATE TABLE arithmetic ( key text, ts

    bigint, val text, PRIMARY KEY (key, ts));
  27. ARITHMETIC OPERATORS 53 CREATE TABLE arithmetic ( key text, ts

    bigint, val text, PRIMARY KEY (key, ts));
  28. ARITHMETIC OPERATORS 54 SELECT * from arithmetic WHERE key =

    'mykey'; key | ts | val -------+----+------------ mykey | 10 | some value
  29. ARITHMETIC OPERATORS 55 SELECT ts * 10 FROM arithmetic WHERE

    key = 'mykey'; ts * 10 --------- 100 SELECT ts % 10 FROM arithmetic WHERE key = 'mykey'; ts % 10 --------- 0
  30. EASIER CLUSTER SECURITY 61 HA! A bin-packed message format with

    no source verification!* Ease of scalability comes with a price * <currently reading o.a.c.net.MessageIn#read>
  31. EASIER CLUSTER SECURITY 62 nmap -Pn -p7000 \ -oG logs/cass.gnmap

    54.88.0.0/14 HA! A bin-packed message format with no source verification!*
  32. IMPORTANT BECAUSE... 63 Fun fact 1: It takes a single

    Message to insert an admin account into the system table
  33. node to node encryption and SSL client certificate authentication to

    cluster traffic THE EASY FIX: 66 http://thelastpickle.com/blog/2015/09/30/hardening-cassandra-step-by-step-part-1-server-to-server.html
  34. node to node encryption and SSL client certificate authentication to

    cluster traffic THE EASY FIX: 67 Bonus: can be done with NO downtime!!! http://thelastpickle.com/blog/2015/09/30/hardening-cassandra-step-by-step-part-1-server-to-server.html
  35. node to node encryption and SSL client certificate authentication to

    cluster traffic THE EASY FIX: 68 Bonus: can be done with NO downtime!!! http://thelastpickle.com/blog/2015/09/30/hardening-cassandra-step-by-step-part-1-server-to-server.html CASSANDRA-10404
  36. 73 cqlsh> select * from virtual.tables5 where keyspace_name = 'tlp_ks'

    and metric > 'memtable' and metric < 'memtableZ' ALLOW FILTERING; keyspace_name | table_name | metric | value ---------------+--------------------------+----------------------+---------------- tlp_ks | monitoring_example | memtableOnHeapSize | {"value":95201} tlp_ks | monitoring_example | memtableOffHeapSize | {"value":44811} tlp_ks | monitoring_example | memtableLiveDataSize | {"value":42128} tlp_ks | monitoring_example | memtableColumnsCount | {"value":248} tlp_ks | monitoring_example | memtableSwitchCount | {"count":4} ...
  37. 74 cqlsh> select * from virtual.tables5 where keyspace_name = 'tlp_ks'

    and metric > 'memtable' and metric < 'memtableZ' ALLOW FILTERING; keyspace_name | table_name | metric | value ---------------+--------------------------+----------------------+---------------- tlp_ks | monitoring_example | memtableOnHeapSize | {"value":95201} tlp_ks | monitoring_example | memtableOffHeapSize | {"value":44811} tlp_ks | monitoring_example | memtableLiveDataSize | {"value":42128} tlp_ks | monitoring_example | memtableColumnsCount | {"value":248} tlp_ks | monitoring_example | memtableSwitchCount | {"count":4} ...
  38. 88

  39. PLUGGABLE STORAGE AND ROCKSDB - FOLLOW THESE ISSUES: • CASSANDRA-13474

    • CASSANDRA-13475 • CASSANDRA-13476 • CASSANDRA-13553 89
  40. FIXING BUGS! (DISCOVERED BY REAL WORKLOADS) 91 Our developers are

    running clusters. Sometimes *very* big clusters.

More Decks by CassandraCommunityJP

Other Decks in Technology