# dnl\_cloud

```
cd /opt/denovo_v6/dnl_cloud_tool/conf/
vi dnl_cloud_tool.conf:

```

```

# (M) String used to identify this server
server_name 	dnl-host-server ← Change this name for each server dnl_software is running on (for switching part and api/ui one) so it identifies every server that is running .
# Default: connect to Unix-domain socket

pgsql_hostaddr  127.0.0.1  ← address of the postgresql server

pgsql_user  	postgres     ← username for database

#pgsql_pass 	password   ← Password if required (also remove # from the line)

```

Dnl\_cloud\_tool also needs to be configured to the ip address accessible to the UI/api part For this at the time of writing this instructions, values in database table needs to be changed: Table name dnl\_cloud\_status, each running instance of dnl\_cloud\_tool will be shown here in the table along with some data, for example:

```
select * from dnl_cloud_status ;
   server_name   |  instance  | operation | is_online |  	upd_time   	| server_ip | server_port | server_use_ssl | switch_list
-----------------+------------+-----------+-----------+---------------------+-----------+-------------+----------------+-------------
 dnl-host-server | search 	|       	| t     	| 2021-12-02 07:05:54 | 127.0.0.1 |   	33502 | f          	| class4
 dnl-host-server | downloader |       	| t     	| 2021-12-02 07:05:54 | 127.0.0.1 |   	33501 | f          	| class4
 dnl-host-server | dbman  	|       	| t     	| 2021-12-02 07:05:54 | 127.0.0.1 |   	33500 | f          	| class4
(3 rows)

```

In this table server ip needs to be changed to the ip address that is accessible from the server which hosts api/UI.

Sql for this is update table dnl\_cloud\_status set server ip = ‘your ip’ where server\_name = ‘server\_name’ ; (in this example dnl-host-server, but this name is defined in the dnl\_cloud\_tool config and it should be different for each dnl\_cloud\_tool instance.
