TOPs Partition with random index
644 4 1- tyler.britton
- Member
- 4 posts
- Joined: June 2024
- Offline
Let's say I have two nodes, one with 5 work items (A B C D E) and another with 3 work items (A B C), how do I partition the work items of my first node with random indexes of work items from the second node? I can do a Partition by Attribute, but how would I find the maximum number of work items in the 2nd node from within the first node's pipe?
- alexwheezy
- Member
- 296 posts
- Joined: Jan. 2013
- Offline
- tyler.britton
- Member
- 4 posts
- Joined: June 2024
- Offline
- AslakKS
- Member
- 185 posts
- Joined: Feb. 2016
- Offline
- alexwheezy
- Member
- 296 posts
- Joined: Jan. 2013
- Offline
tyler.brittonYou could try using a Python Partitioner with a custom index that will have a random value for other items.alexwheezy
I think you can get a similar randomization pattern with Partition by Combination.
Hmmm I tried that, however it does not always match partitions between the two nodes. Also the partitioning is very linear, and not random.
-
- Quick Links