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
This can play very badly when you for some reason reduce the number of available resources (for example, your database cannot accept so many connections), as in the example above from 16 to 9, but do not get the expected result.
I suggest adding an interface for manually distributing the number of resources across stripes and accepting not numStripes + maxResources, but something like [Int], where each element of the list is a stripe and the number is the amount of resources on this stripe
The text was updated successfully, but these errors were encountered:
In hindsight looks like the decision of changing "resources per stripe" in the config to "resources across all stripes" was a mistake. I'm not sure how to back off of this now though 😕
I believe we should change the strategy for how resources are allocated across stripes.
The next code allocates 16 resources, while the maximum number specified in the config is nine.
This can play very badly when you for some reason reduce the number of available resources (for example, your database cannot accept so many connections), as in the example above from 16 to 9, but do not get the expected result.
I suggest adding an interface for manually distributing the number of resources across stripes and accepting not numStripes + maxResources, but something like [Int], where each element of the list is a stripe and the number is the amount of resources on this stripe
The text was updated successfully, but these errors were encountered: