TECHZEN Zenoss User Community ARCHIVE  

How to increase oversubscribed instance:

Subject: How to increase oversubscribed instance:
Author: Kishore Thota
Posted: 2018-01-25 12:33

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
------------------------------


Subject: RE: How to increase oversubscribed instance:
Author: Chris Smouse
Posted: 2018-01-25 15:50

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
------------------------------


Subject: RE: How to increase oversubscribed instance:
Author: Jane Curry
Posted: 2019-04-16 12:23

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
------------------------------


Subject: RE: How to increase oversubscribed instance:
Author: Jane Curry
Posted: 2019-04-17 07:48

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
------------------------------


Subject: RE: How to increase oversubscribed instance:
Author: Jay Stanley
Posted: 2019-04-17 09:22

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
------------------------------


< Previous
Local host alarm
  Next
Zenoss core cannot be accessed until its restarted:
>