Categories

Versions

Manage the endpoint infrastructure

Before the arrival of a container-based architecture, the scoring agent was a free-standing entity; now, depending on yourendpoint infrastructure, it may bestandaloneor it may be packaged within aDocker image.

When managing the endpoint infrastructure, recall that configuration occurs at multiple levels, similar to the situation forRapidMiner AI Hub.

  1. The landing page

    On RapidMiner AI Hub, there is anEndpoints landing pagefor Web API endpoints.

  2. The scoring agent's REST API

    The complete REST API documentation of the Scoring Agent is available asOpenApi 3.0specification and is published onSwaggerHub.

  3. The platform's environment file

    If your scoring agent is containerized, you can configure it via the环境文件fordocker-compose.

    See the table of system settings for

  4. Within containers

    If your scoring agent is containerized, and you want to modify its files, you must firstget access to the container.

The landing page

Web API endpoints

From thelanding page of RapidMiner AI Hub, selectProjectsand locate theEndpointspage:

Note that this page only displays theWeb API endpointsprovided by RapidMiner AI Hub'sWeb API agents. Regularendpoints, provided by regularscoring agents, are not included in this list.

Within this list, you can takeEndpoint Actions:

as well asDeployment Actions-- note however that when you edit or delete a deployment, your action affectseveryendpoint connected with thatdeployment.

If you only wish to edit or delete one specific endpoint, not the whole deployment, you must

  1. first edit the deployment, then
  2. edit or delete the endpoint in question.

Editing files within containers: the home directory

When the scoring agent is containerized and you want to make changes, you must first get access to the container.

  1. Find the container runningscoring-agent:

    $ docker container ls | grep rapidminer-scoringagent CONTAINER ID IMAGE 63b24f5fb5c9 rapidminer/rapidminer-scoringagent:10.1.3
  2. Enter the running container:

    $ docker exec -it  bash
  3. Within the container, find the home directory

    rapidminer@scoring-agent:/$ ls scoring-agent/home config deployments log pid resources tmp
  4. Edit the file of interest with an available editor, such asnanoorvim.

  5. Exit the container:

    rapidminer@scoring-agent:/$ exit
  6. Restartscoring-agent:

    $ docker-compose restart scoring-agent