-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lock file not being closed? #12
Comments
Limit on open files is 1024,
Comments from code: def _getshardid(self, doc_id):
# shard_id = doc_id.split("-")[0]
# I have been comtemplating how big to make the shard_id
# it's a compromise between having too many files or too big files.
# Initially I was going to make the the first 2 char of the uuid
# but then I made it the first part (8 char) which might make too many files?
# Further thought 16 x 16 (2 char) = 256 files, this was the windows limit at
# one stage. might still be?
# Found the answer, FAT16 limit is 512 files in a folder and a 3 char shard
# 16 x 16 x 16 = 4096 would well exceed this, but would be fine on FAT32 or NTFS
# https://stackoverflow.com/questions/4944709/windows-limit-on-the-number-of-files-in-a-particular-folder#14407078
shard_id = doc_id[0:2]
return shard_id we need 256 shard files and potentially as many again lock files, which is 1/2 of the 1024 OS limit Probably need to increase this somehow, can python do this or it needs to be done at the os level? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lock file not being closed?
The text was updated successfully, but these errors were encountered: