Skip to content

Conversation

@Nerdyvedi
Copy link

@Nerdyvedi Nerdyvedi commented Oct 4, 2023

In Hash client, if instead of a list of nodes, just cluster configuration endpoint is passed , This adds an option to fetch nodes from the endpoint

Resolves #534

@Nerdyvedi Nerdyvedi force-pushed the elasticache_auto_discovery branch from 960faab to ea2e6da Compare October 4, 2023 10:03
@Nerdyvedi Nerdyvedi changed the title Memcache auto discovery Memcache auto discovery resolves #534 Oct 4, 2023
@Nerdyvedi Nerdyvedi changed the title Memcache auto discovery resolves #534 Memcache auto discovery Oct 4, 2023
Copy link
Contributor

@jogo jogo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea looks good a few inline comments plus, unit test coverage and updated docs (including the changelog) would be great.

Thank you for the contribution, and sorry for the slow review.

return True
return results[0] == b"OK"

def auto_discover(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this command useful in the base client, where I assume we only have a single memcache ip port tuple, or is this only useful in the hash client? If only Hashclient lets move it there

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my experience, it makes a sense to utilize HashClient alongside it, as it allows for connecting to multiple nodes simultaneously or you can connect to cache cluster with Client by using configuration node, ex. mycluster.fnjyzo.cfg.use1.cache.amazonaws.com.
As I saw here's not much activity for half year, but I would be happy with support of this feature for one of mine project. Could I handle it if nobody mind?

Args:
servers: list() of tuple(hostname, port) or string containing a UNIX
socket path.
If enable_auto_discovery is set, just a configuration endpoint would suffice
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to point out this is an AWS elasticache specific feature

@Nerdyvedi Nerdyvedi force-pushed the elasticache_auto_discovery branch from ea2e6da to 0fe0600 Compare June 13, 2024 23:41
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.

Feature Request [Elasticache-Auto-Discovery]

3 participants