mantis in action
play

Mantis in Action Neeraj Joshi and Justin Becker 6/12/2015 Managing - PowerPoint PPT Presentation

Mantis in Action Neeraj Joshi and Justin Becker 6/12/2015 Managing a complex operational environment is hard Developing an understanding of what is going on Knowing what works Developing an understanding of what is going on Identify what


  1. Mantis in Action Neeraj Joshi and Justin Becker 6/12/2015

  2. Managing a complex operational environment is hard

  3. Developing an understanding of what is going on Knowing what works

  4. Developing an understanding of what is going on Identify what doesn’t work

  5. Developing an understanding of what is going on Determining impact when doesn’t work

  6. Developing a deep understanding is hard, due to complexity • Hundreds of software services • Processing billions of requests • For millions of users • Operating in multiple data centers • Across the globe

  7. Help us (operators) make sense out of complexity, need tools specifically, we need… Insight tools …to help comprehend what is going on in our operational environments

  8. Make the case a relationship exists, between complexity and comprehension

  9. So, in order to manage complex environments, need to rethink insights, shift the curve

  10. Identified three insight ‘patterns’ to help shift the curve • Long tail analysis • Real time tracking and trending • Ad hoc investigation

  11. Grouped three patterns into a new effort

  12. Scalable Insights Initiative

  13. Goal is to help us manage (comprehend) our environments given an increase in complexity

  14. Mention specific insights tools to help shift curve • Realtime Data Explorer • Realtime Search • Realtime Application Monitoring

  15. Mention other generic insights jobs to help shift curve • Short term historical anomaly detection • Threshold-based anomaly detection • Realtime metrics generation

  16. Overview of scalable insights in action • 65-75 total jobs running in 3 regions • Global access to data • Processing 4.7 million events per second at peak • 20 specific data sources and generic adapters • Ability to startup jobs in ~5 seconds

  17. Demo

  18. Mantis, a reactive stream processing system

  19. Some Basics Concepts

  20. Stream Sequence of Events time 1 2 3 4

  21. Higher Order Functions Transformations applied to a Stream to create a new stream time 16 1 4 9 map (x=>sqrt(x)) time 1 2 3 4

  22. Mantis Job A sequence of functions applied to a stream Stage 1 Stage 2 Stage n S S O I U N Result OUT Stream IN window reduce merge map R K C E

  23. Mantis Job Stage 1 Stage 2 Stage n S S O I U N Result OUT Stream IN R K C E

  24. Named Jobs Job Name Job Version Text aa

  25. Are Parameterized Parameter Parameter Parameter

  26. Have SLAs Min/Max Instances of the job Min/Max runtime Perpetual or Transient

  27. Can be chained TopN Job Device Logs Source Job Anomaly Alert Detector Server Service Job Logs Source Job Metrics Aggregator Job

  28. That is fine but...

  29. How does Mantis meet the Scalable Insights challenge?

  30. Key Requirements • Cost (Utilization) Sensitive • Optimize for low latency • High Throughput • Resilient

  31. Minimizing Costs

  32. Elastic Clusters

  33. Elastic Jobs

  34. Job Autoscaling Scaling Config CPU Strategy Network Strategy

  35. Filtering at Source Data Producers Source Job Consumer Job

  36. Low latency - High Throughput

  37. To block or not to block?

  38. RxNetty (non-blocking) vs Tomcat (blocking) by Brendan Gregg @brendangregg https://docs.google.com/presentation/d/18i-d72m7tD4wKlzm-1PCR8g62l66_9Btbg5-fuFRqf0/edit#slide=id.g761289dab_0_77

  39. CPU consumption • RxNetty consumes less CPU / request • Reduced thread migration • Lower object allocation rate CPU consumed reduces as load increases

  40. Lower latency • RxNetty has lower latency under high load • fewer lock contentions • fewer thread migrations Latency knee for Netty Latency knee for ~700 Tomcat ~ 400

  41. Async Processing Non-blocking I/O Async Processing

  42. Designed for Resilience http://signsofpolitics.blogspot.com/2009/03/around-and-about-resilience.html

  43. Server Resilience • Servers crashes inevitable • Server health constantly monitored with heartbeats • Crashed servers replaced • Lost jobs relaunched

  44. Network Resilience • Long lived connections can fail • Connection topology is constantly monitored and corrected

  45. Backpressure

  46. Cold Source Amazon SQS

  47. Hot Source

  48. Reactive push-pull (Cold Source) 1024 1024 1024 1024 f1 f2 f3 f4 100 100 100 100 Cold Source

  49. Push mode Max Max Max Max f1 f2 f3 f4 100 100 100 100 Cold Source

  50. Pull mode 1 1 1 1 f1 f2 f3 f4 1 1 1 1 Cold Source

  51. Backpressure Strategies (Hot Source) 10 10 10 100 Strategy f2 f3 f4 Function 90 Drop 10 10 10 Buffer Hot Scale-up Source

  52. Questions

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend