Dynamic resource reallocation framework