Orleans Node Interleaved Upgrade Causes Placement Strategy Not to Update
egmkang opened this issue · 0 comments
egmkang commented
In an Orleans cluster, we have two types of grains: GrainA and GrainB. GrainA is responsible for activating instances of GrainB. By default, GrainA uses the default placement strategy, while GrainB uses the PreferLocalPlacement strategy. Due to having only one instance of GrainA, the load distribution is highly imbalanced. As a solution, we decided to remove the PreferLocalPlacement strategy from GrainB and switch to a random placement strategy.
Update Steps:
- Old Cluster Configuration (GrainB uses PreferLocalPlacement strategy):
- Migrating to New Cluster:
Shut down old Node 1, wait for a few seconds, and then start new Node 1.
Shut down old Node 2, wait for a few seconds, and then start new Node 2.
…
Shut down old Node N, wait for a few seconds, and then start new Node N. - New cluster can work now.
However, after these steps, it was observed that GrainB instances activated by GrainA were still using the PreferLocalPlacement strategy, which was not the expected behavior.