AnykeyNL / OCI-AutoScale

Automatic Scaling for OCI BM Database Cloud Service (Schedule based)
Universal Permissive License v1.0
112 stars 64 forks source link

Setup for specific compartment (not tenancy) #25

Closed caleb-melchizedek closed 1 year ago

caleb-melchizedek commented 1 year ago

Thanks for the help on this we are set up the policy at compartment level to manage resources in a specific compartment. How do we adjust the python scripts to suite this, since the auto scale python scripts were written for tenancy management?

Thank you. l

AnykeyNL commented 1 year ago

You should be able to use the -ic (- include compartment ocid) parameter to just specify the compartment you want the script to check.

caleb-melchizedek commented 1 year ago

Alright I have seen the commented command line parameters. in the AutoScaleAll.py file. But just to clarify, do I add the parameter to the " bash install.sh" command?

AnykeyNL commented 1 year ago

Just run normal install and the edit crontab (crontab -e) and just add it there.

caleb-melchizedek commented 1 year ago

Hi, I want to find out, must the instance be use autonomous linux image eg. Autonomous Linux 7.9 image? or it can be any other type on linux image?

AnykeyNL commented 1 year ago

Instance can be anything that can run pyhton and the OCI SDK. So any linux/windows even the ARM vms can be used.

caleb-melchizedek commented 1 year ago

ALright thank you.