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

Setting Load balance behavior #208

Open
kidus-tiliksew opened this issue Mar 13, 2024 · 1 comment
Open

Setting Load balance behavior #208

kidus-tiliksew opened this issue Mar 13, 2024 · 1 comment

Comments

@kidus-tiliksew
Copy link

Is there a way to set Load balance behavior to something like UseSessionContext with this client

@maciejaszyk
Copy link
Member

Hi,
currently we support only setting ReadBalanceBehavior: https://ravendb.net/docs/article-page/6.0/csharp/client-api/configuration/load-balance/read-balance-behavior#read-balance-behavior
Example:

configurationToSave := &ravendb.ClientConfiguration{
Etag: 123,
MaxNumberOfRequestsPerSession: 80,
ReadBalanceBehavior: ravendb.ReadBalanceBehaviorFastestNode,
IsDisabled: true,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants