aerospike-client-ruby icon indicating copy to clipboard operation
aerospike-client-ruby copied to clipboard

How to handle a down node in high Throughput

Open deenbandhu-agarwal opened this issue 5 years ago • 5 comments

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 avatar Jun 27 '19 11:06 deenbandhu-agarwal

Any update on this ?

deenbandhu-agarwal avatar Jul 01 '19 12:07 deenbandhu-agarwal

@jhecking Any update on this?

deenbandhu-agarwal avatar Jul 24 '19 14:07 deenbandhu-agarwal

Hi @jhecking

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

deenbandhu-agarwal avatar Nov 20 '19 09:11 deenbandhu-agarwal

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?

khaf avatar Dec 01 '20 17:12 khaf

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```

mubashirkamran4 avatar Jan 25 '21 15:01 mubashirkamran4