remotable装饰器-object model远程调用实现
OpenStack数据库对象远程操作
在OpenStack的各个服务之间有些数据库对象是可以远程操作的,远程对象所实现的效果是:Compute服务中的数据库方法,可以经过indirection_api重定向到Conductor服务,这样Compute调用的数据库方法实际由Conductor服务执行
以instance的save()方法为例,有一个@base.remotable装饰器
/nova/objects/instance.py
@base.remotable
def save(self, expect
原创
2020-07-15 16:56:14 ·
343 阅读 ·
0 评论