A service can be registered in Consul by 2 ways: - using HTTP API or agent's configuration file, in the case, when service can communicate to Consul independently;
- registering service as an external component.
| Services with obligatory registry in Consul | Consul Server nodes or Consul Client nodes |
|---|
iw_adlibitum iw_agent iw_blackboard iw_bookworm iw_licensed iw_tech_tools iw_sample_compiler iw_system_check iw_xapi Crawler | iw_icap iw_expressd iw_proxy iw_capstack iw_smpd iw_updater iw_qmover_server iw_cas iw_pas iw_luaengined iw_warpd iw_adlibitum iw_agent iw_blackboard iw_bookworm iw_licensed iw_tech_tools iw_sample_compiler iw_system_check |
After the registry, the interaction between TM services and Consul is to be implemented by the following script: - registry using Consul client;
- TCP connection installation or back to HTTP code;
- deregisrtation.
Passwords to access the services are located in Key Value storage, controlled by ACL tokens. The service generates the password and adds it to Consul. ACL tokens are stored within the configuration files |