Question

How to change the number of dynamic engines via automation script ?


Badge +5

Hello,

I'm trying to rebuild FME server automatically. I take back up of the server (.fsconfig file) and use this when ever I try to recreate the server automatically using python script. But, I found that the fsconfig does not store the number dynamic engines which were configured previously. So, whenever I recreate server the dynamic engine has default value 0. Is there any way to change this number automatically without manually changing this figure ?

 

Thanks


2 replies

Badge +10

Hi @raaaju1990​ ,

 

Unfortunately, the current V3 rest API doesn't have a method for that, however, the tech preview v4 does.

 

Note: The V4 REST API is still under active development, so please expect changes to the current behavior. We do not recommend using the FME Server REST API V4 in production environments. You accept all risks of using Technology Preview materials whether or not the risks are foreseeable or reasonable.

 

V4 Curl Example:

curl -X POST "https://MyFMEServer.domain.com/fmeapiv4/enginehosts/MyFMEServer.safe.com/engines/scale" -H "accept: */*" -H "Content-Type: application/json" -d "{ \\"numEngines\\": 4, \\"type\\": \\"standard\\"}"

Badge +5

Hi @raaaju1990​ ,

 

Unfortunately, the current V3 rest API doesn't have a method for that, however, the tech preview v4 does.

 

Note: The V4 REST API is still under active development, so please expect changes to the current behavior. We do not recommend using the FME Server REST API V4 in production environments. You accept all risks of using Technology Preview materials whether or not the risks are foreseeable or reasonable.

 

V4 Curl Example:

curl -X POST "https://MyFMEServer.domain.com/fmeapiv4/enginehosts/MyFMEServer.safe.com/engines/scale" -H "accept: */*" -H "Content-Type: application/json" -d "{ \\"numEngines\\": 4, \\"type\\": \\"standard\\"}"

ok sure Thanks

Reply