100 likes | 219 Views
Site Status Board with Elastic search Ivan Dzhunov. What we want to do and how we do it. Compare Oracle and Elastic search for storing and retrieving SSB metric data We need 2 dev SSB instances running on exactly the same data
E N D
Site Status Board with Elastic search Ivan Dzhunov
What we want to do and how we do it • Compare Oracle and Elastic search for storing and retrieving SSB metric data • We need 2 dev SSB instances running on exactly the same data • Mechanism that synchronizes metric definitions and metric data on both instances Thanks Jacobo! • On the first (ES) instance • Use Elastic search for metric store • Use Oracle for everything else • topology info, metric/views definitions, admin rights, notifications, etc. • On the second (Oracle) instance • Use Oracle for everything – current production SSB Ivan Dzhunov
Details for SSB ES implementation • New ES dataDAO class • responsible for writing and reading metric data to and from ES • using pyes library and Elasticsearch REST API • Configure (per SSB instance) which dataDAO to be used when writing and reading metric data Ivan Dzhunov
What we already have in ES SSB • Last 1 month of SSB preproduction data (and growing) • Import of data • No overlaps • Sometimes tiny white gaps in historical data, due to not available ES server while making the inserts • Retrieve of data • Actions for metric history • default status and value plots • table with statistics • ranking plot • Action for expanded table • Action for index page • Actions for site history • default status and value plots • table with statistics Ivan Dzhunov
Data retrieval speed comparison 1 Index page action - load times in seconds Ivan Dzhunov
Data retrieval speed comparison 2 Expanded table action - load times in seconds Ivan Dzhunov
Data retrieval speed comparison 3 Metric history action - load times in seconds Ivan Dzhunov
Data retrieval speed comparison 4 Site history action - load times in seconds Ivan Dzhunov
Summary of speed comparison • SSB current overview – index page and expanded table • Oracle is faster ~ by factor of 2 • still ES load times are very acceptable • Milliseconds for index page • Up to 1 second for expanded table • SSB historical data per metric or site • ES is much faster • Oracle queries may take minutes Ivan Dzhunov
Still to be done for full ES SSB implementation • Fix the problem with stability of the cluster (sometimes the cluster is not available on inserts) • Also retry mechanism ? • Metric history : Number of sites plot - 1.5 day • Metric data modifications - 1 week • Alarms to sites on status changes - 1.5 day • Other areas where there is change of metric data in unusual way • Topology Maintenances collector – 1 day • Under Investigation functionality – 1 day • … Ivan Dzhunov