本文转自https://www.aliyun.com/jiaocheng/1112360.html 供个人参考
Trove简介OpenstackTrove是openstack为用户提供的数据库即服务(DBaaS)。所谓DBaaS,即trove既具有数据库管理的功能,又具有云计算的优势。
使用trove,用户可以:
1.按需获得数据库服务器
2.配置所获得的数据库服务器或者数据库服务器集群
3.对数据库服务器或者数据库服务器集群进行自动化管理
4.根据数据库的负载让数据库服务器集群动态伸缩
Trove架构
与openstack的其他组件一样,trove也提供RESTful API,并通过RESTful API和其他组件进行交互。
上图为trove的架构图。Trove API和用户进行交互,当Trove API接收到用户请求时,trove API首先会调用Keystone的API来对用户 进行认证,认证通过后才会去执行相应的操作。Trove API会同步处理操作简单的一些请求,复杂的请求则会通过Message Queue (RabbitMQ)交给Task Manager来处理。Task Manager会监听RabbitMQ的一个topic,收到请求后就会进行处理。这些请求通常是 分配数据库实例、管理数据库实例的生命周期、操作数据库等。和openstack的其他组件一样,Trove也有一个Infrastructure Database来存储自己本身的数据,如数据库实例的信息等。T