I found out that under-sleeping had a very bad impact on me after several months, not in a short/mid term. And I have the feeling this placebo effect would not be the same if you've been under-sleeping for months.
The original article link is broken though, too bad.
This is just my gut feeling, things are probably more complex, but here's why I think sleep deprivation deeply impacts us:
I used to have a crazy schedule, commuting very early and coming back quite late at home, sleeping between 4 to 5 hours a day. I've noticed
I was often in a bad mood, dropping things, feeling anxious. gaining weight and so on... After a couple of years I was feeling depressed and getting sick all the time.
Then I had a new job and started to work remotely from home, and started to sleep 8 to 9 hours per night. Both works were interesting, and commuting to the first one was done by train, so I think the only noticeable difference was the amount of sleep I was getting.
With more sleep, after a month, I became more focused in everything, the depression feelings went away, and had so much more energy. Overall I was more successful in what I was doing - happier and healthier.
I guess all of this sounds obvious, but going through it, making sure I get my 8-9 hours of sleep most of the time is something I am now careful about.
I don't know all the details on the project and if there are some single point of failures, but as far as Circus is concerned, a properly working graceful shutdown is a must-have when your app is getting data to process.
e.g. 1/ notify the world you don't accept data anymore 2/ process what you have enqueued 3/ shutdown. In Fabien's use case 1 -> 3 can last for over 5 minutes.
my (perhaps snarky) comment was more to do with 'why be so careful' with the potential data failure (that circus handily addresses) when data is being placed in a 'leaky bucket' (redis) in the first place.
zeromq is not secured - but they are working on adding security in the protocol.
In the meantime the safest way to avoid any security issue is to run IPC-only zeromq sockets or to set properly a firefwall and to use an SSH tunnel. There's such an option in Circus, where you can pass the ssh server to circusctl.
> First question, what is a typical use case for wanting multiple instances of a specific process?
distribute the load. For example I can run several "redis workers" that gets jobs to do in a redis queue.
> Second question, if I am running multiple managed processes, how can they all bind to the same managed socket?
if you bind a socket and then forks 10 child processes, they can all accept connections on that socket and let the operating system do the load-balancing.
This is exactly how the Apache pre-fork model works.
yeah the build is staled on readthedocs ... trying to see how to fix that. They will eventually show up sorry. You can find them in the docs/ directory in the repo
I found out that under-sleeping had a very bad impact on me after several months, not in a short/mid term. And I have the feeling this placebo effect would not be the same if you've been under-sleeping for months.
The original article link is broken though, too bad.