Skip to content

refactor(api_call): improve node selection with shuffling#95

Merged
jasonbosco merged 3 commits intotypesense:masterfrom
tharropoulos:shuffle-nodes
Jun 2, 2025
Merged

refactor(api_call): improve node selection with shuffling#95
jasonbosco merged 3 commits intotypesense:masterfrom
tharropoulos:shuffle-nodes

Conversation

@tharropoulos
Copy link
Copy Markdown
Collaborator

Change Summary

  • Add requestNumber parameter to getNode() method for request tracking
  • Add detailed debug logging throughout node selection process
  • Fix node selection loop to properly iterate through all available nodes
  • Improve fallback logic when no healthy nodes are found
  • Replace direct node access with candidate node pattern for better readability

PR Checklist

  1. I have read and signed the Contributor License Agreement.

- Add `requestNumber` parameter to `getNode()` method for request tracking
- Add detailed debug logging throughout node selection process
- Fix node selection loop to properly iterate through all available nodes
- Improve fallback logic when no healthy nodes are found
- Replace direct node access with candidate node pattern for better readability
Comment thread src/Lib/Configuration.php Outdated
@jasonbosco jasonbosco merged commit 89bace5 into typesense:master Jun 2, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants