Comments (8)
I've submitted #55 which gives BaseClient
the ability to failover between endpoints
from etcd3-py.
Hi,
some questions:
- will there be an option to choose endpoint and switch only when endpoint failure occurs?
- what's the timeline for this feature? When will it be ready?
from etcd3-py.
@gszpura Of course, that is exactly what i'm going to do
As for the timeline, since I thought it's not a urgent feature, currently i'm working on a demo app of etcd3-py. If you truly need it, maybe I can write it first.
Also, thank you for using this lib and welcome to contribute to this project 😀
from etcd3-py.
Reconnection is needed for my usecase since my etcd HA cluster consists of 3 nodes and I would like to auto switch nodes when current one is failing.
If you have an idea and time for writing that I would appreciate it ;]
from etcd3-py.
@gszpura Of course, that is exactly what i'm going to do
As for the timeline, since I thought it's not a urgent feature, currently i'm working on a demo app of etcd3-py. If you truly need it, maybe I can write it first.
Also, thank you for using this lib and welcome to contribute to this project 😀
@Revolution1 Are there any contribution guide about this project? I want to do something about this feature. Could you give me some advice?
from etcd3-py.
@stupidchen you can just write your thoughts about this feature under this issue
I have some ideas about this feature:
Add a EnpointManager
to control which endpoint should the client use.
Discover endpoint:
- user provide
- by dns resolve
- by etcd3 member_list api
Auto select a heathy endpoint
- switch after connection fails
- active health-check
Of course you can just start coding and create a pull request 😆
The only guide is write clean and readable code (and PEP8 formatted) .
ps: don't forget the test~
from etcd3-py.
@stupidchen you can just write your thoughts about this feature under this issue
I have some ideas about this feature:
Add a
EnpointManager
to control which endpoint should the client use.Discover endpoint:
- user provide
- by dns resolve
- by etcd3 member_list api
Auto select a heathy endpoint
- switch after connection fails
- positive health-check
Of course you can just start coding and create a pull request 😆
The only guide is write clean and readable code (and PEP8 formatted) .
ps: don't forget the test~
Thanks for your advice! I will start coding in few days!
from etcd3-py.
How does the current version support clustering? No solution?Release 0.2.0…. It seems so far off in the future
from etcd3-py.
Related Issues (20)
- setting a watch fails with AttributeError: 'ModelizedStreamResponse' object has no attribute 'raw' HOT 10
- AttributeError: 'Client' object has no attribute 'server_version_sem' HOT 2
- ErrUserEmpty error:'etcdserver: user name is empty, code:3' HOT 6
- self cancelling watcher HOT 8
- Are you aware of https://github.com/dims/etcd3-gateway ? HOT 9
- Don't fail on large requests HOT 9
- the AioClient has an exceptiion with call range() function HOT 2
- Unclosed client session HOT 3
- Package name collision when installing it with pypi HOT 3
- Does long running lead to high loads with ‘Watcher() API’ HOT 4
- Timeout HOT 2
- lease instance can not be awaited HOT 4
- use Lock in python 2.6 will cause "error: release unlocked lock" problem HOT 2
- when connect etcd-3.4.7, etcd3-py dont work HOT 2
- Install fails using pip>=20.1 HOT 3
- Swagger cache fills itself up without boundaries HOT 3
- Implement `get` function in KVAPI class
- I've got no time to maintain this lib HOT 1
- AttributeError: 'AioClient' object has no attribute 'server_version_sem' My Network Problems? Why?
- 0.3s is too short to get etcd version for my scenario and always timeout.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from etcd3-py.