Move the connection pool scheduler to Erlang.