
If you really need that many connections there are some tcp tunables you can do to help them be more efficient.

If you really need that many connections there are some tcp tunables you can do to help them be more efficient.

You can also look at how many network sockets you have open and where they are connecting. netstat -an will give you a quick look. lsof can help you figure out what is using those ports.

Your number of python file descriptors went up after that change. Have you looked at what python stuff is running? Something isn’t closing files or sockets after it is done with them.
As someone who has been coding for over 40 years, this is so true.

Oh, and if you want to use it as the backing store for a database consider obstore instead of s3fs: https://developmentseed.org/blog/2025-08-01-obstore/

I’d use an s3 bucket with s3fs. Since you want to host it yourself, Minio is the open-source tool to use instead of s3.
I was in a computer store a few years ago watching a young guy trying to sell a tablet to an older woman. He said “the good news about this is that it can’t get viruses because it runs apps”.
Good point. I think knowing where to draw that line comes with experience (and having to fix lots of other people’s code).
I would have liked some comments explaining the rules we are trying to enforce or a link to the product requirements for it. Changing the rules requirements is the most likely reason this code will ever be looked at again. The easier you can make it for someone to change them the better. Another reason to need to touch the code is if the user model changes. I suppose we might also want a different password hash or to store the password separately even a different outcome if the validation fails. Or maybe have different ruled for different user types. When building a function like this I think less about “ideals” and more about why someone might need to change what I just did and how can I make it easier for them.
Gen AI is like super-autocorrector.
I deploy hundreds of docker containers every day that run general purpose operating systems. These bills seem dumb at a fundamental level regardless of the terrible privacy implications.