Slackbot
05/03/2023, 11:11 PMZac Policzer
05/04/2023, 7:43 PMAndrey
05/04/2023, 8:02 PMThere is a cluster discovery endpoint on the controller which should return the d2 url of the routerAre you suggesting to use something like
D2ServiceDiscoveryResponse sysStoreDiscoveryResponse = (D2ServiceDiscoveryResponse) controllerRequestWithRetry(
() -> ControllerClient.discoverCluster(discoveryUrl.get(), storeName, sslFactory, 1),
2);
to get config parameters of D2 and fallback to D2?
Somehow I got impression that D2 was a 'legacy' way of accessing/configuring things.Zac Policzer
05/04/2023, 8:13 PMCan I get a controller url from the router? This will work too (I'll just have to pass the router in the config).
I do not believe so.
Somehow I got impression that D2 was a 'legacy' way of accessing/configuring things.
It's kind of in an interesting state. D2 is used very aggressively in LinkedIn and is at this time a de facto service discovery standard within the company... But... it's popularity pretty much ends there 😅 . So I'd say it's not ideal for most open source adopters. What we can probably do is make it so that instead of just strictly returning a clustername/d2 url pair, we can probably make it configurable to some connect string (dns, or host string, etc.)Zac Policzer
05/04/2023, 8:45 PMAndrey
05/04/2023, 11:52 PM