ScyllaDB NoSQL数据库的应用加速实践_第1页
ScyllaDB NoSQL数据库的应用加速实践_第2页
ScyllaDB NoSQL数据库的应用加速实践_第3页
ScyllaDB NoSQL数据库的应用加速实践_第4页
ScyllaDB NoSQL数据库的应用加速实践_第5页
已阅读5页,还剩31页未读, 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、SCYLLA:NoSQL at Ludicrous SpeedScyllaDB NoSQL数据库的应用加速实践Today we will cover:+ Intro: Who we are, what we do, who uses it+ Why we started ScyllaDB+ Why should you care+ How we made design decisions to achieve no-compromise performance and availability+Founded by KVM hypervisor creators+Q2 2014 - Pivot

2、 to the database world+Q3 2015 - Decloak during Cassandra Summit 2015, Beta+Q1 2016 - General Availability+Q3 2016 - First Scylla Summit: 100+ Attendees+Q1 2017 - Completed B round+$25MM in funding+HQs: Palo Alto, CA; Herzelia, Israel+42+ employees, hiring!IntroductionWhy ?#$%$%?Scylla benchmark by

3、Samsungop/sWhat we do: Scylla, towards the best NoSQL+ 1 million OPS per node+ C* gets full volumeRead MicroserviceWrite ProcessScylla/Cassandra side by side deploymentWrites are written in parallel to C* and ScyllaReads are done in parallel:Memcached + Cassandra 2) Scylla (no cache at all)Read Micr

4、oserviceWrite ProcessScylla (w/o cache) vs Cassandra + MemcachedScyllaCassandraDiff%Requests/ Minute12,000,000500,000(memcache handles 11,500,000)24XAVGLatency4 ms8 ms2XMax Latency8 ms35 ms3.5XHardware9 machines30+9machines4.3XCassandras latencyScyllas latencyWhat does it mean for a non Cassandra us

5、er?+Throughput, latency and scale benefits+Wide range of big data integration: Kariosdb, Spark, JanusGraph, Presto, Kafka, Elastic+Best HA/DR in the industry.+Stop using caches in front of the database+Consolidate HBase, Redis, MySQL, Mongo and othersAssorted QuotesToday we will cover:+ Intro: Who w

6、e are, what we do, who uses it+ Why we started ScyllaDB+ Why should you care+ How we made design decisions to achieve no-compromise performance and availabilityDesign decisions: #1 The trivialsSSTable file formatConfiguration file formatCQL languageCQL native protocolJMX management protocolManagemen

7、tDesign decisions: #2 CompatibilityDouble cluster - Migration w/o downtimeAppCassandraScyllaCQLproxyDesign decisions: #3 All things asyncDesign decisions: #4 Shard per coreThreadsShardsSCYLLA DB: Network ComparisonKernelCassandraTCP/IPSchedulerqueuequeuequeuequeuequeuethreadsKernelTraditional stackS

8、cylla sharded stackMemoryApplicationCP/ITask SchedulerqueuequeuequeuequeuequeueNIQuDPDKKernel(isnt nvolved)UserspaceApplicationCP/ITask Schedulerqueuequeuequeuequeuequeuesmp queueNICQu eueeDPDKKernel(isnt nvolved)UserspaceP/IPApplicationTCT T P PTask Schedulerqueuequeuequeuequeuequeuesmp queuesNI CQ

9、euueiueDPDKKernel(isntUserspaceCore DatabaseTask Schedulerqueuequeuequeuequeuequeuemp queuesmp queueNICCQueiue involved)UserspaceScylla has its own task schedulerCPUCPUPromiseTask TaskTaskPromiseTask TaskTaskPromiseTask TaskTaskPromiseTask TaskTaskCPUPromiseTaskPromisePromiseTaskPromiseTaskPromiseTa

10、skCPUPromise PromisePromiseTaskPromisePromiseTaskPromise PromisePromiseTaskPromise PromisePromiseTaskCPUPromise is a pointer to eventually computed valueTask is a pointer to a lambda functionScheduleSrcheduleSrcheduleSrcheduleSrchedulerCPU CPU CPU CPU CPUThreadStackThreadThreadStackStackThreadStackT

11、hreadStackThreadStackThreadThreadStackStackThread is a function pointerStack is a byte array from 64k to megabytesSCYLLA IS DIFFERENTDMALog structured merge treeDBaware cacheUserspace I/O schedulerNUMA friendlyLog structured allocatorZero copyThread per coreLock-freeTask schedulerReactor programingC

12、+14Multi queuePoll modeUserspace TCP/IPScylla vs C* latency by KenshooDesign Decision: #5 Unified cacheCassandraScyllaKey cacheRow cacheOn-heap / Off-heapLinux page cacheSSTablesUnified cacheSSTablesComplex TuningCassandra Streaming configurationDesign decisions: #6 I/O schedulerScylla I/O Schedulin

13、gQueryCommitlogCompactionQueueQueueQueueUserspace I/O SchedulerDiskMax useful disk concurrencyI/O queued in FS/deviceNo queuesI/O scheduler result by KenshooMemtableSeastar SchedulerCompactionQueryRepairCommitlogSSDCompaction Backlog MonitorMemory MonitorAdjust priorityAdjust priorityWANCPUDesign Decision: #7 Workload conditioningWorkload Conditioning in practiceDisk cant keep up:workload conditioning will figure out the right request rateUpcoming releases+Enterprise release, based on 1.6+1.7 - May 2017CountersNew intra-node sharding algorithmSStableloader from 2.2/3.xDebian+2.0 S

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论