Migrating from Eureka to Consul
Why migration
-
Spring Cloud Config does not provide good secret management solutions, compared to vault + consul
-
Using Eureka implicitly infers that all our services will be using spring cloud. This assumption is too strong
-
The self-preservation node makes our DR drills trickier.
-
Modifying the main DNS entries with EIP is annoying for our DR drills. If we use hosted zones instead, the from time to time the service will report unable to resolve the main eureka DNS entries.
-
EIP is public ip, but most likely you want your Eurkea instances to be on private subnet
-
Need to explicitly override EurekaIp if you want to run your services in ECS, otherwise, it will register as the docker container ID
Migration Plan
-
For each service to migrate, start a new branch with dependency and config changes. This branch keeps rebasing from dev
-
Migrate Cloud Config as the first service, so that other services can reuse it.
-
Update all services build jobs, and create a new ECS cluster that mirrors the existing ones
-
On production, change the DNS record to point to the new ECS cluster’s LB
-
During the process, keeps rebasing from the master
-
Run DR drills before completely replaces Eureka