dotnet/orleans

how do i balance resource usage?

Closed this issue · 1 comments

hi
I have 10 Grain, each of which uses 2 GB of RAM.
I have 5 nodes in Kuber cluster, which has a silo on each node.
With what strategy can I activate exactly 2 grain on each silo? to balance the consumption of resources.
@ReubenBond

Please refer Grain placement feature.
Intuitively, You can use hash-based placement strategy.

I'll drop my opinion here.

  • Only looking at a RAM is not a good indicator for balancing resource consumption.
  • Designing a Grain holds huge amount of RAM is not recommended.