How to set file size limit for user?
I want to know how to set limits by size for user. For example user get to only use up to 100mb to create their tables.
0
I want to know how to set limits by size for user. For example user get to only use up to 100mb to create their tables.
Answers
Hi,
I remember a similar question from way back in 2014!
See:
http://www.vertica-forums.com/viewtopic.php?f=4&t=1757
Example:
The directory /home/dbadmin/jim2 has a quota of 100 MB.
See:
https://www.vertica.com/docs/9.2.x/HTML/Content/Authoring/AdministratorsGuide/StorageLocations/CreatingAndConfiguringStorageLocations.htm
Since Im kinda new to Vertica so what I get is that you create seperate directory for the schemas and then set schemas to go into that directory? Also there are no like altering options to set size for schema?
I'm unaware of any ALTER command to set the max size of a table. My proposed "work around" of having a "separate directory and storage policy for each user schema" would become a maintenance nightmare if you have a lot of users! Another option might be to run an audit report via crontab once or twice a day checking for overages. You can send an email alert or lock user accounts with overages. Or you can just let users know how to manage and be "responsible" for their own space usage.
I'm curious. Why are you looking to enforce such a constraint? Hopefully you do not permit users to create tables on a production cluster on their own.
Company wants me to add restrict of 100mb to each user and since we have lot of users your workaround isn't best solution for me. However I will talk to the leaders tomorrow and maybe we can come up with better solution.