Work Manager and the Invocation Service - Items Queued?

Hi,
After reading the user guide & javadocs and searching this forum, I can't find documentation on how an Invocation Service works behind the scenes. I'm implementing a WorkManager (which sits atop an incovation service) with the goal of using some nodes in my Coherence cluster as essentially a distributed thread pool for parallel execution of work.
I want to know:
a) How work items are queued when all threads dedicated to the WorkManager are in use. I assume a cache is spawned to handle this, but if a queue is used, how do I configure the depth?
b) Can thread count be throttled dynamically? The post linked below seems to have tried it, but is there no cleaner way since the service is configured prior to startup? Maybe this has changed since 3.4.
How Can a Service's Configuration Be Modified Dynamically
Thanks

To answer Luk's question - yes the change in thread count took affect without me having to restart the service. I have only changed cache service thread counts via JMX but I assume invocation services would be the same.
Roberto,
Regarding the queue size - I suspect this is limited by the amount of heap your process has. Presumably Coherence uses some sort of queue structure internally to hold the requests and this is likely only limited by memory - or maybe number of entries if it uses an int for its size.
I am sure if you try hard enough you could blow the queue size if you could somehow push a sufficiently large number of slow running tasks into the server and even eaiser if your invocables contained a lot of data themselves so they took up more heap.
It would be very simple to write a test the just fires in invocables at a fast enough rate and see what happens.
JK

Similar Messages

  • Oracle service bus: Work manager and Throttling

    Hi
    Flow is PS_C--->BS_A (based on PS_A)
    I created a http protocol based proxy service PS_A and a business service based on PS_A, i.e. BS_A.
    Now this BS_A is deployed on four different managed servers. I have implemented failover so at a time copy of only one of the managed severs will be accessed by multiple external clients through PS_C. To say all will hit Managed server-1 copy of BS_A. If Managed server-1 is down then it will hit Managed server-2 copies of BS_A.
    I have created a workmanager named "CustomWorkManager" which has MaxThreadConstraint=1. PS_A has not enabled CustomWorkManager. i.e. PS_A works under default policy.
    My goal is to process only one request at one time through BS_A.
    In business service, BS_A I can see work manager and throttling options.
    My question is this:
    Scenario I: I make throttling enabled and set maximum concurrency=1 for BS_A
    Scenario II: I apply CustomWorkManager to BS_A
    Scenario III: I do both Scenario I and Scenario II
    What is the difference between I, II and III?
    Fundamentally, what is the difference between throttling with maxConcurrency=1 and MaxThreadConstraint of workmanager=1 for a http business service?
    Thanks and Regards,
    Swapnil Kharwadkar

    @Abhishek: Thanks for descriptive reply.
    @Anuj: Thanks for links, I am having a look..
    Use case:
    What is the target app/service? Is it DB, HTTP or anything else?
    Back end: Amadeus web services
    Role of DB:
    1. It will store data to attach transaction context to a request. This is to call more than one services in the backend - it is necessary for backend to understand in which context services are being invoked.
    For example, if I need to make PNR related changes, I need to invoke service X and fetch transaction context from back-end. The transaction specific identifier (read session) will be received in header part. After retrieve suppose I need retrieve PNR, I will invoke service Y. When I invoke, I need to put the transaction specific header part received in response of service X and then change body as per request format of service Y (read the response header of X will be the same as request and response header of Y) which will actually make changes and commit in the backend. (So back-end will understand that service X and Y are invoked as a part of single transaction, and transaction can be identified through logs)
    3. Once my X+Y call is over and transaction is committed, the context for transaction specific part received in header to the transaction is removed from back-end. Then I can use session again for the next transaction.
    4. To re-use session I am storing it in DB and retrieving as per need for each call to Amadeus.
    Problem is, it is absolute necessary for all transactions which are being processed simultaneously, to have unique session in header.
    For example,
    I do the following:
    Request 1: receives session from service X, uses for service Y. After use, inserts session in DB. Now context for that session is removed from back-end.
    Request 2: looks for session DB, puts in header and invokes backend. Context for Request 2 is attached to session retrieved from DB.
    Request 3: looks for session DB, puts in header and invokes backend. Context for Request 3 is attached to session retrieved from DB.
    As you can see if Request 2 and Request 3, pick up the same session from DB and invoke back-end, back-end services won't be able to understand which request the session belongs to, and will fail both requests. Ideally Request 2 should retrieve it from DB use for itself and Request 3 should make a call to service X at back-end to receive context. With this new context Request 3 should proceed for transaction.
    Why are you using a BS to call from one Proxy to another Proxy?:
    1. To interact with DB, I use DBAdapter business services with QueryByExample/Update/Insert operation.
    2. My PS_A is proxy which orchestrates these operations. (Read: SelectandUpdateDBForSessionRetrieve, UpdateDBWhenTransactionOver functionaries) Since there are two admin and four managed servers, all copies of PS_A will try to access DB simultaneously, and concurrency will fail.
    3. Hence I made BS_A on the basis of PS_A. BS_A is deployed on all four managed servers, used Load Balancing Algorithm as "None" and gave hard-coded urls of four managed servers in sequence of MS1, MS2, MS3 and MS4.
    4. Idea is if MS1 is ok, all requests will go to BS_A of MS1 only, and if somehow if I make it single threaded *(Read from DB+mark retrieved data as "in use" so other request can not use it)*, concurrency issue will not arise. In case MS1 is down, the requests will automatically forwarded to MS2 and since that is also single threaded, concurrency issue won't arise. In short both fail-over and concurrency can be achieved with BS_A making out of PS_A.
    The problem as you have correctly pointed out, is that OSB is stateless and one request has no relation with another. Somehow, I need to make every retrieve/update/insert to database as single threaded, i.e. once one is done then another should not be done at the same time. Else entire point of this pooling will fail.
    Please share any thoughts you might have. Even another approach to handle this single threaded need will do.
    Thanks and Regards,
    Swapnil Kharwadkar

  • MS Exchange server 2010 messages will be placed in the poison queue and the transport service will crash

    Can any1 please help.
    We have Exchange server 2010, we just upgraded it with SP3 and then the issue occers that we were unable to send n receive mail outside of our LAN...i mean from gmail or hotmail..
    we have then updated with CU4 which is the latest but still messages will be placed in the poison queue and the transport service will crash.
    We have disabled the antivirus also but issue remains same.
    We have CAS 1 n 2 as of Clustering environment and we upgraded sp3 for both. but we did CU4 on CAS1 to see the results to resovle this issue but no luck

    Hi,
    Did you get any NDR message now when you send a email to outside? And vice versa.
    In addtion,I recommend you telnet to port 25 to test SMTP communication.
    If any question,please feel free to post here.
    Thanks.
    Niko Cheng
    TechNet Community Support

  • Why has my 8x8 desktop app on my Macbook Pro running OS X Yosimite 10.10.1 suddenly stopped working while the app on my iPhone and the online service both work fine?

    Why has my 8x8 desktop app on my Macbook Pro running OS X Yosimite 10.10.1 suddenly stopped working while the app on my iPhone and the online service both work fine? Is this because of some recent software update by Apple? 8x8 support acknowledges issues with no current work-arounds? The 8x8 desktop app worked until early December, then quit. I've deleted and re-downloaded the app, but no difference.

    The solution is :
    1. Delete iPhone configuration utility. Just drop it to the trash
    2. Run
    sudo rm -rf /private/var/db/receipts/com.apple.pkg.iPhoneConfigurationUtility.*
    rm -rf ~/Library/Preferences/com.apple.iPhoneConfigurationUtility.plist*
    3. Delete the whole folder: /System/Library/Extensions/AppleUSBEthernetHost.kext
    4. Reinstall iTunes (just over the previous one)
    5. Restart
    incase of any issues, visit this thread: https://discussions.apple.com/thread/3725328?start=15&tstart=0

  • I havea WRT350N Wireless Router and the DynDNS Service is...

    I havea WRT350N Wireless Router and the DynDNS Service is not
    resolving the correct Internet IP Address, is resolving to a local IP and
    I see it on the DDNS Page on my Router Setup Screen.  I'm
    trying to connect to my DVR from a Remote Site with my DynDNS
    Client in my computer but I could not do it.  Port 80 (my DVR WAN
    Port) is Open and redirected to my DVR local IP, my DynDNS Account
    is working fine but theres no way that I could access my DVR or even
    my Router if I activate the Remote Management Capabilities.

    The best source to ask is HughesNet. According to their web site the HNS7000S is a router. Instructions how to set up a home network can be found here.
    I cannot find instructions how to set up DDNS on the HN70000S router. The suggested setup in the KB article link above won't help you with that either. I don't know whether it is possible with HughesNet to put the router into bridge mode and set up the WRT for internet. It may not be possible at all. But you have to check with HughesNet.

  • What is the recommended Delay/Latency between Call manager and The SRST setup

    Hi ,
    Need to understand the readability between the CUCM and SRST.
    What is the recommended Delay/Latency, Bandwidh  between Call manager and The SRST gateway setup.
    Regards,
    Velu S

    Hi Manish,
    I've been struggling to get this information and what I could understand from the SRND is that this 80ms is just related to the Intra-Cluster communications (Between Servers UCS), there is no relation with SRST Gateways:
    "The maximum one-way delay between any two Unified CM servers should not exceed 40 ms, or 80 ms round-trip time."
    From that I assume that the RTD between the SRST and the Cluster should be based on the affirmation below:
    "If a voice service is hosted across a WAN where the one-way latency is 200 ms, for example, users might experience issues such as delay-to-dialtone or increased media cut-through delays. For other services such as presence, there might be no problem with a 200 ms latency."

  • App Management and Subscription Settings service applications

    Hi,
    I am upgradind SharePoint 2010 services to SharePoint 2013. I have updated UPS, Metadata, Search, Secure Store and now I want to configure App Management and Subscription Settings service applications.
    For all upgraded services I used default IIS pool: 'SharePoint Web Services default'. But now I see that for App Management and Subscription Settings service Mifrosoft uses new iis pools in the configuration guide:
    http://technet.microsoft.com/en-us/library/fp161236(v=office.15).aspx
    Could you please advise if I can use defaulf pool 'SharePoint Web Services default' to configure App Management and Subscription Settings service applications?
    If not can I use one pool for both services or should I use separate pool for each service?
    Thanks

    You cannot move the STS. Also, certain SAs right farm admin rights. If the farm will leverage those SAs, I'd encourage you to create a new App Pool for just those SAs, rather than re-use "SharePoint Web Services Default" (to prevent these SAs from
    running under the Farm Admin).
    http://technet.microsoft.com/en-us/library/cc263445(v=office.14).aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • I am trying to connect a second monitor on my system so that I have one to work on and the other that I am projecting. Any ideas on how to do that?

    I am trying to connect a second monitor on my system so that I have one to work on and the other that I am projecting. Any ideas on how to do that?

    connect, then in SystemPreferences/Displays you can set the two as you want.

  • I have a .mac family account, a personal .mac account and separate iTunes id I use for my work iPhone and the associated apps.  How do I keep them separate in the iCloud change?

    I have a .mac family account, a personal .mac account and separate iTunes id I use for my work iPhone and the associated apps.  How do I keep them separate in the iCloud change?

    Welcome to the Apple community.
    Could you tell us a little more about what you want to do. Bear in mind that iTunes has nothing to do with your iCloud account.

  • I am a windows user that has converted to Mac and loving it but when I updated to Lion my wireless internet dongle would not work anymore and the Macbook Pro does not recognise the device at all so I am unable to reinstall it again. Any ideas

    I am a windows user that has converted to Mac and loving it but when I updated to Lion my wireless internet dongle would not work anymore and the Macbook Pro does not recognise the device at all so I am unable to reinstall it again. Any ideas would be greatly appreciated.

    Go to Finder > Preferences then select the General tab
    Make sure External disks is selected.

  • I lost my phone and the location service is off. Is it possible to turn it on from another device?

    I lost my phone and the location service is off. Is it possible to turn it on from another device?

    No.

  • The screen of my mac gets black, while the same the youtube works normally and the buttons maintain the blue color. What should I do?? It gets over after 5 to ten minutes and I only have it 2 weeks..

    The screen of my mac gets black, while the same the youtube works normally and the buttons maintain the blue color. What should I do?? It gets over after 5 to ten minutes and I only have it 2 weeks..

    Welcome to Apple Support Communities
    As this may be a hardware problem, make a backup of your files onto an external drive with Time Machine (if you have important files) and take the Mac to an Apple Store or reseller, or contact with Apple > http://support.apple.com/kb/HE57 You will get your Mac replaced or repaired for free.

  • Can someone please help, I have a dvd disk containing lecture videos, on a Windows pc it works fine, and the disk opens to the dvd menu. However on my macbook pro running Mountain Lion, it opens as a data disk, with video and audio in two seprate files??

    Can someone please help, I have a dvd disk containing lecture videos, on a Windows pc it works fine, and the disk opens to the dvd menu. However on my macbook pro running Mountain Lion, it opens as a data disk, with video and audio in two seprate files??

    You may need a 3rd party application to view the DVD in a wWindows format such as
    http://flip4mac-3.en.softonic.com/mac
    https://www.macupdate.com/app/iphone/5758/vlc-media-player

  • I FORGOT MY IPAD4(wifi) password and it got disabled now how can i recover it?? By the way the wifi is of and the location services and find my ipad are enabled now what can i do to recover it???? PLZ HELP!!!

    I FORGOT MY IPAD4(wifi) password and it got disabled now how can i recover it?? By the way the wifi is of and the location services and find my ipad are enabled now what can i do to recover it???? PLZ HELP!!!

    Entering your Wifi password will not - unless I'm missing something completely - disable your iPad. The only thing which will disable your iPad that I'm aware of is entering your passcode for iPad incorrectly multiple times.
    If this is the case then please see: http://support.apple.com/kb/HT1212
    If you have forgotten your password for your router the WPA or WPA2 key as it's also known as they you will need to log in to your Router and setup a new WPA(2) key.
    Regards,
    Steve

  • How long does it take for a cancellation fee to process? I just cancelled today and the customer service agent say the cancellation payment went through, but i see no charge on my credit card. On the website it say my cancellation is effective in march 16

    How long does it take for a cancellation fee to process? I just cancelled my annual subscription to adobe audition today and the customer service agent say the cancellation payment went through of $74.90, but i see no charge on my credit card. On the website it says my cancellation is effective in march 16, 2015. So when will i be charged?

    Hi ,
    I'm very sorry to hear of the problems you have had moving to pay as you go.
    Please can you give customer service a call and ask to speak to the pay monthly retentions team who will be able to fix this issue for you.
    Click here for contact details.
    Thanks
    James

Maybe you are looking for

  • Unable to view the active chartfield after upgrade from fscm 8.0 to 9.0

    The following ChartFields which were active in version 8 are not showing on the Journal Entry Page. Account DeptID Product ProjectID Is there any change in 9.0? Thanks, Bikash

  • How to get ALL photos off iPhone and into iMac?

    I hope I can describe this clearly. I have close to 1000 photos on my iPhone 5s, all in different albums.  I want to get ALL of them off the iPhone and backed up into my iMac so I don't lose them when I upgrade (which has happened before.) The albums

  • Error while uploading data in SAP (me01)using LSMW

    Hi All, I am using LSMW for the first time. I am trying to upload data to the Source List transaction (me01) using batch input recording. I created a new recording through LSMW itself. My source structure consists of 5 fields: <b>MATNR C(18) WERKS C(

  • Strange error in Discoverer calculated columns.

    Hi, I got a strange error in discoverer10g worksheet. In woksheet the calculated coulmns did not return data but in PL/SQL developer when I run the query taking from the Show SQL of Discoverer Worksheet it returns. Anyone please help me to resolve th

  • OBIEE Answers version 10 presentation variable

    How can I use in OBIEE Answers ( version 10.1.3.4.1) a (dashboard)presentationvariable in an other (dashboard)presentationvariable. I have one presentationvariable 'Gerecht'. The other presentationvariable #Instroom uses in the SQL(SELECT #Instroom F