FPM Controller Support
FPM cli supports communication with fpm controller. This is an optional feature, and is only available when
controller
feature is enabled, which is not enabled by default.Controller CommunicationWhen controller
feature is enabled, fpm serve
will first communicate with the FPM controller service’s /get-zip/
API.
Controller Communication
When
controller
feature is enabled, fpm serve
will first communicate with the FPM controller service’s /get-zip/
API.FPM Controller Service EndpointThe FPM Controller Service’s enpoint is computed by using environement
variable FPM_CONTROLLER
, which will look something like this:
https://controller.fifthtry.com
, with the API path.
FPM Controller Service has more than one APIs: /get-zip/ and /fpm-ready/.
The FPM Controller Service’s enpoint is computed by using environement
variable FPM_CONTROLLER
, which will look something like this:
https://controller.fifthtry.com
, with the API path.
FPM Controller Service has more than one APIs: /get-zip/ and /fpm-ready/.
/get-zip/
Through an environemnt variable FPM_INSTANCE_ID
, the fpm serve
will learn
it’s instance id
, and it will pass the instance id to the get-zip
API.
The API returns the URL of a package to download. The URL points to a zip file.
FPM will download the zip file and unzip it in current directory. The current
directory will contain FPM.ftd
and other files of the package.
FPM will then calls fpm install
on it.
/get-zip/
Through an environemnt variable FPM_INSTANCE_ID
, the fpm serve
will learn
it’s instance id
, and it will pass the instance id to the get-zip
API.
The API returns the URL of a package to download. The URL points to a zip file.
FPM will download the zip file and unzip it in current directory. The current
directory will contain FPM.ftd
and other files of the package.
FPM will then calls fpm install
on it.
/fpm-ready/
Once dependencies are ready fpm
calls /fpm-ready/
API on the controller. The API will return with success, and once it is done fpm will start receiving HTTP traffic from the controller service.
/fpm-ready/
Once dependencies are ready
fpm
calls /fpm-ready/
API on the controller. The API will return with success, and once it is done fpm will start receiving HTTP traffic from the controller service.