Skip to main content
Question

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


raaaju1990
Contributor
Forum|alt.badge.img+6

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

richardatsafe
Safer
Forum|alt.badge.img+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\\"}"


raaaju1990
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 1, 2022
richardatsafe wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings