[英]FIWARE Orion: Multitenancy and Federation
I would like to know how can I create tenants in Orion. 我想知道如何在猎户座创建租户。 I understand that you need to inform Orion of the multitenancy by adding the -multiservice
parameter. 我知道您需要通过添加-multiservice
参数通知Orion多租户。 However, I do not know what is necessary to create, indeed, a tenant. 但是,我不知道创建一个租户的必要性。
From what I have seen in the documentation, my guess is that you just need to add the Fiware-Service
header in each HTTP request. 根据我在文档中看到的内容,我的猜测是您只需要在每个HTTP请求中添加Fiware-Service
标头。 Therefore, if you send a updateContext
with a Fiware-Service=t_01
Orion will automatically create that tenant. 因此,如果您发送带有Fiware-Service=t_01
的updateContext
,Orion将自动创建该租户。 Is this right? 这是正确的吗?
In addition to this, I also would like to know if multitenancy works correctly (or is planned to work correctly) in the following scenario: 除此之外,我还想知道在以下场景中多租户是否正常工作(或计划正常工作):
In other words, is it possible to have several Gateways, each one with an Orion with one or more tenants, and all the Orions of all the Gateways federated to a global Orion in the cloud? 换句话说,是否有可能拥有多个网关,每个网关都有一个带有一个或多个租户的猎户座,以及所有网关的所有猎户座联合到云中的全球猎户座? Will the tenancy be respected in the global orion? 租赁是否会在全球范围内得到尊重?
Thanks. 谢谢。
Your are right: Orion creates tenants "on the fly", the first time a create entity/registry operation in the given tenant is processed. 您是对的:Orion“在运行中”创建租户,这是第一次处理给定租户中的创建实体/注册表操作。
Regarding the scenario in the picture I understand that you refer to the federation approach described in this section in the manual , based on notifyContext. 关于图片中的场景,我理解您在手册中引用了基于notifyContext的本节中描述的联合方法。 Given that Orion includes the Fiware-Service
header in notifications, it should work. 鉴于Orion在通知中包含Fiware-Service
标头,它应该可以工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.