Giter Club home page Giter Club logo

Comments (8)

cjschroder avatar cjschroder commented on May 30, 2024 1

Nice perl-fu, @mook-as. Thanks!

from doc-cap.

cjschroder avatar cjschroder commented on May 30, 2024

How is config.HA used? Are there any internal docs? It is not in the UAA or SCF values.yaml files.

from doc-cap.

mook-as avatar mook-as commented on May 30, 2024

Interesting; we had that in there as a development shortcut to start the smallest HA configuration and didn't intend that to be used by customers (since they would probably want to customize things to suit their deployment scenarios). I didn't know of a decision to change that status.

In case we do want to actually document it: config.HA (previously known as sizing.HA), when set to true, will change any roles at the default size (of 1) to be a minimal HA deployment instead; for example, there will be multiple router instances. The number of instances is listed in the comment in the helm values file (helm inspect values suse/cf); for example, # For high availability it needs at least 2 instances.

Note that we only check if the number of instances is at the default, not if you have set it; this means you can't explicitly set "HA but 1 router", because it just assumes that was the default and overrides it to 2 instances instead.

Please check with… somebody that we want this to be documented before writing all this down, of course :)

from doc-cap.

cjschroder avatar cjschroder commented on May 30, 2024

@mook-as I was looking for a literal config.HA option, not

config:
  # Flag to activate high-availability mode
  HA: false

Think literal for us lowly end lusers :)

from doc-cap.

mook-as avatar mook-as commented on May 30, 2024

But it's the same thing; the helm command line accepts things by joining the nesting levels with dots (.), as in --set config.HA=true to modify the option you quoted :)

from doc-cap.

cjschroder avatar cjschroder commented on May 30, 2024

Thanks! See if this works for you.
http://docserv.nue.suse.com/documents/CAP_1/cap-deployment/single-html/#sec.cap.ha-prod

from doc-cap.

mook-as avatar mook-as commented on May 30, 2024

Hi! Sorry, I dropped this on the floor because Hack Week :D

Reviewing https://susedoc.github.io/doc-cap/develop/cap-deployment/html/cha.cap.install-production.html#sec.cap.ha-prod :

  • There's no need to actually download the chart: helm inspect values suse/uaa | perl -ne '/^sizing/..0 and do { print $.,":",$_ if /^ [a-z]/ || /high avail|scale|count/ }' (a combination of the two commands we already have) works fine
  • Passing --set config.HA=true works, but is more likely to be error-prone in the future (because when you need to upgrade or something you're likely to forget). But that's generally true of using --set, whatever the situation.

from doc-cap.

cjschroder avatar cjschroder commented on May 30, 2024

1451ecd

from doc-cap.

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.