Skip to main content

Cyware Orchestrate

Upgrade Agent Configuration from Console

You can update configurations such as agent polling schedule, maximum number of agent tasks, and agent credentials from the server console. This topic describes how to update the agent configuration using the server console.

Note

The .env file contains important configurations for the Cyware Agent to operate correctly. Ensure that you do not remove the .env file from the mount directory.

Steps

To update the configurations for Cyware Agent, do the following:

  1. Run the following command to go to the directory where the Cyware Agent is installed:

    cd <mount directory of Cyware agent>

    The default mount directory of the Cyware Agent installation is /apps/cyware/cyware_agent

  2. Open the .env file using the following command.

    vi <mount directory of Cyware agent>/conf/.env
    • To modify the Cyware Agent polling schedule, update the value of the CRON parameter. For example, 0 0/1 * 1/1 * ? *

    • To modify the maximum number of tasks executed by the Cyware Agent, update the value of the MAX_COMMANDS parameter. For example, 25

    • To modify the credentials of the Cyware Agent, update the value of BASE_URL, ACCESS_ID, and SECRET_KEY parameters.

  3. Save the updates to the .env file.

  4. Run the following command to apply the changes to the Cyware Agent configuration.

    bash configure.sh MOUNT_DIRECTORY=<mount directory of Cyware agent> IMAGE=<Code engine Image> DOCKER_NAME=<docker container name> MODE=restart