Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc....

12
Copyright © 2016 Splunk Inc. Dhruva Kumar Bhagi Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster

Transcript of Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc....

Page 1: Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster. Disclaimer 2 During the course of this

Copyright©2016SplunkInc.

DhruvaKumarBhagiSr.SoftwareengineerSplunkInc.

Replicationofsummarydatainindexercluster

Page 2: Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster. Disclaimer 2 During the course of this

Disclaimer

2

Duringthecourseofthispresentation,wemaymakeforwardlookingstatementsregardingfutureeventsortheexpectedperformanceofthecompany.Wecautionyouthatsuchstatementsreflectourcurrentexpectationsandestimatesbasedonfactorscurrentlyknowntousandthatactualeventsorresultscoulddiffermaterially.Forimportantfactorsthatmaycauseactualresultstodifferfromthose

containedinourforward-lookingstatements,pleasereviewourfilingswiththeSEC.Theforward-lookingstatementsmadeinthethispresentationarebeingmadeasofthetimeanddateofitslivepresentation.Ifreviewedafteritslivepresentation,thispresentationmaynotcontaincurrentoraccurateinformation.Wedonotassumeanyobligationtoupdateanyforwardlookingstatementswemaymake.Inaddition,anyinformationaboutourroadmapoutlinesourgeneralproductdirectionandissubjecttochangeatanytimewithoutnotice.Itisforinformationalpurposesonlyandshallnot,beincorporatedintoanycontractorothercommitment.Splunkundertakesnoobligationeithertodevelopthefeaturesor

functionalitydescribedortoincludeanysuchfeatureorfunctionalityinafuturerelease.

Page 3: Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster. Disclaimer 2 During the course of this

Indexerclustertopology

3

MasterSearchhead

FORWARDERS

Indexer Indexer IndexerForReplication

Forgenerationinfo

ForSearch

Forwardingdatatoindexers

Master-slavecommunication

Forreplication

Searchhead-idx

Page 4: Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster. Disclaimer 2 During the course of this

Summaries

4

Summaries arehigherlevelrepresentationofthesearchresultsResideonindexertohelpacceleratetheexecutionoflongrunningsearchesoriginatingfromsearchheadsApplicableforstatisticalsearcheslike‘index=main|statscount’

Page 5: Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster. Disclaimer 2 During the course of this

Summaries

5

Twotypesofsummaries:• Reportaccelerationsummaries– Generatedbyacceleratedreports/searches• Datamodelsummaries– Generatedbyaccelerateddatamodelpivotsearches

ResideunderINDEX/{datamodel_summary|summary}/BID/SH_ID/summary_name/…Note:summariesaredifferentfromsummaryindex

Page 6: Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster. Disclaimer 2 During the course of this

Problem

6

SummarieswerepreviouslyneverreplicatedIfanindexerwithasummarygoesdown,bucketprimariesmovetoanothersearchablecopy,andsearcheswillnothaveaccesstothesummaries(untiltheygetregenerated),therebysearchesrunslow.Regeneratingsummariescantakelotoftime

Page 7: Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster. Disclaimer 2 During the course of this

Replicatingsummaries

7

Fromversion6.4,SplunkcanreplicateDA&RMsummariesinindexerclusterenvironmentPeersmaintainthelistoftheirsummaries(justlikebuckets)andreportsthemtoCMduringregistration(or)onanystatechangeIfanypeerismissingasummaryforabucket,masterschedulesasummaryreplicationwiththispeerasareplicationtargetOnlyreplicatesummariesforwarm/coldbuckets(nothot)services/cluster/master/buckets/BUKCETlistssummariesofeachbucket

Page 8: Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster. Disclaimer 2 During the course of this

Summariesforhotbuckets

8

Forhotbuckets,summarysearchesfromsearchheadshitallthesearchablecopies(insteadofjustprimariesfornormalsearches)therebylettingindexersbuildthesummariesindividuallyforhotbuckets.Noneedforsummaryregenerationevenonindividualnodefailures.Runningsummarygeneratingsearchesonallsearchablecopiesofahotbucketintroducesmoreresourceusage(longersearchprocess,extramemoryusage)!

Page 9: Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster. Disclaimer 2 During the course of this

VolumeRetention

9

Summariescanbesetupinavolumetomanagespaceusage

Ifindexerexceedsthevolumespace(maxVolumeDataSizeMB),splunkstartstrimmingsummaries– Atrimmedsummaryleavestombstoneindicatingthetrimmedstate– Tombstoneavoidsregeneratingsummariesinthesubsequentsearchruns– Oncewetrimasummary,wepropagatethisinfototheCM,andtheCMwill

issueatrimtoallothercopiesofthesummary.

Page 10: Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster. Disclaimer 2 During the course of this

Configuration

10

Toturnonsummaryreplication,makesummary_replication=trueunderclusteringstanzaonclustermaster.Bydefaultsummaryreplicationisturnedoff.max_peer_sum_rep_load (defaultsto5)configureshowmanymaximumsummaryreplicationsperpeerConfigchangesarereloadable(i.e.doesnotrequireasplunkrestart)

Page 11: Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster. Disclaimer 2 During the course of this

THANKYOU

Page 12: Dhruva Kumar Bhagi Sr. Software engineer · 2017-10-08 · Sr. Software engineer Splunk Inc. Replication of summary data in indexer cluster. Disclaimer 2 During the course of this

Copyright©2016SplunkInc.

````

Wednesday,Sep283:00PM- 3:15PM