Giter VIP home page Giter VIP logo

Comments (8)

dariko avatar dariko commented on May 27, 2024 2

I've submitted #55 which gives BaseClient the ability to failover between endpoints

from etcd3-py.

gszpura avatar gszpura commented on May 27, 2024

Hi,
some questions:

  1. will there be an option to choose endpoint and switch only when endpoint failure occurs?
  2. what's the timeline for this feature? When will it be ready?

from etcd3-py.

Revolution1 avatar Revolution1 commented on May 27, 2024

@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.

gszpura avatar gszpura commented on May 27, 2024

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.

stupidchen avatar stupidchen commented on May 27, 2024

@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.

Revolution1 avatar Revolution1 commented on May 27, 2024

@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 avatar stupidchen commented on May 27, 2024

@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.

boylegu avatar boylegu commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.