cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Execute OData Requests in Background Method Server

xolomon
14-Alexandrite

Execute OData Requests in Background Method Server

Dear all,

the requests to the OOTB and Custom OData Rest Endpoints are executed per default in the MethodServer context. We would like to implement a Custom Odata Rest Endpoint which should be executed in the Background Method Server Context, due to the concerns regarding the performance. Is there a way to configure \ customize the Odata Rest Endpoints such that they can be executed in the Background Method Server context?

 

We have a Cluster Configuration with Dedicated Cluster Master and LoadBalancer Hardware. 

 

Thanks in advance.

9 REPLIES 9

This is a great idea! It would be awesome to have a dedicated BG method server specifically for the ODATA requests. I don't know if this is possible or not, so please reply if you have any info.

rhart
16-Pearl
(To:xolomon)

It would be great, I hope there’s a solution. 
Perhaps it’s possible to find out which queue executes the WRS, then you can change the group which the queue belongs to, and set the property (wt.queue.queueGroup) of the node in your cluster which will process that queue group. WVS and ESI queues are assigned to the bgms in a cluster this way, maybe the same logic can work for WRS?

Florent
15-Moonstone
(To:rhart)

Well, correct me if I'm wrong but WRS are invoked through URLs, therefore the calls / requests are treated by a foreground method server.

Since your environment is a cluster, then you can have a dedicated node for those requests.Of course, you would have to trick the hosts file of machines that send the requests to bypass the LB.

 

Otherwise, but I didn't think much on this, having a dedicated Apache (listening another port) that forwards to a dedicated foreground MS.
Not sure it's doable though.

 

Florent ROUSSEL
www.4cad.ca

Windchill 13.0.2 ff support asynchronous requests following OData standard. I.e., for requests taken a longer processing time, an OData request can be submitted for background processing, the response will provide a URL which is to be used for polling for the result.

WRS uses Windchill Queues for asynchronous processing, in a new dedicated queue called WRSAsynchProcessingQueue. The dedicated Queue can be bound to a BackgroundMethodServer of your choice.

xolomon
14-Alexandrite
(To:MalteSiefkes)

Yes, I got the info about WRS supporting asynchronous requests. I will give a try.

 

Thanks for the update. 

Thanks for the update.

 

I don't see the new WRS queue in Windchill queue management, did I understand correctly?

 

wrsqueue.png

For help on this functionality please see https://support.ptc.com/help/windchill/r13.0.2.0/en/#page/Windchill_Help_Center/WCRESTFramework/WCCG_RESTAPIsODataAsynchRequestProcess.html.

The queue gets created dynamically during your first request.

That’s working really nice, thanks for the hep

Announcements

Top Tags