Code Monkey home page Code Monkey logo

Comments (12)

kmoppel avatar kmoppel commented on May 13, 2024

Also an "environment" tag should be there to distinguishing between release/live environments etc.
Even better would be the possibility to add "custom" user defined tags, with no meaning to patroni. Those tags should be persisted and easily inspectable via (future) patroni-cli for example.

from patroni.

valgog avatar valgog commented on May 13, 2024

@kmoppel you are now introducing the idea of tags for the whole cluster. Until now the tags suggested by Josh are tagging instances in the cluster.

from patroni.

jberkus avatar jberkus commented on May 13, 2024

The only global tag I'm proposing to add will be:

disabled: if this tag is set for the cluster, no auto-failover will take place. This tag is meant for disabling auto-failover during manual failover and similar expected downtime. It should always be set with a TTL.

from patroni.

jberkus avatar jberkus commented on May 13, 2024

I don't think I agree with the idea of an "environment" tag. In what way is that not simply part of the "scope"?

As for user-defined custom tags, nothing keeps patroni-cli from adding any tags it wants. I haven't conceived of any I need yet though.

from patroni.

kmoppel avatar kmoppel commented on May 13, 2024

@valgog yes, exactly for the whole cluster. @jberkus ok yes, the "environment" concept could be an user defined concept (tag) also - keeping mandatory parts from operational requirements only might be a good line to keep as patroni grows in features.
But custom tags in general would be very useful in my opinion - marking environments, applications using some cluster, criticality level, being part of a sharded cluster etc, will definitely help large setups.

from patroni.

jberkus avatar jberkus commented on May 13, 2024

@kmoppel Certianly you could easily add a self.custom_tags dictionary to init.py, and then an optional config setting called "custom_tags" which takes a list to the patroni config file. However, what good would this do you? Pretty much the only thing you could do with the custom tags is pass them along to create_replica scripts; there's no place else in patroni we would read them. So what's the point?

If you want custom tags just for the CLI, that's really a completely different feature.

from patroni.

kmoppel avatar kmoppel commented on May 13, 2024

Exactly, just for the CLI (or any reader), no point for the slaves or init scripts or any other operational stuff. Idea would be to just persist some values in etcd/zookeeper, so that for example our "database discovery service" could give users more hints about the nature and purpose of found database clusters. These tags could be changed/added at any moment, not on cluster creation, so maybe it deserves a separate issue indeed.

from patroni.

jberkus avatar jberkus commented on May 13, 2024

@kmoppel I welcome your contributions to patroni-cli, once I have the initial prototype up.

from patroni.

alexeyklyukin avatar alexeyklyukin commented on May 13, 2024

The nofailover tag, along with some general code to support tags in the DCS and the API, is implemented in #80

from patroni.

jberkus avatar jberkus commented on May 13, 2024

Great! Will test ...

from patroni.

feikesteenbergen avatar feikesteenbergen commented on May 13, 2024

It seems we still need to implement:

noloadbalance

Are there any negative (or positive) test results?

from patroni.

CyberDem0n avatar CyberDem0n commented on May 13, 2024

noloadbalance is implemented in #185

from patroni.

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.