You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could we inject a strategy to have the box help us out?
<beanid="myParallelizedOutputExecutor"class="com.nokia.dempsy.output.RelativeOutputSchedule">
<constructor-argvalue="${output.frequency}"/>
<constructor-argvalue="MINUTES"/>
<propertyname="concurrencyStrategy"ref="findMeSomeThreads"/>
</bean>
<beadid="findMeSomeThreads" class "MachineBasedAllocationStrategy" >
<propertyname="machineHint"value="HYPER_THREADED"
<!-- helps us NOT eat up the whole box and choke...-->
</bean>
<beadid="findMeSomeThreads" class "WeightedThreadAllocationStrategy" >
<propertyname="relativeWeight"value="0.7" />
<!-- distribute the # of threads ACROSS pools ...-->
</bean>
# The above is just some observations -- perhaps the strategies form a compound / decorated kind of configuration.
The text was updated successfully, but these errors were encountered:
For now I'm going to leave this since the output loop works in conjunction with the threading model but uses it's own thread pool so there's no good way to do this except to borrow threads from the main threading model.
This does not take into account for hyper threading
It would be nice if DEMPSY could grab as many threads as "it should" when started up on a box.
Right now we can override this directly which is nice but can DEMPSY 'respond' itself to what's available?
So we have this ....
Could we inject a strategy to have the box help us out?
The text was updated successfully, but these errors were encountered: