a system wide debugging assistant powered by natural
play

A System-Wide Debugging Assistant Powered by Natural Language - PowerPoint PPT Presentation

A System-Wide Debugging Assistant Powered by Natural Language Processing Karthik Narasimhan Anirudh Sivaraman Pradeep Dogga* Ravi Netravali* * Distributed Systems are complex Load Balancer Response A Request A Debugging is


  1. A System-Wide Debugging Assistant Powered by Natural Language Processing Karthik Narasimhan † Anirudh Sivaraman ‡ Pradeep Dogga* Ravi Netravali* ‡ † *

  2. Distributed Systems are complex Load Balancer Response A Request A

  3. Debugging is hard - abstraction gap Developer Users Application is not loading some content!

  4. Painful debugging process Which team is Is it a bug or Find root-cause relevant for this? feature request? Developer Preliminary Diagnosis Application is not loading some content!

  5. Painful debugging process – Finding root cause Check logs from Corrupt key-value API calls to key- Wrong hypothesis! store? value store Query Generation Developer Active Debugging Application is not loading some content! Routing loop at Check traffic logs Correct hypothesis! switch from that switch (Identified a loop) Largely manual and error-prone

  6. Painful debugging process – Generate Fix Verify application Change switch behavior configuration file Developer Fix

  7. Systems debugging tools Application Logs

  8. Systems debugging tools Marple (SIGCOMM 17) Network Metrics

  9. Systems debugging tools Canopy (SOSP 17) Pivot Tracing (SOSP 15) Distributed systems tracing

  10. Debugging remains difficult Did I debug this scenario • Still manual and error-prone: before? • Which tool? • When? • How? • Debugging intuitions are hard-won!

  11. Can we use a data-driven approach to automate steps in end-to-end debugging?

  12. Large amounts of debugging data Two big classes of data: Quantitative/Structured Unstructured/Natural Language Logs from tools User Issues Performance metrics Documentation and comments Source code Past bug reports

  13. Related Work • Program Analysis and Synthesis: • NLP for code generation, Deep API learning (FSE 16) • Program Debugging: • Net2Text: English queries => SQL queries (NSDI 18) • Big Code: • Initiative to perform statistical program analysis on large amounts of code Limitations: • Only ingest data from a single subsystem • Assume a single-step prediction

  14. A System-Wide Debugging Assistant Powered by Natural Language Processing Issues/Bug Reports Code/Configuration Files System-wide concern NL Debugging Assistant Suggestion: • Label Application Network End Host • Folder/Module Metrics Logs Logs • Use tcpdump • Issue query X with Marple Feedback

  15. Automating steps in end-to-end debugging Generating Preliminary Active Debugging Fix! Diagnosis Debugging queries Developer

  16. Preliminary Diagnosis • Automate : Label assignment and Module prediction • Category : Text classification and document retrieval Menu panel not closing when not /src/lib/menu Debugging Assistant detached Source code • Challenge : Learn joint representations of data from both unstructured text and structured source code.

  17. Label Prediction – Preliminary Evaluation • 165966 labeled issues from the top 98 open-source Github repositories (based on stars) • Bag-of-words representation of issue text Menu 1 panel 1 Label1 Menu panel not not 2 Label2 being closed tool when not FFN Label3 0 detached Label4 closed 1 Label5 css 0 being 1 detached 1 when 1

  18. Results Prediction performance 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 Precision Recall F1-score Label Prediction

  19. Source Code Folder Prediction – Preliminary Evaluation • 240138 issues with corresponding fixes from Github repositories Menu panel not being closed when not detached Relevance FFN Score Fix in: /src/lib/menu

  20. Results Prediction performance 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 Precision Recall F1-score Folder prediction

  21. Automating steps in end-to-end debugging Generating Preliminary Active Debugging Fix! Diagnosis Debugging queries Developer

  22. Generating debugging queries • Automate : Query generation for use with debugging tools • Category : Language generation Application loading Issue debugging query: contents Debugging Assistant ‘Stream = filter(T, (switch == 2) ); slowly R = map(stream, [qin], [qin ]);’ Developer Found large queue depths System logs due to a flow! • Challenge : Understand system logs, source code semantics and language syntax

  23. Template-based query prediction • A platform to let users interact with the system and collect data for query generation. • Network debugging tool for performance queries (Marple) Reddit Frontend P4 Switch Pick a fault from: • Shut down Cassandra host Cassandra & • Create congestion on reddit- P4 Switch Zookeeper switch link with other traffic Linux Router • … P4 Switch Postgres DB Inject Fault Injector P4 Switch Memcache Distributed reddit setup

  24. Template-based query prediction Reddit Frontend P4 Switch Cassandra & P4 Switch P4 Zookeeper Linux Router Marple program P4 Switch Postgres DB P4 Switch Memcache stream = filter(T, (switch == 4) ); R = map(stream, [qin], [qin]); Distributed reddit setup Queue depths

  25. Template-based query prediction • Predict the correct template and switch to diagnose the root-cause • Collected issue reports using the testbed from one user for faults injected using fault injector. Application loading content slowly Relevance FFN Score Template1 Switch 10

  26. Results Prediction performance 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 Precision Recall F1-score Query generation

  27. Automating steps in end-to-end debugging Generating Preliminary Active Debugging Fix! Diagnosis Debugging queries Developer

  28. Active (interactive) debugging • Automate : Iterative query generation by incorporating feedback • Category : Sequential decision making Did not find any issues with queues Application loading Issue query 1 with content Debugging Assistant marple slowly Developer System logs

  29. Active (interactive) debugging • Automate : Iterative query generation by incorporating feedback • Category : Sequential decision making Done: Found an issue in routing! Application loading Issue query 2 with content Debugging Assistant marple slowly Developer System logs • Challenge : Developer- assistant interface to leverage developer’s experience

  30. Challenges & Future Work • Need to determine optimal model to leverage information from text and traces to generate queries syntactically • Data collection, training time – need to develop novel systems and algorithmic techniques • End-to-end evaluation – Evaluate impact of the assistant in the debugging experience with real issues. • Developer study on systems with reasonable complexity

  31. Conclusion • Our work paints a vision for an end-to-end debugging assistant which can: • Process natural language inputs • Various system logs • Leverage multiple domain specific debugging tools • Automate the three steps in debugging

  32. Thank you! Contact: dogga@cs.ucla.edu http://web.cs.ucla.edu/~dogga

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