当前位置:网站首页>openGauss AI能力升级,打造全新的AI-Native数据库
openGauss AI能力升级,打造全新的AI-Native数据库
2022-06-11 15:36:00 【Gauss松鼠会】
数据库与AI结合起来会迸发出什么样的火花?不同的数据库厂商、开源社区、高校师生们的理解也都不尽相同。虽然在精确的概念上难以形成统一的标准,但是在总体的演进思路上却是一致的。对于openGauss来说,自从在社区开源第一个版本开始,openGauss便不断地在该领域演进并贡献代码,对于此次开源的openGauss 3.0.0 版本来说也不例外。
在3.0.0版本中,openGauss的AI领域将在多个方向演进:
1. 整合现有AI4DB功能,开源openGauss数据库自治平台;
2. 重构现有AI4DB能力,实现插件化、支持服务式的运行模式;
3. 支持Prometheus 生态;
4. 新增慢SQL根因分析、时序预测等新特性,优化现有的AI能力;
5. DB4AI功能支持更多算法。
DB4AI原生引擎进一步升级
在openGauss 3.0.0中,DB4AI原生引擎支持更多机器学习算法,例如支持SVM的非线性核函数,支持XGBoost等等。同时,openGauss还提供了Explain接口,可以观察到模型的信息。
AI4DB支持服务化、插件化
原有的openGauss AI4DB 能力是离线工具形态,不能在后台对数据库进行完整的监控,也不能定期地对数据库进行问题发现。最新版本,openGauss实现了后台监控服务,并在后台定期地检查数据库系统的状态,从而形成了自治数据库平台DBMind。通过离线计算的形式,将诊断结果保存,用户可以通过Grafana等软件进行可视化,从而第一时间发现问题并获知问题的根因。
由于需要在后台定期监控openGauss数据库系统的运行状态,因此,需要对接监控平台以便采集数据库监控指标并进行离线计算。故而,在3.0.0版本中,openGauss实现了两款exporter用于与Prometheus平台进行对接,其架构形态为:

其中,openGauss-exporter 用于获取数据库系统的监控指标(metric),reprocessing-exporter用于对存储在Prometheus中的数据进行二次加工。上述两个exporter的数据,可以通过Prometheus定期采集获取。DBMind系统定期从Prometheus中获取时序数据,并在DBMind部署机上进行并行计算。待计算完成后,将计算结果存储在元数据库(meta-database)中。之后,用户可以从元数据库中获取诊断结果,更进一步地,可以通过配置Grafana等进行可视化。

如上图所示,是一种基于元数据库中的数据,采用Grafana进行可视化的示例。
与此同时,openGauss还全面整合了现有的AI能力,并重新设计了一种插件化的模式。例如,用户希望调用参数调优功能,基于强化学习来调试数据库的参数,可以通过下述命令来实现:
gs_dbmind component xtuner tune …通过上述gs_dbmind 命令,可以调用所有的AI功能,通过component 子命令,可以调用具体的AI功能。用户可以通过下述命令来查看帮助详情:
gs_dbmind component --help通过上述设计,openGauss社区开发者如果希望贡献某种数据库AI功能,则只需要保证接口能被gs_dbmind获取到即可。同时,开发的插件还可以调用DBMind提供的全部API,例如从Prometheus 中获取数据的dai (data access interface)接口,向元数据库(meta database)中插入数据的 dao (database access object)接口等。
AI4DB 现有AI能力全面提升
在此次发布的3.0.0版本中,openGauss 对现有的索引推荐、时序预测等功能也进行了全面升级。补充了以往版本中的疏漏场景。同时,提供慢SQL根因分析与推荐功能,帮助DBA迅速识别出慢SQL,并依据监控到的数据库运行指标,通过AI特征库识别算法创新地给出慢SQL产生的原因和置信度,同时还给出优化建议。
为下一步开发全面的数据库AI自治平台打下基础
如上文所述,在openGauss 3.0.0版本中,创新性地完成了对历史AI能力的整合,丢弃历史研发过程中遗留下的包袱,轻装上阵,创新性地实现了可服务化、可离线式、插件式、自由组装的DBMind平台,并跟随数据库安装包一同发布。对于诊断后的结果,用户可以自行采用Grafana等工具进行自定义地可视化(当然,我们也会提供Grafana示例)。
这为我们未来更进一步地将DBMind平台升级打下基础,预计本年度openGauss会将更多AI功能丰富到该平台中,同时将该平台从现有代码仓库中独立出来,并提供原生的Web前后端展示平台,同时支持自修复功能,让用户真正体会到一键式、开箱即用的数据库自动驾驶。
- END -
边栏推荐
- 2022 Tibet's latest eight major construction personnel (labor workers) simulation test question bank and answers
- See from the minute, carve on the details: Exploration of SVG generated vector format website icon (favicon)
- A former employee of Baidu was awarded 1.07 million yuan for job hopping; Apple, Google and Microsoft plan to "kill" the password; It is said that Geely has acquired Meizu | Q information
- Talk about the principle of QR code scanning login
- The research results of Professor xuweixin from the school of atmosphere of Sun Yat sen University on extreme precipitation caused by weak convection were reported by science highlights
- 英伟达终于开源GPU内核模块代码,网友:难以置信
- Cf662b graph coloring problem solution
- 拿到20K我用了5年,面了所有大厂,这些高频面试问题都帮你们划出来啦
- 调代码最离谱错误合集
- 06 _ 全局锁和表锁 :给表加个字段怎么有这么多阻碍?
猜你喜欢

02 _ Log system: how does an SQL UPDATE statement execute?

【创建型模式】单例模式
![[系统安全] 四十二.Powershell恶意代码检测系列 (4)论文总结及抽象语法树(AST)提取](/img/d9/67ad40ba63de8006b67e51b0c82a84.png)
[系统安全] 四十二.Powershell恶意代码检测系列 (4)论文总结及抽象语法树(AST)提取

Everything about JS functions

MOS transistor 24n50 parameters of asemi, 24n50 package, 24n50 size

Performance of MOS transistor 25n120 of asemi in different application scenarios

拿到20K我用了5年,面了所有大厂,这些高频面试问题都帮你们划出来啦

05 _ 深入浅出索引(下)

05 _ In simple terms index (Part 2)

Hot seek tiger, a list of eco economic models
随机推荐
How can local retail release the "imprisoned value" and make physical stores grow again?
2022.02.28
What is excess product power? Find the secret key of the second generation cs75plus in the year of the tiger
Everything about JS functions
openGauss数据库性能调优概述及实例分析
2022 Tibet's latest eight major construction personnel (labor workers) simulation test question bank and answers
零基础自学软件测试,我花7天时间整理了一套学习路线,希望能帮助到大家..
数据库密态等值查询概述及操作
验证码是自动化的天敌?阿里研究出了解决方法
Hard core analysis lazy single case
Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container..
Can we really make money by doing we media editing?
Oauth2的理解
拿到20K我用了5年,面了所有大厂,这些高频面试问题都帮你们划出来啦
[creation mode] builder mode
实时特征计算平台架构方法论和实践
Uniapp développe des applets Wechat, de la construction à la mise en ligne
浅析分布式系统之体系结构-事务与隔离级别(多对象、多操作)下篇
In June, 2019, cat teacher's report on monitoring
In the "ten billion blue ocean" database, each player can find a boat | c-position face-to-face