Set cpu affinity correctly. Current impl is not correct, it bind the main thread to different cores multiple times. It may brought by some previous refactor.
Change default cpu affinity config to false. Bind thread to cores can make the performance better some time, but for container environment, bind to core may cause different process compete for one core, which can do harm to performance. So in this PR, by default it is disabled.