Native swift containers and accounts
Hello,
I checked a bit the merged branch in OC 7.
If I understood correctly, the mounted swift is at the container level and not account level, isn't it ?
We loose a lot of Swift native features in that kind of setup. Quotas, versionning, encryption...
Is there a way to handle it on the account level when we own a swift cluster ?
Thanks.
cc @butonic
@enorniel I would like to implement that, however I need more input on how that is supposed to work.
Currently, we mount a container specified by the admin. He can configure the password and user managemant is disconnected from swift.
We could implement a swift user backend that takes the credentials given at the owncloud login and tries to mount the corresponding owncloud container via swift. AFAICT the users password can be different from the api password that has to be used by owncloud. Each user would have to create the api credentials himself before he can login and use owncloud.
Any input is welcome!
I think there are 2 ways of doing that auth process:
OC auth is separated from the swift auth and in that case the user has to handle the credentials separately.
Or, Swift is also a user backend (as it is already possible with ftp, webdav or ldap).
I think the second solution is more enterprise fitting as a lot of firms already posess a central user management and implement OC with an external user backend.
cc @MTRichards if he has more input on how objectstore is expected to work
The initial implementation is working as designed - to work at the super-user account level. Since ownCloud must have complete control over primary storage, and quotas, encryption, versions and rights are managed by ownCloud - there is limited added value to creating yet another mechanism for managing this outside of ownCloud - particularly since this will break ownCloud if one starts to make changes there.
We could look at a second generation plugin where these items are handed off to an object store, but in my conversations with implemented openStack clouds, as well as other object stores like S3, Ceph, DDN, etc - this is not often implemented.
I certainly would appreciate more info on how the setup is designed in this instance, to look into it for the future - it would be interesting to see what could be put together here.
Actually, what I am afraid of (If I may say so :) ) is that a very performant and highly scalabale FS is used (SWIFT) but still metadatas of this FS are stored in an old way MySQL breaking performances.
If we couple SWIFT with a nosql db for metadatas handling it could be great.
I saw that there is a problem also with encryption app as it doesn't handle correctly keyfiles which makes it less secure (or less performant if we choose to enable the encryption app anyway).
How is this feature going right now? As far as I know, too many objects (millions) in one container will significantly slow down the performance of Swift, since the container data is stored in sqlite. Without multi-container, the Swift backend feature means nothing in production.
A user shared his ideas recently:
Recently I have been playing around with Openstack swift as primary storage backend for Owncloud.
I have seen that Owncloud puts all data from all users in one single container. This does not look OK to us since the SWIFT storage nodes use sqlite (on every node) for their metadata. One sqlite database is created for every container. This means that in the Onwcloud case this database can become really big. Now sqlite supports databases upto 140TB if I am correct, so that is a limit you don't run easily into but having a single database, the tables can become really large and the performance of sqlite decreases with an increasing size of the tables. So here is a potential performance bottleneck for large installations.
Wouldn't it be much better to give every user his own container. Wouldn't that make deleting users and do accounting more easy and fast compared to putting everything into one single container?
00003895
Yep. Known issue, though I did see a pull request to address this recently I think.
Matt Richards VP Products & Markets ownCloud, inc.
On Sep 25, 2015, at 6:21 PM, Michael Stingl [email protected] wrote:
A user shared his ideas recently:
Recently I have been playing around with Openstack swift as primary storage backend for Owncloud.
I have seen that Owncloud puts all data from all users in one single container. This does not look OK to us since the SWIFT storage nodes use sqlite (on every node) for their metadata. One sqlite database is created for every container. This means that in the Onwcloud case this database can become really big. Now sqlite supports databases upto 140TB if I am correct, so that is a limit you don't run easily into but having a single database, the tables can become really large and the performance of sqlite decreases with an increasing size of the tables. So here is a potential performance bottleneck for large installations.
Wouldn't it be much better to give every user his own container. Wouldn't that make deleting users and do accounting more easy and fast compared to putting everything into one single container?
00003895
— Reply to this email directly or view it on GitHub.
Hi Matt et. al.,
That user is me, Ron from SURFsara. At the moment we are using gluster fs and we are not very pleased with it. We would like to migrate a few months from now to SWIFT. So a fix for this would be really neat.
Cheers,
Ron
00004263
Closing as SWIFT protocol will be deprecated in favor of full S3 support.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.