cli icon indicating copy to clipboard operation
cli copied to clipboard

Support for multiple instances of a service for load balancing

Open satishviswanathan opened this issue 4 years ago • 3 comments

Ask your question here

https://docs.dapr.io/developing-applications/building-blocks/service-invocation/service-invocation-overview/

Following this link I'm trying to run multiple instances of cart service. i.e when I start using the dapr I'm trying to start multiple instances using the same app id "cart" which results in the following exception.

dapr with ID cart is already running

Please let me know if my understanding is correct.

satishviswanathan avatar Apr 23 '21 21:04 satishviswanathan

@yaron2 Can you add some thoughts on this? I believe that this is currently not supported by the CLI. Is that correct?

mukundansundar avatar May 13 '21 22:05 mukundansundar

That's correct. Dapr does support load balancing and running of multiple instances in self-hosted mode, but currently not with the Dapr CLI. You'll have to drop to the daprd process directly.

yaron2 avatar May 25 '21 19:05 yaron2

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Jan 04 '22 01:01 dapr-bot