Overview
Table of Contents
The Job AgentBatchInstaller reads a xml configuration file and creates orders for the job chain to setup/update agents. For each agent there is an entry in the configuration file.
The job chain for update/installation of one agent has the four nodes:
TransferInstallaionSetup
: To transfer the setup jar file to the hostTransferInstallationFile
: To transfer the generated xml setup file to the hostShutdownScheduler
: To shutdown Job Scheduler if running using ssh.PerformInstall
: To start the installation using ssh.
You will find the xsd-schema for the configuration in config/scheduler_agent_installations.xsd
The files have the following structure
- installations
- global
- installation
- installation
In the global entry, you specify the values which are used for all installation items. The installation items can overwrite these values. There is one installation item for each agent. You can make use of substitution in the values of the entries.
Example:
Code Block | ||
---|---|---|
| ||
<serviceId>scheduler_agent_${host}_${service_port}</serviceId>
|
The global sections have the following entries:
Entry | Description |
---|---|
serviceId | The JobScheduler ID of the agent. This ID must be unique. You get a unique value by adding host and port to the value of the ID. |
licence | The license key for the agent. Use the same key as you have used for your main JobScheduler. If you are using the GPL license, copy your default license key from the main JobScheduler sos.ini file into the sos.ini file for the agent. |
servicePort | The port, the agent is listening. For example 4445 . You can use the same port for each agent on different hosts. |
serviceAllowedHost | The IP address or the host name of the Master JobScheduler. |
installPath | The path to install the agent. Recommended value: /opt/sos-berlin.com/jobscheduler . |
UserPathPanelElement | The path with the configuration files of the agent. Recommended value: /home/<user>/sos-berlin.com/jobscheduler |
ftp | Specifies the ftp file transfer protocol. |
ftp.user | The user for the ftp login. |
ftp.password | The password for the ftp login. |
ftp.localDir | The location of the setup files.This is scheduler_agent.jar and the generated xml installation files. |
ftp.remoteDir | The location on the server where the setup files should be transferred. |
ftp.port | The port for the ftp connection. Default value: 21 . |
ssh | Specifies the ssh connection. |
ssh.user | The user for the ssh login. |
ssh.password | The password if using password authentication. |
ssh.sudoPassword | The password for the sudo user. This can be used in the command to enable the sudo login. |
ssh.authMethod | The authentication method can be password or publickey . |
ssh.authFile | The authorization file with the key if authMethod is publickey . |
ssh.port | The port for the ssh connection. Default value: 22 . |
ssh.command | The command to perform the installation. The recommended command is: |
Example for xml configuration file:
...
language | xml |
---|---|
collapse | true |
...
Installer provides a solution:
- for installing and updating JobScheduler Universal Agents.
- which allows the installation or update of any number of Agents on multiple Agent servers.
Use Cases
The following articles describe the diverse Use Cases a user could face regarding an installation or update of JobScheduler Agents and how to use the Agent Batch Installer solution in each case:
Excerpt |
---|
|
- Batch Installation - Use Cases - Additional Installations: Installing JobScheduler Agents in an environment in which a number of the Agents have already been installed and where the new Agents are to be installed on a server which already has at least one Agent. The environment can be summarized as having the following characteristics:
- A JobScheduler Master is up and running.
- A number of JobScheduler Agents have already been installed on different Agent servers.
- At least one additional Agent is to be installed on a server which already has an Agent installed on it.
- The new Agent(s) will be operated with the same user and installation path as at least one of the Agents already installed on an Agent server.
The new Agent will be identified by its listening port which will be unique for the server which the Agent is being installed on.
Reference Documentation
For any detailed information about:
- Jobs, job parameters and job chains used for the Agent Batch Installer
- Customizing the jobs, job chains and the configuration files needed for the Agent Batch Installer to work
please have a look at the article Batch Installation - Reference Documentation.