[infinispan-issues] [JBoss JIRA] Commented: (ISPN-232) add service to provide key that would map to the same (Specified) node

Mircea Markus (JIRA) jira-events at lists.jboss.org
Tue Oct 20 12:29:05 EDT 2009


    [ https://jira.jboss.org/jira/browse/ISPN-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12490576#action_12490576 ] 

Mircea Markus commented on ISPN-232:
------------------------------------

The service would need a way to integrate with the client code, that generates keys.

public void KeySupplier {
public Object getNextKey();
}

The service would filter (or group) the resulted keys based on the node
to which they would be dispatched by the hashing service.

Config params:
-- boolean flag indicating whether only local keys are kept vs. all nodes. Or perhaps a list of nodes for which keys are kept.
-- max size of the pool (per node)


> add service to provide key that would map to the same (Specified) node
> ----------------------------------------------------------------------
>
>                 Key: ISPN-232
>                 URL: https://jira.jboss.org/jira/browse/ISPN-232
>             Project: Infinispan
>          Issue Type: Feature Request
>            Reporter: Mircea Markus
>            Assignee: Manik Surtani
>
> background: in order to obtain a hashcode that maps to the current node, the way to go is to generate random keys and pass them to the hashing algorithm until the hash for one of them will match the node. This JIRA is about creating an async service to do that, so that the calling thread won't be blocked while this happens.
> -------------------- from an email discussion
> What about adding a service to asynchronously generate and pool a number
> of ids that map to a certain node (in our use case same node)?
> Advantage would be that the calling thread won't have to wait until we
> determine an appropriate value.
> -----------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list