-
Notifications
You must be signed in to change notification settings - Fork 79
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
Dynamic semaphore initialization from ticket quota #98
Comments
Had a chat with @sirupsen and I think that the approach we've settled on boils down to:
|
@csfrancis @casperisfine any comments on this approach? Namely the newest comment from Dale |
@csfrancis asked me:
and this brings up a point of clarification: the reason why any of this is necessary is because we have to use hostIPC for logging. Because we are logging to SySV MQ, we are forced into using the host IPC namespace. |
K, @csfrancis had a short conversation and he's onboard with the solution of dynamically adjusting ticket counts. Some excellent point Scott made:
|
The gist of what is proposed here is to allow us to eliminate the assumption that there are a fixed number of workers (resource consumers) on a particular host. In a more dynamic scheduling environment (think: kubernetes), we cannot be certain of the number of resource consumers on a given host.
This is problematic, because under the current model we would have a ticket quota of a fixed size for a fixed number of workers. For illustration:
So, since W is no longer static, we need T to be able to react to it, such to preserve Q at 0.5.
The proposed implementation is as follows:
A nuance to this is:
The text was updated successfully, but these errors were encountered: