fix buges in client request and make data placement algorithm run periodically