Risk-Based Dynamic Allocation of Computing Resources