Configuration & Administration

Expand all | Collapse all

How to increase oversubscribed instance:

  • 1.  How to increase oversubscribed instance:

    Posted 01-25-2018 11:33 AM
    Whenever i see the services theres a little dot saying instance is oversubscribed and how do i solve this issue. Thank you

    ------------------------------
    Kishore Thota
    Systems Analyst
    Hi-Link Technology Group
    Stamford CT
    ------------------------------


  • 2.  RE: How to increase oversubscribed instance:

    Posted 01-25-2018 02:50 PM
    Kishore -

    This usually means that the amount of RAM being consumed by the instance exceeds the defined RAM commitment. Consider this example:


    Note the instance details shows RAM usage that exceeds the commitment:


    The RAM commitment can be changed on the Edit Service screen. You may want to first understand what is influencing the RAM usage, in order to make an informed decision on the "RAM Requested" value.



    ------------------------------
    Chris Smouse
    Senior Manager, Software Engineering
    Zenoss
    ------------------------------



  • 3.  RE: How to increase oversubscribed instance:

    Posted 04-16-2019 11:23 AM
    Is there a command-line way to achieve this?
    In what file(s) are these configs held?

    Thanks,
    Jane

    ------------------------------
    Jane Curry
    Skills 1st United Kingdom
    jane.curry@skills-1st.co.uk
    ------------------------------



  • 4.  RE: How to increase oversubscribed instance:

    Posted 04-17-2019 06:48 AM
    Still don't know where the config files are but a command-line way to achieve this is:
       serviced service edit <service name>

    Look for the RAMCommitment entry, change it to what you want, save the 'file' (I assumed it was using the vi editor) and restart the service.

    Cheers,
    Jane

    ------------------------------
    Jane Curry
    Skills 1st United Kingdom
    jane.curry@skills-1st.co.uk
    ------------------------------



  • 5.  RE: How to increase oversubscribed instance:

    Posted 04-17-2019 08:22 AM
    Edited by Jay Stanley 04-17-2019 09:39 AM
    You can use any editor you wish if you add -e argument.

    serviced service edit zope -e vim
    serviced service edit zope -e nano

    It will also use whatever is set int he environment variable EDITOR

    export EDITOR="/usr/bin/nano"
    serviced service edit zope # will now use nano

    This can be useful, because you can set the editor to a script, to do things like replace values using sed.

    for i in $(serviced service list --show-fields=ServiceID); do EDITOR=./my_script.sh serviced service edit $i; done

    Exporting all configs to files for backup or reviewing
    https://gist.github.com/jstanley23/160d982b49af53fab96c18ef551c18c9

    ------------------------------
    jstanley
    ------------------------------