Stochastic Modeling, Optimization And Data-Driven Adaptive Control With Applications In Cloud Computing And Cyber Security