scylladb / scylladb/alternator-client-javascript

Ensure that decomission and dead node scenarios are handled properly

Open
#21 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
6h 45m
Merged PRs (30d)
5

Description

Jira task: https://scylladb.atlassian.net/browse/DRIVER-686
Jira epic: https://scylladb.atlassian.net/browse/DRIVER-38

Copied from Jira epic DRIVER-38:

We need to make sure that dynamodb requests are not failing when node is being decommissioned from the cluster.

Instead failed http request has to be retried on another host.

Idea of advanced handling logic:

  1. Have a success and error metrics for all the nodes
  2. When request is failing client adds to error metric based on what error is it
  3. When requests are failing on certain node put them in the list of broken nodes and exclude from list of active nodes
  4. Once on a while allow request to be routed to the broken node to see if it is back to normal
  5. If such requests succeeds remove node from list of broken node

Migrated from GitHub issue: https://github.com/scylladb/alternator-load-balancing/issues/98

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The payload names no files, tests, or entry points. Start by reading the linked Jira task and epic, then the migrated issue; done means DynamoDB requests continue during node decommissioning by retrying failed HTTP requests on another host.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.