Discussion:
What is target utilization in the utilizationController?
J. Pablo Fernández
2015-09-02 08:54:49 UTC
Permalink
Hello,

What is targetUtilization in the utilizationController? What are the
semantics? Does the utilizationController reduce the number of items in the
pool if usage goes down?
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Zach Tellman
2015-09-02 20:53:03 UTC
Permalink
Yes, a target utilization of 0.9 means that it will have enough threads
such that the peak load uses 90% of the threads. If the load dips, threads
will be killed every 'controlPeriod'. If there's a spike, threads will be
immediately created, up to the 'maxThread' limit.
Post by J. Pablo Fernández
Hello,
What is targetUtilization in the utilizationController? What are the
semantics? Does the utilizationController reduce the number of items in the
pool if usage goes down?
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
J. Pablo Fernández
2015-09-09 13:02:58 UTC
Permalink
Thank you for the answer. It seems when there's no objects being used, it
goes down to 0. Is there some way to always keep at least 1 unused object
ready to work without writing my own controller?
Post by Zach Tellman
Yes, a target utilization of 0.9 means that it will have enough threads
such that the peak load uses 90% of the threads. If the load dips, threads
will be killed every 'controlPeriod'. If there's a spike, threads will be
immediately created, up to the 'maxThread' limit.
Post by J. Pablo Fernández
Hello,
What is targetUtilization in the utilizationController? What are the
semantics? Does the utilizationController reduce the number of items in the
pool if usage goes down?
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Zach Tellman
2015-09-09 18:06:35 UTC
Permalink
Yes, but by design creating your own controller is trivial. You can just
wrap the existing one, and make sure the return value doesn't adjust
anything below 1.
Post by J. Pablo Fernández
Thank you for the answer. It seems when there's no objects being used, it
goes down to 0. Is there some way to always keep at least 1 unused object
ready to work without writing my own controller?
Post by Zach Tellman
Yes, a target utilization of 0.9 means that it will have enough threads
such that the peak load uses 90% of the threads. If the load dips, threads
will be killed every 'controlPeriod'. If there's a spike, threads will be
immediately created, up to the 'maxThread' limit.
Hello,
Post by Zach Tellman
Post by J. Pablo Fernández
What is targetUtilization in the utilizationController? What are the
semantics? Does the utilizationController reduce the number of items in the
pool if usage goes down?
--
You received this message because you are subscribed to the Google
Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an
Post by J. Pablo Fernández
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...