SlideShare a Scribd company logo
The Evolution Route of openGauss'
AI Capabilities
Gauss Lab, Huawei
Tianqing Wang (王天庆)
wangtianqing2@huawei.com
https://opengauss.org
LOGO
PART 1 Development Roadmap
3
The Different Stages of AI combining with DB
External AI Module Internal AI Module Embedding AI Module AI Kernel Servicing Full Scenario Intelligence
AI Framework for Database (overview)
AI Framework
AI Algorithms
AI in SQL AI in DBMS AI in Kernel
Full Stack
AI/ML/DL
Full Scenario
SQL/DBMS/Kernel
Analyst
/DBA/Developer
Deep Learning Platform Machine Learning Library Optimization Algorithms
In-DB Analytics
Knobs Tuning Learned Optimizer
Workload Forecasting
View/ Partition Advisor
Workload Scheduling
Index Advisor
Self Diagnosis/ Healing Learned Index/Storage
Self Assembler
In-DB Optimization
In-DB Operator
Self Security
Heterogeneous
computing KunPeng X86 Ascend GPU
DB4AI AI4DB
Self Monitor
LOGO
PART 2 AI Capability Introduction
AI in DBMS:Improve database performance and help operation and maintenance
2 Self-Diagnosis,Always Online
1 Self-Tuning 3 Self-Assembly
Support diversified workloads
• For rich industry applications, the
existing product development model
cannot meet customized delivery
Componentized self-assembly
• Database componentization: Easy to
use search algorithms or rules
customize according to business
scenarios (e.g., append-only or in-place
update storage engine)
Self-Diagnosis
• Diagnosis Engine:Trace-based intelligent
diagnosis system that supports the
combination of AI and rule engine
Self-Healing
• Try to repair: According to the self-diagnosis
results, try to call the optimization toolkit to
repair the fault
• Fault warning:Predict software & hardware
failures, and the failure detection time is less
than 5s
Intelligence Tuning on Huawei Cloud
• Knobs Tuning:Reduce operating time and
improve performance
• Index Recommendation:Give advices by
single SQL statement or workload
Workload Forecasting on Huawei Cloud
• Workload Forecasting:Accurately predict
workload performance, support users to
efficiently orchestrate services and
intelligent workload scheduling
Knobs Tuning
Workload Forecasting
Self-diagnosis architecture One-Stack-Fit-All architecture
Ref: XuanYuan: An AI-Native Database
The overall architecture of AI in DBMS in cloud scenarios
Control
Server
AI Server
Directly operate
the database to
obtain instant
information
workload OS DB
time-series metrics
Offline
Calculation
Service Zone
POD Zone
Request
Agent
…
KVM
DB
DB
DB
DB
KVM
DB
DB
DB
DB
JDBC
protocol
Automatic disk
expansion
mount /dev/sdb
Storage
Prediction
Knobs Tuning
SQL
visualization
SQL Diagnosis
Index
Recommendation
Features:
① Intelligent: define the level of autonomy and provide self-service and
intelligent services
② Emphasize the characteristics of "prediction": the ability to provide
foresight
③ Mainly oriented to workload-level tuning: knob tuning, index
recommendation and other functions focus on workload
Resource quota management
Intelligent Operation and Maintenance Platform
…
DBMind: A typical architecture of an intelligent management platform
AI in DBMS: Knob tuning and diagnosis
Tuning knob list: preset according to different scenarios, users can also configure
according to experience;
Tuning method summary: combining deep reinforcement learning (DDPG) and global
optimization algorithms (PSO, Bayes optimization), fine-grained tuning for different types of
knobs.
Tuning effect evaluation: Observe the benchmark results, the preset benchmarks are rich,
minimalist and extensible.
Ref: QTune: A Query-Aware Database Tuning System with Deep Reinforcement Learning
Diagnosis and Recommendation Result
• The execution time of a certain SQL statement can be
predicted by the cost value given by the database
optimizer.
• Using deep learning (Tree-LSTM) models to predict the
execution time of SQL statements can often achieve
better results than linear models.
• For more information, please refer to our published
papers.
TPC-H JOB TPC-DS
Cost TBCNN R-LSTM Cost TBCNN R-LSTM Cost TBCNN R-LSTM
Training
time (s)
590 79 1990 425 31204.5 477
Avg
accuracy
5.90E+06 1.9(1.8) 1.4(1.3) 1.20E+064.2(4.0) 10.6(4.1) 1.30E+076.9(4.3) 28.9(7.8)
<10 acc 74% 99% 99% 62% 93% 91% 53% 74% 74%
<2 acc 42% 77% 91% 43% 53% 66% 12% 44% 29%
TPC-H JOB TPC-DS
TPC-H JOB TPC-DS
Data Collection Feature Extraction Training/ Prediction Multi-task learning
cost
rows
AI in Kernel:query performance prediction based on online learning
Experimental results:
Ref:
An End-to-End Learning-based Cost Estimator
Query Performance Prediction for Concurrent Queries using Graph Embe
Learned Cardinality Estimation for Similarity Queries.
THANKS!
谢 谢 观 看
扫 码 添 加 微 信 公 众 号 , 微 信 小 助 手
THANKS!
谢 谢 观 看
10

More Related Content

What's hot

Interpreters & Debuggers
Interpreters  &  DebuggersInterpreters  &  Debuggers
Interpreters & Debuggers
Malek Sumaiya
 
Concurrent Matrix Multiplication on Multi-core Processors
Concurrent Matrix Multiplication on Multi-core ProcessorsConcurrent Matrix Multiplication on Multi-core Processors
Concurrent Matrix Multiplication on Multi-core Processors
CSCJournals
 
Hm system programming class 1
Hm system programming class 1Hm system programming class 1
Hm system programming class 1
Hitesh Mohapatra
 
Overall 23 11_2007_hdp
Overall 23 11_2007_hdpOverall 23 11_2007_hdp
Overall 23 11_2007_hdpMohd Arif
 
Performance comparison on java technologies a practical approach
Performance comparison on java technologies   a practical approachPerformance comparison on java technologies   a practical approach
Performance comparison on java technologies a practical approach
csandit
 
Unit 2
Unit 2Unit 2
Unit 3 part2
Unit 3 part2Unit 3 part2
Unit 3 part2
Karthik Vivek
 
zIIP Capacity Planning
zIIP Capacity PlanningzIIP Capacity Planning
zIIP Capacity PlanningMartin Packer
 
Parallel Sysplex Performance Topics
Parallel Sysplex Performance TopicsParallel Sysplex Performance Topics
Parallel Sysplex Performance TopicsMartin Packer
 
Parallel Batch Performance Considerations
Parallel Batch Performance ConsiderationsParallel Batch Performance Considerations
Parallel Batch Performance Considerations
Martin Packer
 
Unit5
Unit5Unit5
Unit5
Sneha Soni
 
Munich 2016 - Z011598 Martin Packer - He Picks On CICS
Munich 2016 - Z011598 Martin Packer - He Picks On CICSMunich 2016 - Z011598 Martin Packer - He Picks On CICS
Munich 2016 - Z011598 Martin Packer - He Picks On CICS
Martin Packer
 

What's hot (12)

Interpreters & Debuggers
Interpreters  &  DebuggersInterpreters  &  Debuggers
Interpreters & Debuggers
 
Concurrent Matrix Multiplication on Multi-core Processors
Concurrent Matrix Multiplication on Multi-core ProcessorsConcurrent Matrix Multiplication on Multi-core Processors
Concurrent Matrix Multiplication on Multi-core Processors
 
Hm system programming class 1
Hm system programming class 1Hm system programming class 1
Hm system programming class 1
 
Overall 23 11_2007_hdp
Overall 23 11_2007_hdpOverall 23 11_2007_hdp
Overall 23 11_2007_hdp
 
Performance comparison on java technologies a practical approach
Performance comparison on java technologies   a practical approachPerformance comparison on java technologies   a practical approach
Performance comparison on java technologies a practical approach
 
Unit 2
Unit 2Unit 2
Unit 2
 
Unit 3 part2
Unit 3 part2Unit 3 part2
Unit 3 part2
 
zIIP Capacity Planning
zIIP Capacity PlanningzIIP Capacity Planning
zIIP Capacity Planning
 
Parallel Sysplex Performance Topics
Parallel Sysplex Performance TopicsParallel Sysplex Performance Topics
Parallel Sysplex Performance Topics
 
Parallel Batch Performance Considerations
Parallel Batch Performance ConsiderationsParallel Batch Performance Considerations
Parallel Batch Performance Considerations
 
Unit5
Unit5Unit5
Unit5
 
Munich 2016 - Z011598 Martin Packer - He Picks On CICS
Munich 2016 - Z011598 Martin Packer - He Picks On CICSMunich 2016 - Z011598 Martin Packer - He Picks On CICS
Munich 2016 - Z011598 Martin Packer - He Picks On CICS
 

Similar to openGauss - The evolution route of openGauss' AIcapabilities

Iod session 3423 analytics patterns of expertise, the fast path to amazing ...
Iod session 3423   analytics patterns of expertise, the fast path to amazing ...Iod session 3423   analytics patterns of expertise, the fast path to amazing ...
Iod session 3423 analytics patterns of expertise, the fast path to amazing ...
Rachel Bland
 
Very large scale distributed deep learning on BigDL
Very large scale distributed deep learning on BigDLVery large scale distributed deep learning on BigDL
Very large scale distributed deep learning on BigDL
DESMOND YUEN
 
Linux Assignment 3
Linux Assignment 3Linux Assignment 3
Linux Assignment 3
Diane Allen
 
Impact2014: Introduction to the IBM Java Tools
Impact2014: Introduction to the IBM Java ToolsImpact2014: Introduction to the IBM Java Tools
Impact2014: Introduction to the IBM Java Tools
Chris Bailey
 
AI Stack on AWS: Amazon SageMaker and Beyond
AI Stack on AWS: Amazon SageMaker and BeyondAI Stack on AWS: Amazon SageMaker and Beyond
AI Stack on AWS: Amazon SageMaker and Beyond
Provectus
 
Db2 analytics accelerator technical update
Db2 analytics accelerator  technical updateDb2 analytics accelerator  technical update
Db2 analytics accelerator technical update
Cuneyt Goksu
 
Preventing Database Perfomance Issues | DB Optimizer
Preventing Database Perfomance Issues | DB OptimizerPreventing Database Perfomance Issues | DB Optimizer
Preventing Database Perfomance Issues | DB Optimizer
Michael Findling
 
Preventing Database Perfomance Issues | DB Optimizer
Preventing Database Perfomance Issues | DB OptimizerPreventing Database Perfomance Issues | DB Optimizer
Preventing Database Perfomance Issues | DB Optimizer
Michael Findling
 
Developing, testing and distributing elasticsearch beats in a complex, heter...
Developing, testing and distributing elasticsearch beats in  a complex, heter...Developing, testing and distributing elasticsearch beats in  a complex, heter...
Developing, testing and distributing elasticsearch beats in a complex, heter...
Jesper Agerled Wermuth
 
Webinar: Best Practices for Upgrading to MongoDB 3.2
Webinar: Best Practices for Upgrading to MongoDB 3.2Webinar: Best Practices for Upgrading to MongoDB 3.2
Webinar: Best Practices for Upgrading to MongoDB 3.2
Dana Elisabeth Groce
 
Practical data science
Practical data sciencePractical data science
Practical data science
Ding Li
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Aaron Shilo
 
Data modeling star schema
Data modeling star schemaData modeling star schema
Data modeling star schema
Sayed Ahmed
 
Be a database professional
Be a database professionalBe a database professional
Be a database professional
Sayed Ahmed
 
Be a database professional
Be a database professionalBe a database professional
Be a database professional
Sayed Ahmed
 
OS for AI: Elastic Microservices & the Next Gen of ML
OS for AI: Elastic Microservices & the Next Gen of MLOS for AI: Elastic Microservices & the Next Gen of ML
OS for AI: Elastic Microservices & the Next Gen of ML
Nordic APIs
 
IBM Cognos 10.2 Dynamic Cubes Deeper Dive
IBM Cognos 10.2 Dynamic Cubes Deeper DiveIBM Cognos 10.2 Dynamic Cubes Deeper Dive
IBM Cognos 10.2 Dynamic Cubes Deeper Dive
Senturus
 
Webinar: Best Practices for Upgrading to MongoDB 3.0
Webinar: Best Practices for Upgrading to MongoDB 3.0Webinar: Best Practices for Upgrading to MongoDB 3.0
Webinar: Best Practices for Upgrading to MongoDB 3.0
MongoDB
 
EDB Database Servers and Tools
EDB Database Servers and Tools EDB Database Servers and Tools
EDB Database Servers and Tools
Ashnikbiz
 

Similar to openGauss - The evolution route of openGauss' AIcapabilities (20)

Iod session 3423 analytics patterns of expertise, the fast path to amazing ...
Iod session 3423   analytics patterns of expertise, the fast path to amazing ...Iod session 3423   analytics patterns of expertise, the fast path to amazing ...
Iod session 3423 analytics patterns of expertise, the fast path to amazing ...
 
Very large scale distributed deep learning on BigDL
Very large scale distributed deep learning on BigDLVery large scale distributed deep learning on BigDL
Very large scale distributed deep learning on BigDL
 
Linux Assignment 3
Linux Assignment 3Linux Assignment 3
Linux Assignment 3
 
Impact2014: Introduction to the IBM Java Tools
Impact2014: Introduction to the IBM Java ToolsImpact2014: Introduction to the IBM Java Tools
Impact2014: Introduction to the IBM Java Tools
 
AI Stack on AWS: Amazon SageMaker and Beyond
AI Stack on AWS: Amazon SageMaker and BeyondAI Stack on AWS: Amazon SageMaker and Beyond
AI Stack on AWS: Amazon SageMaker and Beyond
 
Db2 analytics accelerator technical update
Db2 analytics accelerator  technical updateDb2 analytics accelerator  technical update
Db2 analytics accelerator technical update
 
Preventing Database Perfomance Issues | DB Optimizer
Preventing Database Perfomance Issues | DB OptimizerPreventing Database Perfomance Issues | DB Optimizer
Preventing Database Perfomance Issues | DB Optimizer
 
Preventing Database Perfomance Issues | DB Optimizer
Preventing Database Perfomance Issues | DB OptimizerPreventing Database Perfomance Issues | DB Optimizer
Preventing Database Perfomance Issues | DB Optimizer
 
Developing, testing and distributing elasticsearch beats in a complex, heter...
Developing, testing and distributing elasticsearch beats in  a complex, heter...Developing, testing and distributing elasticsearch beats in  a complex, heter...
Developing, testing and distributing elasticsearch beats in a complex, heter...
 
Webinar: Best Practices for Upgrading to MongoDB 3.2
Webinar: Best Practices for Upgrading to MongoDB 3.2Webinar: Best Practices for Upgrading to MongoDB 3.2
Webinar: Best Practices for Upgrading to MongoDB 3.2
 
JKSQL
JKSQLJKSQL
JKSQL
 
Practical data science
Practical data sciencePractical data science
Practical data science
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
 
Data modeling star schema
Data modeling star schemaData modeling star schema
Data modeling star schema
 
Be a database professional
Be a database professionalBe a database professional
Be a database professional
 
Be a database professional
Be a database professionalBe a database professional
Be a database professional
 
OS for AI: Elastic Microservices & the Next Gen of ML
OS for AI: Elastic Microservices & the Next Gen of MLOS for AI: Elastic Microservices & the Next Gen of ML
OS for AI: Elastic Microservices & the Next Gen of ML
 
IBM Cognos 10.2 Dynamic Cubes Deeper Dive
IBM Cognos 10.2 Dynamic Cubes Deeper DiveIBM Cognos 10.2 Dynamic Cubes Deeper Dive
IBM Cognos 10.2 Dynamic Cubes Deeper Dive
 
Webinar: Best Practices for Upgrading to MongoDB 3.0
Webinar: Best Practices for Upgrading to MongoDB 3.0Webinar: Best Practices for Upgrading to MongoDB 3.0
Webinar: Best Practices for Upgrading to MongoDB 3.0
 
EDB Database Servers and Tools
EDB Database Servers and Tools EDB Database Servers and Tools
EDB Database Servers and Tools
 

Recently uploaded

AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
Alina Yurenko
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 

Recently uploaded (20)

AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 

openGauss - The evolution route of openGauss' AIcapabilities

  • 1. The Evolution Route of openGauss' AI Capabilities Gauss Lab, Huawei Tianqing Wang (王天庆) wangtianqing2@huawei.com
  • 3. 3 The Different Stages of AI combining with DB External AI Module Internal AI Module Embedding AI Module AI Kernel Servicing Full Scenario Intelligence
  • 4. AI Framework for Database (overview) AI Framework AI Algorithms AI in SQL AI in DBMS AI in Kernel Full Stack AI/ML/DL Full Scenario SQL/DBMS/Kernel Analyst /DBA/Developer Deep Learning Platform Machine Learning Library Optimization Algorithms In-DB Analytics Knobs Tuning Learned Optimizer Workload Forecasting View/ Partition Advisor Workload Scheduling Index Advisor Self Diagnosis/ Healing Learned Index/Storage Self Assembler In-DB Optimization In-DB Operator Self Security Heterogeneous computing KunPeng X86 Ascend GPU DB4AI AI4DB Self Monitor
  • 5. LOGO PART 2 AI Capability Introduction
  • 6. AI in DBMS:Improve database performance and help operation and maintenance 2 Self-Diagnosis,Always Online 1 Self-Tuning 3 Self-Assembly Support diversified workloads • For rich industry applications, the existing product development model cannot meet customized delivery Componentized self-assembly • Database componentization: Easy to use search algorithms or rules customize according to business scenarios (e.g., append-only or in-place update storage engine) Self-Diagnosis • Diagnosis Engine:Trace-based intelligent diagnosis system that supports the combination of AI and rule engine Self-Healing • Try to repair: According to the self-diagnosis results, try to call the optimization toolkit to repair the fault • Fault warning:Predict software & hardware failures, and the failure detection time is less than 5s Intelligence Tuning on Huawei Cloud • Knobs Tuning:Reduce operating time and improve performance • Index Recommendation:Give advices by single SQL statement or workload Workload Forecasting on Huawei Cloud • Workload Forecasting:Accurately predict workload performance, support users to efficiently orchestrate services and intelligent workload scheduling Knobs Tuning Workload Forecasting Self-diagnosis architecture One-Stack-Fit-All architecture Ref: XuanYuan: An AI-Native Database
  • 7. The overall architecture of AI in DBMS in cloud scenarios Control Server AI Server Directly operate the database to obtain instant information workload OS DB time-series metrics Offline Calculation Service Zone POD Zone Request Agent … KVM DB DB DB DB KVM DB DB DB DB JDBC protocol Automatic disk expansion mount /dev/sdb Storage Prediction Knobs Tuning SQL visualization SQL Diagnosis Index Recommendation Features: ① Intelligent: define the level of autonomy and provide self-service and intelligent services ② Emphasize the characteristics of "prediction": the ability to provide foresight ③ Mainly oriented to workload-level tuning: knob tuning, index recommendation and other functions focus on workload Resource quota management Intelligent Operation and Maintenance Platform … DBMind: A typical architecture of an intelligent management platform
  • 8. AI in DBMS: Knob tuning and diagnosis Tuning knob list: preset according to different scenarios, users can also configure according to experience; Tuning method summary: combining deep reinforcement learning (DDPG) and global optimization algorithms (PSO, Bayes optimization), fine-grained tuning for different types of knobs. Tuning effect evaluation: Observe the benchmark results, the preset benchmarks are rich, minimalist and extensible. Ref: QTune: A Query-Aware Database Tuning System with Deep Reinforcement Learning Diagnosis and Recommendation Result
  • 9. • The execution time of a certain SQL statement can be predicted by the cost value given by the database optimizer. • Using deep learning (Tree-LSTM) models to predict the execution time of SQL statements can often achieve better results than linear models. • For more information, please refer to our published papers. TPC-H JOB TPC-DS Cost TBCNN R-LSTM Cost TBCNN R-LSTM Cost TBCNN R-LSTM Training time (s) 590 79 1990 425 31204.5 477 Avg accuracy 5.90E+06 1.9(1.8) 1.4(1.3) 1.20E+064.2(4.0) 10.6(4.1) 1.30E+076.9(4.3) 28.9(7.8) <10 acc 74% 99% 99% 62% 93% 91% 53% 74% 74% <2 acc 42% 77% 91% 43% 53% 66% 12% 44% 29% TPC-H JOB TPC-DS TPC-H JOB TPC-DS Data Collection Feature Extraction Training/ Prediction Multi-task learning cost rows AI in Kernel:query performance prediction based on online learning Experimental results: Ref: An End-to-End Learning-based Cost Estimator Query Performance Prediction for Concurrent Queries using Graph Embe Learned Cardinality Estimation for Similarity Queries.
  • 10. THANKS! 谢 谢 观 看 扫 码 添 加 微 信 公 众 号 , 微 信 小 助 手 THANKS! 谢 谢 观 看 10