# Functions
Input:
Description:
The function performs graceful shutdown of application based on current state of provision.
Input:
Description:
Initializes the main module Sets the global vraible "firstExecution" to mark the start of application Calls method to initialize the Opensaerch client in osutils module by reading the config file for credentials Starts the fetchMetrics module to start collecting the data and dump into Opensearch (if userCfg.MonitorWithSimulator is false)
Return:.
Input:
Description:
The entry point for the execution of this application Performs a series of operations to do the following: * Calls a goroutine to start the periodicProvisionCheck method * In a for loop in the range of a time Ticker with interval specified in the config file: # Checks if the current node is master, reads the config file, gets the recommendation from recommendation engine and triggers provisioning
Return:.