-
Notifications
You must be signed in to change notification settings - Fork 179
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
Support for AWS ElastiCache "config" command (needed to support cluster configuration) #87
Comments
Hi @raff, if you're still interested a pull request would be welcome. |
Something like this? |
So I've been walking around thinking a bit about this, wanting to give it a shot. Is the target to:
The most user-friendly way, in my opinion, would be a new client that reconfigures itself as the config changes, but a wholly new client is also a lot of new code to write and test. Is there any preferences from your side @jogo or should I just throw something together that works for me. My first thoughts would be to inherit from the |
Inheriting from hashclient sounds like a good idea to me, @jparise thoughts? Thanks for working on this. |
… be used to implement pinterest#87.
Will be used to implement pinterest#87.
Will be used to implement pinterest#87.
Will be used to implement pinterest#87.
`raw_command` allows for sending raw commands to Memcached, and specify a custom end token. This allows for communicating with non-standard servers such as ElasticCache instances. Part of implementing pinterest#87.
`raw_command` allows for sending raw commands to Memcached, and specify a custom end token. This allows for communicating with non-standard servers such as ElasticCache instances. Part of implementing pinterest#87.
`raw_command` allows for sending raw commands to Memcached, and specify a custom end token. This allows for communicating with non-standard servers such as ElasticCache instances. Part of implementing pinterest#87.
`raw_command` allows for sending raw commands to Memcached, and specify a custom end-token. This allows for communicating with non-standard servers such as ElasticCache instances. Part of implementing pinterest#87.
I see that #395 was added are there still plans to integrate the auto discovery? |
There was a lot of intentions on my part. But I got buried in work when I was trying to figure out a good semantic for "This might be a connection issue so retry the host in a moment" vs "The config has changed, so let's refresh the server list" and planning tests. I don't think the maintainers ever had any plans for adding it themselves since they don't use ElastiCache. (or didn't when I last looked at it.) |
That is still correct, we are more than happy to accept PRs but have no plans of adding it ourselves. |
The AWS implementation of memcached adds a new command "config" (for now only "config get cluster") that returns the list of hosts in the cluster, for auto-discovery. I would like to be able to use pymemcache on AWS and get the cluster configuration:
http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/AutoDiscovery.AddingToYourClientLibrary.html
A couple of ways:
I would be fine with the first way (and then expose either a "config" or "aws_config" command or add a generic high-level command that would allow to send more "non-standard" requests. I have hacked something together that implement this (with a new "aws_config" method on the base client class) and I can submit a pull request.
The text was updated successfully, but these errors were encountered: