Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can orleans server response load balancing #7497

Closed
liuzhixin405 opened this issue Jan 15, 2022 · 5 comments
Closed

how can orleans server response load balancing #7497

liuzhixin405 opened this issue Jan 15, 2022 · 5 comments

Comments

@liuzhixin405
Copy link

i want orleans server can like consul,because i use orleans cluster for my project.
if i startup three server thesame but SiloPort and GatewayPort different,the result is all client request in the one server,if
the one server stop,other server bear the request。but,i want the scenes is i make some require,all server do the work in time.

the last i find a method, the same server i copy to ,and rename the server and change the SiloPort and GatewayPort,i can get the scence i want.but it has a little trouble,more server i must build.
this is the sample
https://github.com/liuzhixin405/exercise/tree/master/Orleans/Orleans.MultiClient-Test

@ghost ghost added the Needs: triage 🔍 label Jan 15, 2022
@suraciii
Copy link
Contributor

Please clarify the topology of your scenario ,

if i startup three server thesame but SiloPort and GatewayPort different,the result is all client request in the one server,if
the one server stop,other server bear the request。but,i want the scenes is i make some require,all server do the work in time.

In this situation, you configured 1 Orleans cluster with 3 nodes(silos), when you send requests to 1 certain grain by referencing its grain identity, the request will be processed by 1 nodes since the certain grain only exists in 1 node by default. it is the expected behavior.

the last i find a method, the same server i copy to ,and rename the server and change the SiloPort and GatewayPort,i can get the scence i want.but it has a little trouble,more server i must build.

In this situation, you configured 3 isolated Orleans cluster, and each cluster has a single node, requests processed by which cluster depends on which one you send requests to.

You can also contact me in Gitter or Discord so we can talk about your issue in detail.

@sanzor
Copy link

sanzor commented Jan 15, 2022

Hello i am also interested in this cluster-node scenarios .

@liuzhixin405
Copy link
Author

Hello i am also interested in this cluster-node scenarios .

can you have solution。this is my replace solution,https://github.com/liuzhixin405/exercise/tree/master/Orleans/Orleans.MultiClient-Test 。in orleans ,i have not find what to do ,i have researching.

@ReubenBond
Copy link
Member

@liuzhixin405 are you starting a server 3 times with the same ports on 1 host? That cannot work: the last process to start will steal the socket and will be the only one listening on it

@liuzhixin405
Copy link
Author

this is my load balacing, https://www.cnblogs.com/morec/p/15806332.html

@dotnet dotnet locked as resolved and limited conversation to collaborators Feb 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants