Categories

Versions

Update an active deployment

An update of an active deployment can be done in three steps:

  1. Download a new deployment from RapidMiner Server
  2. Remove the currently active deployment from the Scoring Agent
  3. Upload the new version of the deployment

How to remove an active deployment is described below.

Remove a deployment

A deployment can either be removed by file operation or via REST service.

Via File

If you want to remove a deployment via file based operation you need to delete the deployment file in the$SA_HOME/home/deploymentsdirectory. If the Scoring Agent is already running you will need to restart it, as the changes will only be applied during restart.

Via REST Service

A deployment can also be removed by calling a specific REST service. The benefit of using REST is that the Agent does not need to be restarted, as the request is immediately processed. The URL of the remove deployment service is defined ashttp://$SA_HOST/api/v1/admin/deployments/$basePath. Where

  • $SA_HOSTis the host name of the Scoring Agent (e.g.localhost:8090)
  • $folderNameis path of the deployment which should be removed (e.g.score-fraud)

The following旋度command will remove the deployment:

curl - x删除http://localhost: 8090/api/v1/admin/deployments/score-fraud