主权项 |
1. A device, comprising:
one or more processors to:
store virtual identifier information indicating a plurality of virtual identifiers associated with a plurality of servers,
the virtual identifier information associating a virtual identifier, of the plurality of virtual identifiers, based on a weight associated with a server of the plurality of servers;receive an object identifier identifying an object to be processed by at least one of the plurality of servers;determine a size of a window based on the weight;select a subset of the plurality of virtual identifiers based on the size of the window and the object identifier;calculate hash values for the subset of the plurality of virtual identifiers based on selecting the subset of the plurality of virtual identifiers;determine a particular virtual identifier associated with a hash value that satisfies a particular condition,
the hash values including the hash value, andthe subset of the plurality of virtual identifiers including the particular virtual identifier;select a particular server associated with the particular virtual identifier; andsend an instruction to the server to process the object. |