Coder Social home page Coder Social logo

Comments (8)

jmccormick2001 avatar jmccormick2001 commented on May 22, 2024

actually you caught an error on my part which I forgot to change, in cluster-deployment-1.json, I should have specified preferredDuringSchedulingIgnoredDuringExecution instead of requiredDuringSchedulingIgnoredDuringExecution

I'll make that change and push it to master. This will allow the scheduler to move the PG master in the event of a node failure as you would expect.

from postgres-operator.

jmccormick2001 avatar jmccormick2001 commented on May 22, 2024

but to better answer your question, some people will want to place the master on a specific node over others in certain situations, if you don't specify --node-name on cluster creation, pgo should just pick a node at random for the master. It will attempt to place the replicas on nodes that are not where the master is located.

from postgres-operator.

tarasglek avatar tarasglek commented on May 22, 2024

There is another bug. Atm pgo picks first node by default. In my cluster first node is tainted(master node). Feels like a better default behavior would be to not specify a node and let kubernetes scheduler decide.

from postgres-operator.

jmccormick2001 avatar jmccormick2001 commented on May 22, 2024

thanks, I'll fix this, I agree, the default behavour should not be to specify a node.

from postgres-operator.

jmccormick2001 avatar jmccormick2001 commented on May 22, 2024

merged to master.

from postgres-operator.

jmccormick2001 avatar jmccormick2001 commented on May 22, 2024

I plan on another release next week, around Thursday.

from postgres-operator.

jmccormick2001 avatar jmccormick2001 commented on May 22, 2024

I decided not to wait, and went ahead and pushed version 1.5.2 which should fix this problem, thanks for reporting it.

from postgres-operator.

jmccormick2001 avatar jmccormick2001 commented on May 22, 2024

should be fixed now.

from postgres-operator.

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.