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 to handle a down node in high Throughput #88

Open
deenbandhu-agarwal opened this issue Jun 27, 2019 · 5 comments
Open

How to handle a down node in high Throughput #88

deenbandhu-agarwal opened this issue Jun 27, 2019 · 5 comments

Comments

@deenbandhu-agarwal
Copy link
Contributor

Hello,

I want to handle scenarios gracefully(without any error) when a node is going down because of some issue or we are restarting a node manually. I tried retry but it is not helping can somebody help me this?

@deenbandhu-agarwal
Copy link
Contributor Author

Any update on this ?

@deenbandhu-agarwal
Copy link
Contributor Author

@jhecking Any update on this?

@deenbandhu-agarwal
Copy link
Contributor Author

Hi @jhecking

Any response to this. Its been a long time now.

@khaf
Copy link
Collaborator

khaf commented Dec 1, 2020

Hi @deenbandhu-agarwal, did you manage to work around this issue? In most circumstances the client should not raise any exceptions. Can you provide a gist so that we can better understand your use case?

@mubashirkamran4
Copy link

mubashirkamran4 commented Jan 25, 2021

Hi @khaf I am still getting the same error on batch_get method of client object. I get it very frequently. This is how I am using it.

      client = Client.new(config['servers'], policy: { timeout: 0.1 })
      batch = {}
      client.batch_get(
        keys,
        [],
        timeout: timeout,
        max_retries: 5,
        sleep_between_retries: 0.5,
        replica: Replica::SEQUENCE
      ).zip(ids) do |record, id|
        batch[id] = record.nil? ? {} : record.bins
      end```

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

3 participants