fiware-cepheus icon indicating copy to clipboard operation
fiware-cepheus copied to clipboard

Added documentation for multi-tenancy

Open pooja1pathak opened this issue 6 years ago • 8 comments

Updated https://github.com/Orange-OpenSource/fiware-cepheus/blob/master/doc/admin/cep.md to explain how to enable multi-tenancy feature.

Added multi-tenant.md, multi_01.png, multi_02.png and multi_03.png to explain how multi-tenancy works and how it relates to Orion tenants.

pooja1pathak avatar Nov 16 '18 06:11 pooja1pathak

Coverage Status

Coverage remained the same at 89.425% when pulling a74ea2b10cdb968e562ac9b59edcc3f4850cb5d2 on pooja1pathak:master into 2df1e6cf97ab38c6f452f8df83bad341a544d498 on Orange-OpenSource:master.

coveralls avatar Nov 16 '18 06:11 coveralls

Thank you for your contribution @pooja1pathak ! Notify me when you are finished. Closes #75

marcc-orange avatar Nov 16 '18 07:11 marcc-orange

Hi @marcc-orange , I am done with the documentation from my side. Please guide me further if anything is missing or needs to be added.

pooja1pathak avatar Nov 16 '18 07:11 pooja1pathak

Hi @marcc-orange , I have a query for multi-tenant Cepheus-CEP. Is Cepheus_CEP is designed to provide multiple subscription for different tenant in multi-tenant mode?

As per my observation every-time CEP receives any configuration, it first unsubscribes from the previous Provider and then subscribe to the new Provider as given in the configuration. In this way Cepheus-CEP have multiple configuration files but only one subscription at a time even when multi-tenancy is enabled.

Is this a bug or I missed something?

pooja1pathak avatar Nov 22 '18 09:11 pooja1pathak

This looks like a bug, clearly each tenant has (or shoud have) an instance of a SubscriptionManager, reloading/updating the configuration of a tenant shoud not change subscriptions of other tenants.

marcc-orange avatar Nov 22 '18 13:11 marcc-orange

It might be easier to just use Docker containers to handle multi-tenancy properly (providing better isolation) than using a shared JVM application if you are not running on a constraint RPi-like platform...

marcc-orange avatar Nov 22 '18 13:11 marcc-orange

I tried to use Docker containers for running Cepheus but I am unable to find application.properties or cep.peroperties or any config file which can be used to enable multi-tenancy.

Please guide me with the steps to enable multi-tenancy in Docker container environment.

pooja1pathak avatar Nov 23 '18 11:11 pooja1pathak

Hi @marcc-orange I have added a separate issue for our above discussion https://github.com/Orange-OpenSource/fiware-cepheus/issues/80.

Please review my PR https://github.com/Orange-OpenSource/fiware-cepheus/pull/79 and verify its content for documentation of multi-tenancy in cepheus CEP.

pooja1pathak avatar Nov 27 '18 11:11 pooja1pathak