Ralph Knag | 1fca6ac | 2017-12-05 12:05:57 -0500 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License.
|
| 2 | .. http://creativecommons.org/licenses/by/4.0
|
| 3 |
|
| 4 | Service Discovery
|
| 5 | =================
|
| 6 |
|
| 7 | Service discovery is an architecture pattern used for components
|
| 8 | (micro-services) to locate each other. The DCAE platform uses
|
| 9 | `server-side
|
| 10 | discovery <http://microservices.io/patterns/server-side-discovery.html>`__
|
| 11 | and is using `Consul <https://www.consul.io/>`__ as the service registry
|
| 12 | solution.
|
| 13 |
|
Ralph Knag | d2cd31b | 2018-04-02 16:27:46 -0400 | [diff] [blame^] | 14 | Service Registration
|
Ralph Knag | 1fca6ac | 2017-12-05 12:05:57 -0500 | [diff] [blame] | 15 | --------------------
|
| 16 |
|
| 17 | All components are required to register with Consul in order to be
|
| 18 | discovered. There are two methods of registration: self and 3rd party.
|
| 19 | The DCAE platform uses 3rd party registration which means components
|
| 20 | don’t actually make the registration calls but defers that
|
| 21 | responsibility to a platform service.
|
| 22 |
|
| 23 | Implementation for Docker
|
| 24 | ~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 25 |
|
| 26 | `Registrator <http://gliderlabs.com/registrator/latest/>`__ is an open
|
| 27 | source application that is responsible for registering all components
|
| 28 | that run as Docker containers. Registrator watches the local Docker
|
| 29 | engine’s activity log and will register and unregister a Docker
|
| 30 | container when the container is started and stopped.
|
| 31 |
|
| 32 | Implementation for CDAP
|
| 33 | ~~~~~~~~~~~~~~~~~~~~~~~
|
| 34 |
|
| 35 | The CDAP broker is a REST web service that is responsible for
|
| 36 | registering all components that run as CDAP applications.
|