Giter VIP home page Giter VIP logo

Comments (5)

sielaq avatar sielaq commented on August 31, 2024

Unfortunately there is no easy way to do that.
One way is to edit /etc/supervisord.conf and run supervisorctl reread or reload (but reload can restart apps)

about this escaping. how about using ' single quotes instead of \\\\\" ?

from panteras.

Kosta-Github avatar Kosta-Github commented on August 31, 2024

Actually, I do something like:

ROLES_COMBINED="compute:truelog:true" # fed from somewhere else
MESOS_SLAVE_PARAMS="--attributes=\\\\\"${ROLES_COMBINED}\\\\\" --resources=\\\\\"ports(*):[8000-9999, 31000-32999]\\\\\""

In this case I cannot use the single quotes ' since ${ROLES_COMBINED} would not be replaced anymore...

from panteras.

sielaq avatar sielaq commented on August 31, 2024

hmm I have just check it and it works for me:

# ROLES_COMBINED="compute:truelog:true"
# MESOS_SLAVE_PARAMS="--attributes='${ROLES_COMBINED}' --resources='ports(*):[8000-9999, 31000-32999]'"
# echo $MESOS_SLAVE_PARAMS
--attributes='compute:truelog:true' --resources='ports(*):[8000-9999, 31000-32999]'

from panteras.

sielaq avatar sielaq commented on August 31, 2024

Is it working for you ?

from panteras.

Kosta-Github avatar Kosta-Github commented on August 31, 2024

Oh, haven't got the time to test that out; but since this is working for me as it is right now, no pressure on changing it... I will consider it next time I need to touch that file/mechanism...

we can close this for now, since there doesn't seem to be an easy and nice way to adjust the mesos attributes for a running mesos slave...

from panteras.

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.