To add Controller Service, follow the below steps in the create service page. To know more about create service, refer Adding Service.

Step I: Click on Controller from Add Services tab in Diyotta Manager explorer.

Step II: The Controller service can be configured in two ways.

Option I: Add and deploy a service - Choose this option, if you want to newly install the controller service on the host selected.

Option II: Auto Register - Choose this option, if the controller service service is already installed on the host and you want to register it. 

  • To create controller service you need to have the Node Manager on the same host where you want to install the controller service. To create a Node Manager Service, refer Adding Node Manager Service.
  • Controller will get enabled only when you have configured both the Controller Repository and Controller Broker service.
  • Controller Repository, Controller Broker Service and Agent are independent of each other and can be configured without any dependency.
  • Controller Repository, Controller Broker and Controller Service should be installed on the same Node Manager.

Let's illustrate Option I to see how to add and deploy a service.

Option I: Add and deploy a service

1. Select Add and deploy a service. Following fields are displayed.

  • Do you want to download package from repository - Choose 'Yes', if the installation file should be downloaded from the package repository. Choose 'No', if the installation file is present on the host where node manager needs to be installed. 

Note:

  • Package repository is a centralized location where all the installation files are managed. This is setup under Admin. For more information, refer Managing Package Repository
  • If the package repository is not already created, then click on the download icon next to the drop-down and it takes you to the Package Repository page.
  • Package Location on Host - This option is displayed only when Do you want to download package from repository is set as No. Provide the path where the controller installation file is located on the server. 
  • Diyotta Installation Directory - This is disabled and defaulted to the home directory path of node manager.  
  • Start-up Port - Start-up Port
  • Shutdown Port - Shutdown Port
  • Messaging Port - Messaging Port
  • Do you want to enable JVM metrics collection? If this is selected, then you need to provide the JMX Port
  • Messaging Protocol - Messaging Protocol
  • Choose Repository Service - Repository service path
  • Choose Broker Service - Broker service path
  • Controller Version - Click on the download icon to get the installer versions. The list of existing installer versions are picked from the package location specified. You can choose the installer required from the version drop-down. The version should match with the Diyotta Manager version.

2. Once you have entered all the details, click Deploy.

Once we click Deploy, Controller service gets installed with details provided and it starts the services. The installation details are provided in the log. Click Finish.

To download Node Manager Logs, click on Download.

The registered service details are displayed. Diyotta Manager Values shows the fields which are registered, and Config File Values shows the field values from diserver Config file.

Note:

To check updated values from diserver config file, click on Refresh . The value differences is indicated by showing ''

The value differences if any, is indicated with red highlighted text under Config File Values. To update Diyotta Manager values with controller config file values, click on '←' icon.

To add additional values to Hibernate, server log, Postgres HA, jdbc , server java Opts, DI Server HA , Server jmx values, click on Add. Two value fields get added and you can provide the values as required. To remove the values, click × icon.

If any value is changed then, click on Save changes.

It displays 'configuration values updated successfully' message and click on OK to continue.

Note:

The Save Changes gets displayed only once you make any changes in the field values.

Restart the agent by clicking on Restart. Restart gets displayed only when changes are saved.

Let's illustrate Option II, to see how to register an already installed service.

Option II: Auto Register service

1. Select Auto RegisterFollowing fields are displayed.

  • Diyotta Installation Directory - This is disabled and defaulted to the home directory path of node manager.  
  • Start-up Port - Start-up Port
  • Shutdown Port - Shutdown Port
  • Messaging Port - Messaging Port
  • Do you want to enable JVM metrics collection? If this is selected, then you need to provide the JMX Port
  • Messaging Protocol - Messaging Protocol
  • Choose Repository Service - Repository service path
  • Choose Broker Service - Broker service path

The connection details are obtained from the file -$DIYOTA_HOME/controller/conf/diserver.config under the installation of Controller service.

  • Uses the value against the parameter diserver.startup_port to get values for Start-up Port
  • Uses the value against the parameter diserver.shutdown_port to get the value for Shutdown Port

To install Diyotta,refer Diyotta Installation.

2. Once you choose auto register, the controller Configuration is retrieved for the host and the retrieval message is displayed . To finish controller service registration, click Continue.

  • To cancel auto registering and stay back in node manager page, click on Cancel.
  • If Controller Configuration details are not found then the message 'service not exist' is displayed.

3. Once you choose to continue, it displays Diyotta Manager configuration details

Once the Controller service is added then, you can see the green tick against the Controller tab and you can move to the next step. To continue and configure the Agent, on the same or different node Manager, refer Adding Agent Service.

Note: 

  • To manage controller service to start, stop and restart the service, refer Managing Controller Services.
  • To configure controller repository service, refer Adding Controller Repository Service.
  • To configure controller broker service, refer Adding Controller Broker Service
  • Clicking on controller service later displays Diyotta Manager Values and Config File Values to show the field value differences from controller Config file. The value differences if any, is indicated with red highlighted text under Config File Values. To update Diyotta Manager values with controller config file values, click on '←' icon.