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

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

Step II: The Controller Repository 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 repository service on the host selected.

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

  • To create controller repository service you need to have the Node Manager on the same host where you want to install the controller repository service. To create a Node Manager Service, refer Adding Node Manager Service.
  • Controller Repository will get enabled only when you have configured the Node Manager service.
  • Controller Repository, Controller Broker and Agent are independent of each other and can be configured without any dependency.
  • Controller Repository, Controller Broker and Controller service should be registered 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 dropdown 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 node manager installation file is located on the server.
  • Embedded Database - Use this check box to define the type of metadata database to be used.
    • If you check this then, the PostgreSQL database will be be installed along with the controller installation and metadata repository will be setup in it.
    • If you uncheck this then, provide the details of the PostgreSQL database to be used to setup metadata repository.
Add and deploy a service allows only Embedded option deployment. If you uncheck embedded database it automatically selects the Auto Register option.
  • Host - This is disabled and defaulted to localhost

  • Port - Port to access the PostgreSQL database.
  • User Name - User to be used to connect to the database.
  • Password - Password corresponding to the above user.
  • Repository Name - Repository Name to be assigned for the controller instance.
  • Database Name - Database Name where metadata is stored.
  • Home Directory - This is disabled and defaulted to the home directory path of node manager. 
  • Database Version - Displays database version. 

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

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

To download controller repository Logs, click on Download.

The registered service details are displayed. Diyotta Manage Values shows the fields which registered.

Note:

To check updated values of Controller repository from diserver.config file, click on Refresh.

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.

  • Embedded Database - Use this check box to define the type of metadata database to be used.
    • If you check this then, the PostgreSQL database will be be installed along with the controller installation and metadata repository will be setup in it.
    • If you uncheck this then, provide the details of the PostgreSQL database to be used to setup metadata repository.
  • Host - When embedded database is checked then, this is disabled and defaulted to localhost. When enabled provide the hostname or IP that was used during Controller installation.
  • Port - Port number that was provided during the Controller installation.
  • User Name - User that was provided during the Controller installation.
  • Password - Password that was provided during the Controller installation.
  • Repository Name - Repository Name that was provided during the Controller installation.
  • Database Name - Database Name that was provided during the Controller installation.
  • Home Directory - This is displayed only when Embedded Database is checked. This is disabled and defaulted to the home directory path of node manager. 
  • Database Version - Displays database version.

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 jdbc.url to get values for Host, Port, Database Name.
  • Uses the value against the parameter jdbc.username to get the value for User Name.

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

  • To cancel auto register, and stay back in node manager page, click Cancel.
  • If Controller Repository 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 Repository service is added then, you can see the green tick against the Controller Repository tab and you can move to the next step. To continue and configure the Controller Broker, on the same node Manager, refer Adding Controller Broker Service.

Note: 

  • To manage Controller Repository service to start, stop and restart the service, refer Managing Controller Repository Services
  • Clicking on Controller Repository service later displays updated Diyotta Manager Values if clicked on Refresh.