Contention-aware workload placement for in-memory databases in cloud environments