How to control "spraying" of cache items?

For a partitioned cache (no backups), is there a way I can control which node a cache item goes to?
I have, say, 100,000 items I need to process on a 3-node cluster using an agent. As I am loading my cluster with the cache items, I wish the 20,000 "red" items to go to Node A, the 50,000 "blue" items to go to Node B and the remaining 30,000 "green" items to go to Node C. Is this possible? I read about Partition Affinity but that seems more geared towards ensuring affinity for computation after the cluster has been loaded. I wish to be able to control where a cache item is headed during loading - say a hash-based spraying policy or round-robin, or based on item key, etc.
One reason why I might want to do this is to send items that are likely to be computationally intensive/have strict SLAs to beefier nodes.
Thanks

Upon further digging, I came across com.tangosol.net.partition.KeyPartitioningStrategy. It seems like this is exactly what I need. However, when I implement this interface and return member.getId() as the return value for getKeyPartition(), it doesn't seem to have any effect. All my keys are still assigned to the local node.
Is this interface "experimental" in 3.1 and not actually being used in determining cache item target location?
I am evaluating the master-worker pattern and intend to break up the work so that work for large clients is processed on more powerful machines so that they finish quickly. For this, I need to be able to send work to specific clients. Since the agent and data must be located on the same node for optimal performance, it would be nice for me to be able to control where my data ends up. Is there ANY way around this?

Similar Messages

  • How to get notified when cache items disappear?

    Let's say I have two JVMs in a partitioned cache with no backups (backup_count=0).
    As cache items are inserted, roughly 50% of the items go to JVM1 and JVM2 each.
    If JVM2 has a violent death, all the cache items in JVM2 are lost forever. Is there a way to know in JVM1 which cache items are lost? I tried using a MapListener in JVM1 on the backing map but it doesn't get notified when JVM2 dies. Using MemberListener would tell me that JVM2 died but it wouldn't tell me which cache items were lost.
    Is there a way to know the cache items that were lost in the above scenario?
    Thanks
    Ghanshyam

    Ghanshyam,
    Unfortunately currently there is no generic functionality that would allow you to know what entries were "lost".
    Regards,
    Gene

  • How to control FONT in list items?

    What can I do in ApEx to control the font of the items in a list?
    I have read other postings here on controlling font size on various items,
    and I have tried every way I can think of to code a #TEXT# statement in various places on the DHTML Tree template.
    I have not been able to change the font size for a DHTML Tree list item.
    I have coded the: &lt style type="text/css" &gt td.t12header (font-family:"Times New Roman";font-size:20px;) &lt/style&gt in the Page Definition / Edit Attributes / HTML Header section, and this DOES alter the font characteristics for the DHTML Tree list heading.
    I see in the generated page source that there are two other CSS labels, "t12body" and "dhtmlTree" on the &lttr that includes the text for the list item, but adding a: td.t12body... or td.dhtmlTree... entry in the &ltStyle ... block does not alter the font of the list item name. I have tried a few other things too, but no luck.
    What entries, and where, can I add that will allow me to alter the font size of a list item?

    Got it.
    The following style block, placed in the HTML Header section in the Page Edit page for the page that has the LIST on it, will control the features of the LIST (a dhtml Tree list in this case):
    (LT)style type="text/css">
    td.t12Header {font-family:"Times New Roman";
                  font-size:50px;
                  font-style:italic;
                  color:blue}
    .dhtmlTree a {font-size:20px;
    color:green}
    (LT)/style>
    The td.t12Header entry controls the characteristics of the LIST header;
    The .dhtmlTree a entry controls the characteristics of the LIST elements.

  • How to limit the number of items that a list control can hold?

    Hi,
    I am using a Flex3 List control for one of my projects.
    I add drag & drop functionality to it, so that i can drag & drop elements from one control to another.
    How to limit the number of items that a list control can hold / can be dropped in a list control ?
    - Sen.

    1. Listen for the dragdrop event on the control you are dragging onto.
    2. check the length of the items in the dataprovider - if it exceeds your maximum override the default drop action with e.preventDefault(); (assuming you used e for the event on the handler).
    Regards,
    Mark.

  • How do we control who can approve items in a list?

    We are building a referral bonus list that needs to go through 4 levels of approval before being paid out.  I've created the workflow, but I can't figure out how to control who is allowed to approve it.  For example, it would be bad if an employee
    can enter the item, and then approve it as the Manager, Director and VP so that Finance gets notified and puts it on his check.
    How can I set it so that only management-level personnel are able to approve/reject specific items within the list?
    John

    Hi John,
    If you are using a custom list as referral bonus list, you can use the PowerShell to enable the option "Create items and edit items that were created by the user" (you
    can check if you need to set "Read items that were created by the user" ), then all users could only edit his own created items, then you grant "Manage lists" permission
    to Manager,Director and VP on this custom list and they will be able to view and edit all items.
    http://www.hersheytech.com/Blog/SharePoint/tabid/197/entryid/28/Default.aspx
    If you want only Manager, Director and VP to be able to approve/reject the Approval Workflow task items, you need to grant them Contribute permissions or higher on Workflow Tasks list, and remove all others' Contribute permissions.
    http://sharepoint.stackexchange.com/questions/35619/what-type-of-permission-user-needs-in-order-to-approve-workflow-task
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to connect switch controls to float PLC items ?

    The AB PLC float items are 32 bits, but the LV boolean variables are 8 bits!
    So how can I connect switch controls to these float items???
    Thanks in advance

    Check this
    http://forums.lavag.org/Industrial-EtherNet-EtherNet-IP-t9041.html
    Best regards
    Siva
    [email protected]

  • How to control po item from pr can't been changed manually?

    when i create po via pr. the item can been modified.it is not permitted. how to control the behave in system.

    hi
    while creating a PO wrt PR if the user changes the item then we will get the warning Purchase requisition &, item &, has a different material number but we will not consider it.
    if we do not want to continue
    goto SPRO - MATERIAL MANAGEMENT - PURCHASING -ENVIRONMENT DATA -DEFINE ATTRIBUTES OF SYSTEM MESSAGES -SYSTEM MESSAGES -VERSION 00 APPLICATION AREA 06 NUMBER 56 MESSAGE TEXT Purchase requisition &, item &, has a different material number , u change the categeory from warning to ERROR
    then automatically when ever ur doing po wrt pr when we change the item automatically the system issues an error message

  • How to control po item which come from pr can't been changed manually?

    when i create po via pr. the item can been modified.it is not permitted. how to control the behave in system.

    hi
    while creating a PO wrt PR if the user changes the item then we will get the warning Purchase requisition &, item &, has a different material number but we will not consider it.
    if we do not want to continue
    goto SPRO - MATERIAL MANAGEMENT - PURCHASING -ENVIRONMENT DATA -DEFINE ATTRIBUTES OF SYSTEM MESSAGES -SYSTEM MESSAGES -VERSION 00 APPLICATION AREA 06 NUMBER 56 MESSAGE TEXT Purchase requisition &, item &, has a different material number , u change the categeory from warning to ERROR
    then automatically when ever ur doing po wrt pr when we change the item automatically the system issues an error message

  • How to control Payment Block field at line item level

    Hi Experts,
    Could anyone please let me know how to control payment block and payment method fields at line item level.
    I have checked field status at posting key (OB41) and GL (OB14) level but didn’t get any parameter to control these fields.
    I need your expert guidance.
    Regards,
    Mohammed Kalim

    Hi Mohammed,
    Please go to OB24/
    Select * (for all co.codes) default field status.Or Create new entry and input your co.code, Save it. Come back to co.code.
    Go to payment transaction
    Payment block and payment method display can be controlled from here for vendor master data
    Thanks and good luck.
    Regards,
    Sam

  • How do I look at individual items in cache history in Firefox 7.0.1?

    How do I look at individual items in cache history in Firefox 7.0.1? I tried using about:cache. I clicked on "List Cache Entries" (about:cache?device=disk) for the Disk Device Cache. I was looking for a quick solution, but Firefox was not responsive even 10-15 minutes later. I finally had to kill it off in Task Manager. I think there were about 75,000 entries. (only 1,309 now). I used to use a plug in called Cache View, but this probably does not work with the current version. Is there a very quick way to do this? I might need past data, that I forgot to save, and this might be the only way to get it.

    You can download this CacheViewer Version 0.7b
    *https://addons.mozilla.org/en-US/firefox/addon/cacheviewer/versions/
    You can either edit the file install.rdf in that zip archive or use this extension to make Firefox install it via File > Open File.
    *Add-on Compatibility Reporter: https://addons.mozilla.org/firefox/addon/add-on-compatibility-reporter/
    *http://kb.mozillazine.org/Editing_an_add-on_to_change_its_compatibility

  • How to control Changing of item category in sales order Manually

    Hello Gurus,
    How to restrict manual changing of item category in sales order?
    Reason for it:
    When ever they want to give some free goods to customer , they are changing Item category in  Standard Sales order at item level  then deliverying free goods to  customer
    looking for your inputs
    Thanks in advance
    Regards
    Venkat

    Hello,
    There are two possible ways:
    1. In Item Caterogy Determination remove the Manual Item Categories so that system will determine the Item Category only from defined options.
    2. Use T-SHDO - create Screen Variant & make the item Category Feild as Display only.
    Hope this helps..
    Thanks,
    Jignesh Mehta

  • How do I clear the cache in my MacBook Pro 10.9 Maverick

    How do I clear the cache in my MacBook Pro 10.9 Maverick operating system? Can anyone provide step-by-step instructions. I'm a big dummy when it comes to this sort of thing.

    Hey DrSteveMc,
    Thanks for the question. The following resource outlines where the cache folder is stored. Note that the Library folder is hidden by default in OS X Mavericks. To access this folder, hold down option when clicking the Go menu in Finder:
    OS X Mavericks: What is the Library folder?
    http://support.apple.com/kb/PH14330
    Mac OS X: How to troubleshoot a software issue
    http://support.apple.com/kb/ht1199
    If the issue does not appear to be related to preferences, a login item, or a kext file, and still persists in Safe Mode, there may be an issue with a cache file in your home folder:
    1. From the Finder's Go menu, choose Home.
    2. Open the Library folder.
    3. Drag the Caches folder to the desktop.
    4. Attempt to reproduce the issue.
    5. If issue is resolved, drag the Caches folder to the Trash.
    6. If issue persists, from the Finder's Go menu, choose Go To Folder.
    7. Go to this folder: /Library
    8. Drag the Caches folder to the desktop.
    9. Attempt to reproduce the issue.
    10. If issue is resolved, drag the Caches folder to the Trash.
    11. If issue persists, go to step 4.
    Thanks,
    Matt M.

  • Re:- How to see customer/vendor open items for profit center wise

    any one help me regarding : How to see customer/vendor open items for profit center wise. That is possiable or not please suggest to me. I am using 4.6c version .

    Run the report from Tcode FBL1N for vendor open item and from FBL5N fron Customer open items.
    When you get the report, click on Change Layout icon ( or press Control + F8 from keyboard), search Profit Center fron the Table of Hidden fields on the right hand side. Move that field to the Left hand side table. Click ok, now you should be able to see the Profit Center column in your report.
    You can save this layout by clicking on the Save Layout icon ( or press Control + F12 from keyboard)
    Next time you can choose the saved layout by clicking on the Select Layout icon ( or press Control + F9 from keyboard)
    Regards
    Dharmveer

  • How to Control Cheque value not exceed the PO Value

    Dear All,
    My client requirement of the how to control cheque make above the PO Value. My client make the PO before MIRO puchase dept. make the Advance payment request and send to Accounts Dept., Accounts dept. make the payment against the Down payment request. After that MIRO has been done full value open item show in vendor line itme. Account people clear the payment against the invoice. They run the APP & clear all payment.  But after that Purchase dept. make the advance payment request against same PO and send to accounts dept., Accounts dept again make the payment against down payment request. This is request to how to control that.
    Thanks in Advance
    (CSB)

    hi,
    here in this case you should change the Business Process to have better control over the system.
    Make the PO then make the Down Payment Request and make the payment.
    check is there any user exit available while making the down payment request which should not be made more than the po value.

  • In  BDC how you handled header data and item data

    In  BDC how you handled header data and item data

    Raja,
    Can you be more clear ?
    Usually you load the header data one and then loop at the item data and then load the item data.
    This example should help you.
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    Regards,
    Ravi
    Note - Please mark all the helpful answers

Maybe you are looking for

  • Capturing a VHS tape into FCP

    Hello I have a short VHS tape I need to get into FCP-6 and onto a DVD.  I have my old Canopus ADVC-100 so I know the hardware. My question is can I record directly to the timeline or do I need to log and capture?  Reading the manual says something ab

  • Applying Spry Style Effect to Class

    Trying to get the highlight effect to apply to all members of the CSS class "highlight". What am I doing wrong??? <html> <head> <script src="SpryEffects.js" type="text/javascript"></script> <script type="text/javascript"> Spry.$$(".highlight").forEac

  • Can't listen to bought itunes songs

    Hey, when I try to listen to an itunes song I just bought, meaning when i click on the song, a sign appears saying my "macbook is not activated to play this song". If I want to activate my macbook I should fill in apple ID and passowrd. So I do so. T

  • Need help in scripting

    Hello, Is it possible to check whether the browser is enabled for Java Script in JSP?. If yes, then pls give me how to check with some example. Regards Anand

  • Lightroom 5: Export jpeg Ordner Struktur

    Hallo, wie schön - ich habe mir LR5 gekauft und auch gleich die vielen tollen Möglichkeiten genutzt, viele Fotos zu bearbeiten, croppen, Licht zu korrigieren etc - und das jetzt alles in einem Programm statt in vielen. Das Problem ist jetzt nur: Jetz