版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
11大数据平台架构大数据平台架构22016-4-2222016-4-223Aboutme勇(Medcl)•Developer@Elastic‒JoinedElasticsinceSeptember,2015•medcl@elastic.co•BasedinChangsha,Hunan,ChinaWhat’sElastic?•Adistributedstartupcompany,since2012‒Withemployeesin27countries(andcounting),spreadacross18timezones,speakingerlanguages•WeareworkingonOpenSourceprojects!‒(Luckilysomeofthemarepopular,eg:elasticsearch)•OfferingsupportSubscription,X-pack,CloudandTrainings•Finduson:/elasticandhttps://www.elastic.co45ButELKisout!Beats&PacketbeatELKB?BELK?LKBE?BKEL?678ReleaseBonanza99It’stimetounite!9The“ElasticStack”,staytogetherfromv5.0ElasticStackGithub:EnablePowerfulSearchForBothEnd-UsersAndDevelopershttps://www.elastic.co/use-cases/githubNASA:UnlockingInterplanetaryDatasetswithReal-TimeSearchPic:/msl/multimedia/images/?ImageID=7693https://www.elastic.co/elasticon/2015/sf/unlocking-interplanetary-datasets-with-real-time-search13Datadog:analysismetricsandtime-seriesdataThe“ElasticStack”77•Collectsdiversesources•Collectsdiversesources–Logs+manyothers–Over200plugins•Connectswithlivestreamsdata–Wire/Transactiondata–Full-PacketNetworkCapture/elastic/logstashLogstash:CollectfromdiverseinputstaesensorsThe“ElasticStack”•BeatsarelightweightshippersthatcollectandshipallkindsofoperationaldatatoElasticsearch‒Smallapplication‒Installasagentonyourservers‒WritteninGolang‒Noruntimedependencies‒Singlepurpose/elastic/beatsExamplesofoperationaldata20Packetbeat:Real-timeapplicationmonitoringSniffsthetrafficbetweenyourservers,parsestheapplication-levelprotocolsonthefly.Built-inprotocols:•HTTP•MySQLLet’sgorealtime!•PostgreSQL•Redis•Thrift-RPC•MongoDB•DNS•Memcache•ICMP•AMQP21•…winlogbeat!22ForwardsWindowsEventlogstoElasticsearch23FilebeatAmorelightweightlogshipper•GenericfilteringFlexiblyreducetheamountofdatasentofthewireandstoredTopbeatperiodicallytoElasticsearch.AlsoworksonWindows.SystemwidesystemloadtotalCPUusage…processstatenamecommandline…Diskusageavailabledisksused,freespace…24That’sMore!Metricbeat:ConnectingNumb3rs•Listenstotheinternal“beat”ofsystemsviaAPIs./elastic/beat-generator/2526The“ElasticStack”What’sKibana?icsonplatformithElasticsearch./elastic/kibana/elastic/generator-kibana-plugin27Search&Exploration28Visualization&Dashboard2930The“ElasticStack”Elasticsearchisanopensource,distributed,scalable,highlyavailable,document-oriented,RESTful,fulltextsearchenginewithreal-timesearchandanalyticscapabilitiesThomsonReuters:“107clusters~1747nodes”@Elastic{ON}16lasticthomsonreutersresearchjournalismfinanceandelasticNetflix:”~150clusterstotaling~3,500nodeshosting~1.3PBofdata”/2016/02/evolution-of-netflix-data-pipeline.html?m=131/elastic/elasticsearch•Real-timeanalytics•Timeseriesdataanalytics•Logginganalytics•Securityanalytics•Frauddetection•Predictionmodeling•Recommendations•…332慢慢着,Elasticsearch不是搜索引擎么?3333YouYouknowforsearch,andanalytics!v1.0.0:Aggregationv2.0.0:PipelineAggregation33Aggregation任何数据能被查询到的数据就能被分析接近实时按需实时计算,~1s刷新间隔可嵌套组合不像facets只有一级343535AggregationBuckets:min-min-avg-maxStatsCardinalityHistogramGeohashgrids……SELECTCOUNT(*),AVG(score)<---MetricsFROM`table`GROUPBYprovince,city<---Buckets353636Aggregation==3万英尺高空俯视==PatternsFindsomebeauty(insights)!363737 Orlikethis!373838“aq_level”:“严重污染”,“aq_rank”:68,“aqi”:391,“co”:115.5,“no2”:1.888,“o3”:62.2,“pm2_5”:415.7,“range”:“74~500”,“so2”:523.5,38数据来源:3939StructureofanAggregation39空气质量统计(北京全年)POSTdemo/_search?size=0{"aggs":{"aq_stats":{"terms":{"field":"aq_level",}}}}404141平均空气质量统计(按城市)(nested){{"aggs":{"city_stats":{"terms":{"field":"city",},"aggs":{"avg_pm25":{"avg":{"field":"pm2_5"}30天空气质量趋势分析(Pipeline){"aggs":{"qa_date_histo":{“date_histogram”:{"field":"date“,"interval":"day“},"the_avg":{"field":"pm2_5“"the_movavg":{"moving_avg":{"buckets_path":"the_avg","window":304242Aggregation工作原理•LuceneCollector•Optimizeddatastructure–Compressedcolumnardatastore(previousFieldData,nowDocValues)persegment•Singlepassonyourdata,alonewiththequery4344ShardShardAggregation工作原理ShardShardCCoordinatorShardShard45ShardShardAggregation工作原理ShardShardCCoordinatorShardShard46ShardShardAggregation工作原理ShardShardCCoordinatorShardShard47ShardShardAggregation工作原理ShardShardCCoordinatorShardShard48SegmentSeSegmentSegmentAggregation工作原理Aggregation:s1234AAggregationCollectorTopHitsCollectorSSegmentLuceneIndex/AnESShardSearch:InvertIndexrm2,4,6AggregationAggregation工作原理POSTdemo/_search?size=0{"aggs":{"city_stats":{"terms":{"field":"city","size":10},"aggs":{"avg_pm25":{"avg":{"field":"pm2_5"}},"max_pm25":{"max":{"field":"pm2_5"}}}}}}49avg(pm2_5)terms(city)max (pm2_5)AggregationAggregation工作原理POSTdemo/_search?size=0{"aggs":{"city_stats":{"terms":{"field":"city","size":10},"aggs":{"avg_pm25":{"avg":{"field":"pm2_5"}},"max_pm25":{"max":{"field":"pm2_5"}}}}}}50avg(pm2_5)terms(city)max (pm2_5)AggregationAggregation工作原理POSTdemo/_search?size=0{"aggs":{"city_stats":{"terms":{"field":"city","size":10},"aggs":{"avg_pm25":{"avg":{"field":"pm2_5"}},"max_pm25":{"max":{"field":"pm2_5"}}}}}}51avg(pm2_5)terms(city)max (pm2_5)AggregationAggregation工作原理POSTdemo/_search?size=0{"aggs":{"city_stats":{"terms":{"field":"city","size":10},"aggs":{"avg_pm25":{"avg":{"field":"pm2_5"}},"max_pm25":{"max":{"field":"pm2_5"}}}}}}52avg(pm2_5)terms(city)max (pm2_5)What’smore?‒唯一值:Cardinality‒Hyperloglog++‒百分位:Percentilememory‒Terms‒Sampler‒Maxdocspershard‒SignificantTermsAggregationrid535545555555657585960616263The“ElasticStack”64Community•源码&Issue:/elastic/•英文社区:http://discuss.elastic.co•中文社区:•下载:https://www.elastic.co/downloads•博客:https://www.elastic.co/blog•线下活动:/•IRC:#elasticsearch,#logstash,#kibana,#beats65656666Thanks!6667676768POSTPOSTdemo/pm2_5/1{“city”:“北京”,“date”:“2016-02-08”,“aq_level”:“严重污染”,“aq_rank”:68,“aqi”:391,“co”:115.5,“no2”:1.888,“o3”:62.2,“pm2_5”:415.7,“range”:“74~500”,“so2”:523.5,“location”:{“lat”:39.92,“lon”:116.46}}ES基本操作索引(插入数据){{"_index":"demo","_type":"pm2_5","_id":"1
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 世界音像遗产日思维导图课件
- 艾滋病日常接触不传染课件
- 草原牧民人畜共患病体检筛查科普课件
- 侵袭性脑膜炎球菌病防控科普课件
- 高原环境下肺部感染风险防控课件
- 2026年高考新课标二卷理综生物题库(含答案)
- 2026年安徽省亳州市公安招聘辅警考试试题解析及答案
- 洪江高三历史答题规范提升试卷
- 2025年福建省(专升本)理科真题及答案
- 2025年度新媒体工作总结暨工作计划
- 第八版内科冠心病课件讲课教案
- 2026年第三季度典型事故案例警示教育
- 第一次月考试卷(1~2单元)(含答案)-2026-2027学年人教版数学三年级上册
- T/CAPA 16-2025医疗美容从业人员执业规范
- 《人工智能技术与应用》课件 项目9 人工智能训练
- 大体积混凝土浇筑施工应急预案
- 四上《习作:我的心儿怦怦跳》课件
- 2026年秋季开学教师防欺凌治理培训课件
- 安全风险辨识评估作业指导书
- 2026年新编军事理论考试题及答案
- 综合与实践 周长与面积的变化 课件(共21张) 苏教版数学四年级上册
评论
0/150
提交评论