POL accomplishes the following tasks:
POL has the following components:
POL subscribes to the message bus and waits for the following messages:
When a NS is created, it checks the corresponding VNFDs for scaling group descriptors or vnf alarms. It creates the corresponding resources in MON. When a NS is scaled, it does the same as above for new VDUs if scaled out. It removes orphaned resources if scaled in. When a NS is terminated, it deletes associated resources.
When an alarm is raised, if it corresponds to a scaling policy, it stores its last status and then validates the policy, as policies can have N alarms related to them and can specify a boolean operator (AND/OR) to evaluate the conditions. If it corresponds to a VNF alarm, the associated webhook is called.
Data is stored in POL database in the OSM MySQL engine.