improvements to autoscaling

Signed-off-by: Lahiru Sandaruwan <lahirus@apache.irg>
Fixing startup error

Signed-off-by: Lahiru Sandaruwan <lahirus@apache.irg>
Fixing startup error

Signed-off-by: Lahiru Sandaruwan <lahirus@apache.irg>
Fixing startup error

Signed-off-by: Lahiru Sandaruwan <lahirus@apache.irg>
Fixing startup error

Signed-off-by: Lahiru Sandaruwan <lahirus@apache.irg>