Search code examples
google-cloud-stackdriverfile-lockinggoogle-cloud-filestore

google-filestore file locks limit - How to monitor


Filestore has a limit of 128 File Locks.

Are There Ways to monitor how many file lock? What happens if you reach this limit?

I checked on stack driver, but all metric haven't any link with file locks

Thank you very much for any suggestions.

Giorgio

(https://cloud.google.com/filestore/docs/limits)

A Cloud Filestore instance can have up to 128 file locks across all clients of the instance.


Solution

  • You could use the lslocks from the util-linux package as mentioned on this other forum, the limit would not be shown on Stackdriver as it would need to monitor the files on your Filestore instance which Stackdriver doesn't do for privacy reasons.

    If you reach the limit, it would mean that you would not be able to create another lock on the file (you would get an error when the 129th user or process tries to open it). You could ask for an increase to this limit to the GCP Support team, however, there is no guarantee that they will increase the limit.

    Hope you find this helpful!